Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

plist::ObjectBase Class Reference

#include <plist.h>

Inheritance diagram for plist::ObjectBase:

Inheritance graph
[legend]
List of all members.

Detailed Description

This 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 73 of file plist.h.

libxml Forwards

Provides indirect access to the libxml function of the same name

typedef unsigned char xChar
static int xStrEqual (const xChar *a, const xChar *b)
static int xStrCaseEqual (const xChar *a, const xChar *b)
static xCharxNodeGetContent (xmlNode *node)
static void xNodeSetContent (xmlNode *node, const xChar *content)
static const xCharxNodeGetName (xmlNode *node)
static bool xNodeHasName (xmlNode *node, const char *name)
static void xNodeSetName (xmlNode *node, const xChar *name)
static xmlAttrxHasProperty (xmlNode *node, const xChar *name)
static xCharxGetProperty (xmlNode *node, const xChar *name)
static long xGetLineNo (xmlNode *node)
static void xFree (void *ptr)

Public Member Functions

 ObjectBase ()
 constructor
virtual ~ObjectBase ()=0
 destructor

Protected Member Functions

Inherited from XMLLoadSave
virtual void setParseTree (xmlDoc *doc) const
 assigns a parse tree which you have obtained from some other source
virtual xmlNodeFindRootXMLElement (xmlDoc *doc) const
 returns the root element of the xml document


Member Typedef Documentation

typedef unsigned char plist::ObjectBase::xChar [protected]
 

Definition at line 86 of file plist.h.


Constructor & Destructor Documentation

plist::ObjectBase::ObjectBase  ) 
 

constructor

Definition at line 10 of file plist.cc.

plist::ObjectBase::~ObjectBase  )  [pure virtual]
 

destructor

Definition at line 14 of file plist.cc.


Member Function Documentation

xmlNode * plist::ObjectBase::FindRootXMLElement xmlDoc doc  )  const [protected, virtual]
 

returns the root element of the xml document

Reimplemented from XMLLoadSave.

Definition at line 26 of file plist.cc.

void plist::ObjectBase::setParseTree xmlDoc doc  )  const [protected, virtual]
 

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 plist.cc.

void plist::ObjectBase::xFree void *  ptr  )  [static, protected]
 

Definition at line 91 of file plist.cc.

Referenced by plist::NamedEnumeration< T >::LoadXML(), plist::Primitive< std::string >::LoadXML(), plist::Primitive< unsigned char >::LoadXML(), plist::Primitive< char >::LoadXML(), and plist::Primitive< bool >::LoadXML().

long plist::ObjectBase::xGetLineNo xmlNode node  )  [static, protected]
 

Definition at line 88 of file plist.cc.

Referenced by plist::Primitive< std::string >::LoadXML().

ObjectBase::xChar * plist::ObjectBase::xGetProperty xmlNode node,
const xChar name
[static, protected]
 

Definition at line 85 of file plist.cc.

xmlAttr * plist::ObjectBase::xHasProperty xmlNode node,
const xChar name
[static, protected]
 

Definition at line 82 of file plist.cc.

ObjectBase::xChar * plist::ObjectBase::xNodeGetContent xmlNode node  )  [static, protected]
 

Definition at line 67 of file plist.cc.

Referenced by plist::NamedEnumeration< T >::LoadXML(), plist::Primitive< std::string >::LoadXML(), plist::Primitive< unsigned char >::LoadXML(), plist::Primitive< char >::LoadXML(), and plist::Primitive< bool >::LoadXML().

const ObjectBase::xChar * plist::ObjectBase::xNodeGetName xmlNode node  )  [static, protected]
 

Definition at line 73 of file plist.cc.

Referenced by plist::NamedEnumeration< T >::LoadXML(), and plist::Primitive< std::string >::LoadXML().

bool plist::ObjectBase::xNodeHasName xmlNode node,
const char *  name
[static, protected]
 

Definition at line 76 of file plist.cc.

Referenced by plist::NamedEnumeration< T >::LoadXML(), plist::Primitive< std::string >::LoadXML(), plist::Primitive< unsigned char >::LoadXML(), plist::Primitive< char >::LoadXML(), and plist::Primitive< bool >::LoadXML().

void plist::ObjectBase::xNodeSetContent xmlNode node,
const xChar content
[static, protected]
 

Definition at line 70 of file plist.cc.

Referenced by plist::NamedEnumeration< T >::SaveXML(), plist::Primitive< std::string >::SaveXML(), plist::Primitive< unsigned char >::SaveXML(), plist::Primitive< char >::SaveXML(), and plist::Primitive< bool >::SaveXML().

void plist::ObjectBase::xNodeSetName xmlNode node,
const xChar name
[static, protected]
 

Definition at line 79 of file plist.cc.

Referenced by plist::NamedEnumeration< T >::SaveXML(), plist::Primitive< std::string >::SaveXML(), plist::Primitive< unsigned char >::SaveXML(), plist::Primitive< char >::SaveXML(), and plist::Primitive< bool >::SaveXML().

int plist::ObjectBase::xStrCaseEqual const xChar a,
const xChar b
[static, protected]
 

Definition at line 64 of file plist.cc.

int plist::ObjectBase::xStrEqual const xChar a,
const xChar b
[static, protected]
 

Definition at line 61 of file plist.cc.


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

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