Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

plist::Primitive< bool > Class Template Reference

#include <plist.h>

Inheritance diagram for plist::Primitive< bool >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<>
class plist::Primitive< bool >

provides a bool specialization of Primitive<T>

A bool can be treated as either a string or an integer
When saving, "true" or "false" will be used, but users could also specify "yes"/"no" or "on"/"off". If an integer is used, it will be interpreted as usual: 0==false, otherwise true.

Definition at line 278 of file plist.h.

Public Member Functions

 Primitive ()
 constructor
 Primitive (const bool &v)
 casting constructor
Primitiveoperator= (const bool &v)
 assignment constructor
const bool & operator * () const
 dereference will return data storage
const bool * operator-> () const
 can use -> to access members of data storage
 operator bool () const
 casting operator
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

Protected Attributes

bool val
 the actual data storage


Member Function Documentation

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

return current value as a string

Implements plist::PrimitiveBase.

Definition at line 338 of file plist.h.

void plist::Primitive< bool >::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 288 of file plist.h.

const bool& plist::Primitive< bool >::operator *  )  const [inline]
 

dereference will return data storage

Definition at line 284 of file plist.h.

plist::Primitive< bool >::operator bool  )  const [inline]
 

casting operator

Definition at line 287 of file plist.h.

const bool* plist::Primitive< bool >::operator->  )  const [inline]
 

can use -> to access members of data storage

Definition at line 286 of file plist.h.

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

assignment constructor

Definition at line 282 of file plist.h.

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

casting constructor

Definition at line 281 of file plist.h.

plist::Primitive< bool >::Primitive  )  [inline]
 

constructor

Definition at line 280 of file plist.h.

void plist::Primitive< bool >::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 319 of file plist.h.

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

assign a new value

Implements plist::PrimitiveBase.

Definition at line 325 of file plist.h.


Member Data Documentation

bool plist::Primitive< bool >::val [protected]
 

the actual data storage

Definition at line 342 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:14 2005 by Doxygen 1.4.4