Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

Public Member Functions | Protected Attributes | Private Member Functions

PXMLElement Class Reference

Inheritance diagram for PXMLElement:
Inheritance graph
Collaboration diagram for PXMLElement:
Collaboration graph

List of all members.

Public Member Functions

PXMLElementAddChild (PXMLElement *elem, BOOL dirty=TRUE)
PXMLDataAddChild (PXMLData *elem, BOOL dirty=TRUE)
PXMLObjectAddSubObject (PXMLObject *elem, BOOL dirty=TRUE)
PXMLObjectClone (PXMLElement *parent) const
PINDEX FindObject (PXMLObject *ptr) const
PString GetAttribute (const PCaselessString &key) const
PString GetData () const
PString GetDataAttribute (PINDEX idx) const
PXMLElementGetElement (const PCaselessString &name, PINDEX idx=0) const
PXMLObjectGetElement (PINDEX idx=0) const
PString GetKeyAttribute (PINDEX idx) const
PCaselessString GetName () const
PXMLObjectGetNextObject ()
PINDEX GetNumAttributes () const
PXMLElementGetParent ()
PINDEX GetSize () const
PXMLObjectArray GetSubObjects () const
BOOL HasAttribute (const PCaselessString &key)
BOOL HasAttributes () const
BOOL HasSubObjects () const
BOOL IsDirty () const
BOOL IsElement () const
void Output (ostream &strm, const PXMLBase &xml, int indent) const
void PrintOn (ostream &strm) const
 PXMLElement (PXMLElement *_parent, const PString &name, const PString &data)
 PXMLElement (PXMLElement *_parent, const char *name=NULL)
BOOL RemoveElement (PINDEX idx)
void SetAttribute (const PCaselessString &key, const PString &value, BOOL setDirty=TRUE)
void SetDirty ()
void SetName (const PString &v)
void SetParent (PXMLElement *newParent)
Miscellaneous functions
virtual PObjectClone () const
virtual PINDEX HashFunction () const

Protected Attributes

PStringToString attributes
BOOL dirty
PCaselessString name
PXMLObjectArray subObjects

Private Member Functions


Run Time Type functions

virtual const char * GetClass (unsigned=0) const
BOOL IsClass (const char *cls) const
virtual BOOL InternalIsDescendant (const char *clsName) const
static const char * Class ()

Comparison functions

virtual Comparison Compare (const PObject &obj) const
virtual Comparison CompareObjectMemoryDirect (const PObject &obj) const
bool operator== (const PObject &obj) const
bool operator!= (const PObject &obj) const
bool operator< (const PObject &obj) const
bool operator> (const PObject &obj) const
bool operator<= (const PObject &obj) const
bool operator>= (const PObject &obj) const
enum  Comparison { LessThan = -1, EqualTo = 0, GreaterThan = 1 }

I/O functions

virtual void ReadFrom (istream &strm)
ostream & operator<< (ostream &strm, const PObject &obj)
istream & operator>> (istream &strm, PObject &obj)

Detailed Description

Definition at line 325 of file pxml.h.

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

Generated by  Doxygen 1.6.0   Back to index