Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

plist::Primitive< std::string > Class Template Reference

#include <plistPrimitives.h>

Inheritance diagram for plist::Primitive< std::string >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<>
class plist::Primitive< std::string >

Provides a std::string specialization of Primitive<T>.

Doesn't need to provide a operator cast because we subclass std::string itself!

Definition at line 257 of file plistPrimitives.h.

Public Member Functions

 Primitive ()
 constructor
 Primitive (const std::string &v)
 casting constructor
 Primitive (const std::string &v, size_type off, size_type count=npos)
 casting constructor
 Primitive (const char *v, size_type count)
 casting constructor
 Primitive (const char *v)
 casting constructor
 Primitive (size_type count, char v)
 casting constructor
Primitiveoperator= (const std::string &v)
 assignment
Primitiveoperator= (const char *v)
 assignment
Primitiveoperator= (char v)
 assignment
const std::string & operator * () const
 dereference will return data storage as a string (for uniformity with the other Primitives, although unnecessary with this instantiation)
const std::string * operator-> () const
 returns a pointer to this (for uniformity with the other Primitives, although unnecessary with this instantiation)
void loadXML (xmlNode *node)
 interprets node as a string
void saveXML (xmlNode *node) const
 saves the content of the string into node
void set (const std::string &str)
 assign a new value
std::string get () const
 return current value as a string
virtual Primitive< std::string > * clone () const __attribute__((warn_unused_result))
 implements the clone function for Primitive<std::string>


Constructor & Destructor Documentation

plist::Primitive< std::string >::Primitive (  )  [inline]

constructor

Definition at line 259 of file plistPrimitives.h.

plist::Primitive< std::string >::Primitive ( const std::string &  v  )  [inline]

casting constructor

Definition at line 260 of file plistPrimitives.h.

plist::Primitive< std::string >::Primitive ( const std::string &  v,
size_type  off,
size_type  count = npos 
) [inline]

casting constructor

Definition at line 261 of file plistPrimitives.h.

plist::Primitive< std::string >::Primitive ( const char *  v,
size_type  count 
) [inline]

casting constructor

Definition at line 262 of file plistPrimitives.h.

plist::Primitive< std::string >::Primitive ( const char *  v  )  [inline]

casting constructor

Definition at line 263 of file plistPrimitives.h.

plist::Primitive< std::string >::Primitive ( size_type  count,
char  v 
) [inline]

casting constructor

Definition at line 264 of file plistPrimitives.h.


Member Function Documentation

Primitive< std::string > * plist::Primitive< std::string >::clone (  )  const [virtual]

implements the clone function for Primitive<std::string>

Implements plist::ObjectBase.

Definition at line 291 of file plistPrimitives.cc.

std::string plist::Primitive< std::string >::get (  )  const [inline, virtual]

return current value as a string

Implements plist::PrimitiveBase.

Definition at line 277 of file plistPrimitives.h.

void plist::Primitive< std::string >::loadXML ( xmlNode node  )  [virtual]

interprets node as a string

Reimplemented from plist::ObjectBase.

Definition at line 262 of file plistPrimitives.cc.

const std::string& plist::Primitive< std::string >::operator * (  )  const [inline]

dereference will return data storage as a string (for uniformity with the other Primitives, although unnecessary with this instantiation)

Definition at line 269 of file plistPrimitives.h.

const std::string* plist::Primitive< std::string >::operator-> (  )  const [inline]

returns a pointer to this (for uniformity with the other Primitives, although unnecessary with this instantiation)

Definition at line 271 of file plistPrimitives.h.

Primitive& plist::Primitive< std::string >::operator= ( char  v  )  [inline]

assignment

Definition at line 267 of file plistPrimitives.h.

Primitive& plist::Primitive< std::string >::operator= ( const char *  v  )  [inline]

assignment

Definition at line 266 of file plistPrimitives.h.

Primitive& plist::Primitive< std::string >::operator= ( const std::string &  v  )  [inline]

assignment

Definition at line 265 of file plistPrimitives.h.

void plist::Primitive< std::string >::saveXML ( xmlNode node  )  const [virtual]

saves the content of the string into node

Implements plist::ObjectBase.

Definition at line 284 of file plistPrimitives.cc.

void plist::Primitive< std::string >::set ( const std::string &  str  )  [inline, virtual]

assign a new value

Implements plist::PrimitiveBase.

Definition at line 276 of file plistPrimitives.h.


The documentation for this class was generated from the following files:

Tekkotsu v3.0
Generated Wed Oct 4 00:05:24 2006 by Doxygen 1.4.7