| Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
plist::ObjectBase Class Reference#include <plistBase.h>
Inheritance diagram for plist::ObjectBase: ![]() Detailed DescriptionThis base class provides the root functionality for all plist entities -- Dictionary and the various templated subclasses of PrimitiveBase.The subclasses may throw std::bad_format if the document is poorly structured or bad values are found.
Definition at line 119 of file plistBase.h.
Constructor & Destructor Documentation
Member Function Documentation
allows a copy to be made of an event, supporting polymorphism
Implements Cloneable. Implemented in plist::Dictionary, plist::Array, plist::Primitive< T >, plist::Primitive< char >, plist::Primitive< unsigned char >, plist::Primitive< std::string >, and plist::NamedEnumeration< T >. Referenced by plist::Array::addValue(), plist::Dictionary::addValue(), plist::Array::setValue(), and plist::Dictionary::setValue(). returns the root element of the xml document
Reimplemented from XMLLoadSave. Definition at line 26 of file plistBase.cc.
subclasses are expected to provide a working implementation
Implements XMLLoadSave. Implemented in plist::Dictionary, plist::Array, plist::Primitive< char >, plist::Primitive< unsigned char >, plist::Primitive< std::string >, and plist::NamedEnumeration< T >.
returns true if str is some form of negative (e.g. "false" or "no")
Definition at line 155 of file plistBase.h. Referenced by plist::Primitive< unsigned char >::set(), and plist::Primitive< char >::set().
returns true if str is some form of affirmative (e.g. "true" or "yes")
Definition at line 153 of file plistBase.h. Referenced by plist::Primitive< unsigned char >::set(), and plist::Primitive< char >::set().
subclasses are expected to provide a working implementation
Implements XMLLoadSave. Implemented in plist::Dictionary, plist::Array, plist::Primitive< char >, plist::Primitive< unsigned char >, plist::Primitive< std::string >, and plist::NamedEnumeration< T >.
assigns a parse tree which you have obtained from some other source This doesn't update the contents of the subclass's values. The values in doc will be overwritten by those in the subclass on the next Save. If you wish to have the subclass's values updated from doc, call readParseTree() after calling this. Reimplemented from XMLLoadSave. Definition at line 16 of file plistBase.cc.
return current value as a string
Implemented in plist::PrimitiveBase, plist::Dictionary, and plist::Array. Referenced by plist::operator<<(). returns name of node (not a libxml function)
Definition at line 64 of file plistBase.cc. Referenced by plist::NamedEnumeration< T >::loadXML(), and plist::Primitive< std::string >::loadXML(). returns next node (sibling) after node (not a libxml function)
Definition at line 70 of file plistBase.cc. Referenced by plist::Array::saveXML(), and plist::Dictionary::saveXML().
returns true if the name of node matches name
Definition at line 61 of file plistBase.cc. Referenced by plist::NamedEnumeration< T >::loadXML(), plist::Primitive< std::string >::loadXML(), plist::Primitive< unsigned char >::loadXML(), plist::Primitive< char >::loadXML(), and plist::loadXML().
Friends And Related Function Documentation
From the name of node, will instantiate a new ObjectBase subclass to load it. The mapping from node names to actual instantiated types is:
If successful, returns a pointer to a newly allocated region, which the caller is responsible for freeing. If an error occurs, NULL is returned. Implements XMLLoadSave. Reimplemented in plist::Dictionary, plist::Array, plist::Primitive< char >, plist::Primitive< unsigned char >, plist::Primitive< std::string >, and plist::NamedEnumeration< T >. Definition at line 7 of file plist.cc. Referenced by plist::loadXML().
The documentation for this class was generated from the following files: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tekkotsu v3.0 |
Generated Wed Oct 4 00:05:22 2006 by Doxygen 1.4.7 |