Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

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

#include <plist.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 581 of file plist.h.

Public Member Functions

 Primitive ()
 constructor
 Primitive (const std::string &v)
 casting constructor
Primitiveoperator= (const std::string &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)
 This is called when the subclass needs to update its values from those values in the parse tree.
void SaveXML (xmlNode *node) const
 This is called when XMLLoadSave needs to have the subclass update values in the tree currently in memory -- may already be filled out by previous contents.
void set (const std::string &str)
 assign a new value
std::string get () const
 return current value as a string


Member Function Documentation

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

return current value as a string

Implements plist::PrimitiveBase.

Definition at line 623 of file plist.h.

void plist::Primitive< std::string >::LoadXML xmlNode node  )  [inline, virtual]
 

This is called when the subclass needs to update its values from those values in the parse tree.

node is the current node in the tree -- it may be the root, but it may also be a subnode within the tree if a recursive structure is used

Implements XMLLoadSave.

Definition at line 591 of file plist.h.

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 587 of file plist.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 589 of file plist.h.

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

assignment

Definition at line 585 of file plist.h.

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

casting constructor

Definition at line 584 of file plist.h.

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

constructor

Definition at line 583 of file plist.h.

void plist::Primitive< std::string >::SaveXML xmlNode node  )  const [inline, virtual]
 

This is called when XMLLoadSave needs to have the subclass update values in the tree currently in memory -- may already be filled out by previous contents.

node is the current node in the tree -- it may be the root, but it may also be a subnode within the tree if a recursive structure is used

Implements XMLLoadSave.

Definition at line 613 of file plist.h.

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

assign a new value

Implements plist::PrimitiveBase.

Definition at line 619 of file plist.h.


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

Tekkotsu v2.4.1
Generated Tue Aug 16 16:35:15 2005 by Doxygen 1.4.4