CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
cmlabs::XMLNode Struct Reference

#include <xml_parser.h>

Collaboration diagram for cmlabs::XMLNode:
[legend]

Public Types

enum  XMLCharEncoding { encoding_UTF8 =1 , encoding_ascii =2 , encoding_ShiftJIS =3 }
typedef enum cmlabs::XMLNode::XMLCharEncoding XMLCharEncoding

Public Member Functions

XMLCSTR getName () const
XMLCSTR getText (int i=0) const
int nText () const
XMLNode getParentNode () const
XMLNode getChildNode (int i=0) const
XMLNode getChildNode (XMLCSTR name, int i) const
XMLNode getChildNode (XMLCSTR name, int *i=NULL) const
XMLNode getChildNodeWithAttribute (XMLCSTR tagName, XMLCSTR attributeName, XMLCSTR attributeValue=NULL, int *i=NULL) const
int nChildNode (XMLCSTR name) const
int nChildNode () const
XMLAttribute getAttribute (int i=0) const
XMLCSTR getAttributeName (int i=0) const
XMLCSTR getAttributeValue (int i=0) const
char isAttributeSet (XMLCSTR name) const
XMLCSTR getAttribute (XMLCSTR name, int i) const
XMLCSTR getAttribute (XMLCSTR name, int *i=NULL) const
int nAttribute () const
XMLClear getClear (int i=0) const
int nClear () const
XMLSTR createXMLString (int nFormat=1, int *pnSize=NULL) const
XMLError writeToFile (XMLCSTR filename, const char *encoding=NULL, char nFormat=1) const
XMLNodeContents enumContents (int i) const
int nElement () const
char isEmpty () const
char isDeclaration () const
bool operator! ()
 ~XMLNode ()
 XMLNode (const XMLNode &A)
XMLNode & operator= (const XMLNode &A)
 XMLNode ()
XMLNode addChild (XMLCSTR lpszName, char isDeclaration=FALSE, int pos=-1)
XMLAttributeaddAttribute (XMLCSTR lpszName, XMLCSTR lpszValuev)
XMLCSTR addText (XMLCSTR lpszValue, int pos=-1)
XMLClearaddClear (XMLCSTR lpszValue, XMLCSTR lpszOpen=NULL, XMLCSTR lpszClose=NULL, int pos=-1)
XMLNode addChild (XMLNode nodeToAdd, int pos=-1)
XMLCSTR updateName (XMLCSTR lpszName)
XMLAttributeupdateAttribute (XMLAttribute *newAttribute, XMLAttribute *oldAttribute)
XMLAttributeupdateAttribute (XMLCSTR lpszNewValue, XMLCSTR lpszNewName=NULL, int i=0)
XMLAttributeupdateAttribute (XMLCSTR lpszNewValue, XMLCSTR lpszNewName, XMLCSTR lpszOldName)
XMLCSTR updateText (XMLCSTR lpszNewValue, int i=0)
XMLCSTR updateText (XMLCSTR lpszNewValue, XMLCSTR lpszOldValue)
XMLClearupdateClear (XMLCSTR lpszNewContent, int i=0)
XMLClearupdateClear (XMLClear *newP, XMLClear *oldP)
XMLClearupdateClear (XMLCSTR lpszNewValue, XMLCSTR lpszOldValue)
void deleteNodeContent ()
void deleteAttribute (XMLCSTR lpszName)
void deleteAttribute (int i=0)
void deleteAttribute (XMLAttribute *anAttribute)
void deleteText (int i=0)
void deleteText (XMLCSTR lpszValue)
void deleteClear (int i=0)
void deleteClear (XMLClear *p)
void deleteClear (XMLCSTR lpszValue)
XMLNode addChild_WOSD (XMLSTR lpszName, char isDeclaration=FALSE, int pos=-1)
XMLAttributeaddAttribute_WOSD (XMLSTR lpszName, XMLSTR lpszValue)
XMLCSTR addText_WOSD (XMLSTR lpszValue, int pos=-1)
XMLClearaddClear_WOSD (XMLSTR lpszValue, XMLCSTR lpszOpen=NULL, XMLCSTR lpszClose=NULL, int pos=-1)
XMLCSTR updateName_WOSD (XMLSTR lpszName)
XMLAttributeupdateAttribute_WOSD (XMLAttribute *newAttribute, XMLAttribute *oldAttribute)
XMLAttributeupdateAttribute_WOSD (XMLSTR lpszNewValue, XMLSTR lpszNewName=NULL, int i=0)
XMLAttributeupdateAttribute_WOSD (XMLSTR lpszNewValue, XMLSTR lpszNewName, XMLCSTR lpszOldName)
XMLCSTR updateText_WOSD (XMLSTR lpszNewValue, int i=0)
XMLCSTR updateText_WOSD (XMLSTR lpszNewValue, XMLCSTR lpszOldValue)
XMLClearupdateClear_WOSD (XMLSTR lpszNewContent, int i=0)
XMLClearupdateClear_WOSD (XMLClear *newP, XMLClear *oldP)
XMLClearupdateClear_WOSD (XMLSTR lpszNewValue, XMLCSTR lpszOldValue)
int positionOfText (int i=0) const
int positionOfText (XMLCSTR lpszValue) const
int positionOfClear (int i=0) const
int positionOfClear (XMLCSTR lpszValue) const
int positionOfClear (XMLClear *a) const
int positionOfChildNode (int i=0) const
int positionOfChildNode (XMLNode x) const
int positionOfChildNode (XMLCSTR name, int i=0) const

Static Public Member Functions

static XMLNode createXMLTopNode (XMLCSTR lpszName, char isDeclaration=FALSE)
static XMLNode parseString (XMLCSTR lpXMLString, XMLCSTR tag=NULL, XMLResults *pResults=NULL)
static XMLNode parseFile (XMLCSTR filename, XMLCSTR tag=NULL, XMLResults *pResults=NULL)
static XMLNode openFileHelper (XMLCSTR filename, XMLCSTR tag=NULL)
static XMLCSTR getError (XMLError error)
static XMLCSTR getVersion ()
static XMLNode emptyNode ()
static XMLNode createXMLTopNode_WOSD (XMLSTR lpszName, char isDeclaration=FALSE)
static char setGlobalOptions (XMLCharEncoding characterEncoding=XMLNode::encoding_UTF8, char guessWideCharChars=1, char dropWhiteSpace=1)
static XMLCharEncoding guessCharEncoding (void *buffer, int bufLen, char useXMLEncodingAttribute=1)
static bool UnitTest ()

Static Public Attributes

static XMLNode emptyXMLNode
static XMLClear emptyXMLClear
static XMLAttribute emptyXMLAttribute

Detailed Description

Definition at line 184 of file xml_parser.h.

Member Typedef Documentation

◆ XMLCharEncoding

typedef enum cmlabs::XMLNode::XMLCharEncoding cmlabs::XMLNode::XMLCharEncoding

Member Enumeration Documentation

◆ XMLCharEncoding

enum cmlabs::XMLNode::XMLCharEncoding
Enumerator
encoding_UTF8 
encoding_ascii 
encoding_ShiftJIS 

Definition at line 415 of file xml_parser.h.

Constructor & Destructor Documentation

◆ ~XMLNode()

cmlabs::XMLNode::~XMLNode ( )

◆ XMLNode() [1/2]

cmlabs::XMLNode::XMLNode ( const XMLNode & A)

◆ XMLNode() [2/2]

cmlabs::XMLNode::XMLNode ( )
inline

Definition at line 289 of file xml_parser.h.

Member Function Documentation

◆ addAttribute()

XMLAttribute * cmlabs::XMLNode::addAttribute ( XMLCSTR lpszName,
XMLCSTR lpszValuev )

References XMLCSTR.

◆ addAttribute_WOSD()

XMLAttribute * cmlabs::XMLNode::addAttribute_WOSD ( XMLSTR lpszName,
XMLSTR lpszValue )

References XMLSTR.

◆ addChild() [1/2]

XMLNode cmlabs::XMLNode::addChild ( XMLCSTR lpszName,
char isDeclaration = FALSE,
int pos = -1 )

References FALSE, isDeclaration(), and XMLCSTR.

◆ addChild() [2/2]

XMLNode cmlabs::XMLNode::addChild ( XMLNode nodeToAdd,
int pos = -1 )

◆ addChild_WOSD()

XMLNode cmlabs::XMLNode::addChild_WOSD ( XMLSTR lpszName,
char isDeclaration = FALSE,
int pos = -1 )

References FALSE, isDeclaration(), and XMLSTR.

◆ addClear()

XMLClear * cmlabs::XMLNode::addClear ( XMLCSTR lpszValue,
XMLCSTR lpszOpen = NULL,
XMLCSTR lpszClose = NULL,
int pos = -1 )

References XMLCSTR.

◆ addClear_WOSD()

XMLClear * cmlabs::XMLNode::addClear_WOSD ( XMLSTR lpszValue,
XMLCSTR lpszOpen = NULL,
XMLCSTR lpszClose = NULL,
int pos = -1 )

References XMLCSTR, and XMLSTR.

◆ addText()

XMLCSTR cmlabs::XMLNode::addText ( XMLCSTR lpszValue,
int pos = -1 )

References XMLCSTR.

◆ addText_WOSD()

XMLCSTR cmlabs::XMLNode::addText_WOSD ( XMLSTR lpszValue,
int pos = -1 )

References XMLCSTR, and XMLSTR.

◆ createXMLString()

XMLSTR cmlabs::XMLNode::createXMLString ( int nFormat = 1,
int * pnSize = NULL ) const

References XMLSTR.

◆ createXMLTopNode()

XMLNode cmlabs::XMLNode::createXMLTopNode ( XMLCSTR lpszName,
char isDeclaration = FALSE )
static

References FALSE, isDeclaration(), and XMLCSTR.

◆ createXMLTopNode_WOSD()

XMLNode cmlabs::XMLNode::createXMLTopNode_WOSD ( XMLSTR lpszName,
char isDeclaration = FALSE )
static

References FALSE, isDeclaration(), and XMLSTR.

◆ deleteAttribute() [1/3]

void cmlabs::XMLNode::deleteAttribute ( int i = 0)

◆ deleteAttribute() [2/3]

void cmlabs::XMLNode::deleteAttribute ( XMLAttribute * anAttribute)

◆ deleteAttribute() [3/3]

void cmlabs::XMLNode::deleteAttribute ( XMLCSTR lpszName)

References XMLCSTR.

◆ deleteClear() [1/3]

void cmlabs::XMLNode::deleteClear ( int i = 0)

◆ deleteClear() [2/3]

void cmlabs::XMLNode::deleteClear ( XMLClear * p)

◆ deleteClear() [3/3]

void cmlabs::XMLNode::deleteClear ( XMLCSTR lpszValue)

References XMLCSTR.

◆ deleteNodeContent()

void cmlabs::XMLNode::deleteNodeContent ( )

◆ deleteText() [1/2]

void cmlabs::XMLNode::deleteText ( int i = 0)

◆ deleteText() [2/2]

void cmlabs::XMLNode::deleteText ( XMLCSTR lpszValue)

References XMLCSTR.

◆ emptyNode()

XMLNode cmlabs::XMLNode::emptyNode ( )
static

◆ enumContents()

XMLNodeContents cmlabs::XMLNode::enumContents ( int i) const

◆ getAttribute() [1/3]

◆ getAttribute() [2/3]

XMLCSTR cmlabs::XMLNode::getAttribute ( XMLCSTR name,
int * i = NULL ) const

References XMLCSTR.

◆ getAttribute() [3/3]

XMLCSTR cmlabs::XMLNode::getAttribute ( XMLCSTR name,
int i ) const

References XMLCSTR.

◆ getAttributeName()

XMLCSTR cmlabs::XMLNode::getAttributeName ( int i = 0) const

References XMLCSTR.

◆ getAttributeValue()

XMLCSTR cmlabs::XMLNode::getAttributeValue ( int i = 0) const

References XMLCSTR.

◆ getChildNode() [1/3]

◆ getChildNode() [2/3]

XMLNode cmlabs::XMLNode::getChildNode ( XMLCSTR name,
int * i = NULL ) const

References XMLCSTR.

◆ getChildNode() [3/3]

XMLNode cmlabs::XMLNode::getChildNode ( XMLCSTR name,
int i ) const

References XMLCSTR.

◆ getChildNodeWithAttribute()

XMLNode cmlabs::XMLNode::getChildNodeWithAttribute ( XMLCSTR tagName,
XMLCSTR attributeName,
XMLCSTR attributeValue = NULL,
int * i = NULL ) const

References XMLCSTR.

◆ getClear()

XMLClear cmlabs::XMLNode::getClear ( int i = 0) const

◆ getError()

XMLCSTR cmlabs::XMLNode::getError ( XMLError error)
static

References XMLCSTR.

◆ getName()

XMLCSTR cmlabs::XMLNode::getName ( ) const

◆ getParentNode()

XMLNode cmlabs::XMLNode::getParentNode ( ) const

◆ getText()

XMLCSTR cmlabs::XMLNode::getText ( int i = 0) const

References XMLCSTR.

◆ getVersion()

XMLCSTR cmlabs::XMLNode::getVersion ( )
static

References XMLCSTR.

◆ guessCharEncoding()

XMLCharEncoding cmlabs::XMLNode::guessCharEncoding ( void * buffer,
int bufLen,
char useXMLEncodingAttribute = 1 )
static

◆ isAttributeSet()

char cmlabs::XMLNode::isAttributeSet ( XMLCSTR name) const

References XMLCSTR.

◆ isDeclaration()

char cmlabs::XMLNode::isDeclaration ( ) const

◆ isEmpty()

◆ nAttribute()

int cmlabs::XMLNode::nAttribute ( ) const

Referenced by UnitTest().

◆ nChildNode() [1/2]

int cmlabs::XMLNode::nChildNode ( ) const

◆ nChildNode() [2/2]

◆ nClear()

int cmlabs::XMLNode::nClear ( ) const

Referenced by UnitTest().

◆ nElement()

int cmlabs::XMLNode::nElement ( ) const

◆ nText()

int cmlabs::XMLNode::nText ( ) const

Referenced by UnitTest().

◆ openFileHelper()

XMLNode cmlabs::XMLNode::openFileHelper ( XMLCSTR filename,
XMLCSTR tag = NULL )
static

References XMLCSTR.

◆ operator!()

bool cmlabs::XMLNode::operator! ( )
inline

Definition at line 282 of file xml_parser.h.

References isEmpty().

◆ operator=()

XMLNode & cmlabs::XMLNode::operator= ( const XMLNode & A)

◆ parseFile()

XMLNode cmlabs::XMLNode::parseFile ( XMLCSTR filename,
XMLCSTR tag = NULL,
XMLResults * pResults = NULL )
static

References XMLCSTR.

◆ parseString()

XMLNode cmlabs::XMLNode::parseString ( XMLCSTR lpXMLString,
XMLCSTR tag = NULL,
XMLResults * pResults = NULL )
static

References XMLCSTR.

◆ positionOfChildNode() [1/3]

int cmlabs::XMLNode::positionOfChildNode ( int i = 0) const

◆ positionOfChildNode() [2/3]

int cmlabs::XMLNode::positionOfChildNode ( XMLCSTR name,
int i = 0 ) const

References XMLCSTR.

◆ positionOfChildNode() [3/3]

int cmlabs::XMLNode::positionOfChildNode ( XMLNode x) const

◆ positionOfClear() [1/3]

int cmlabs::XMLNode::positionOfClear ( int i = 0) const

◆ positionOfClear() [2/3]

int cmlabs::XMLNode::positionOfClear ( XMLClear * a) const

◆ positionOfClear() [3/3]

int cmlabs::XMLNode::positionOfClear ( XMLCSTR lpszValue) const

References XMLCSTR.

◆ positionOfText() [1/2]

int cmlabs::XMLNode::positionOfText ( int i = 0) const

◆ positionOfText() [2/2]

int cmlabs::XMLNode::positionOfText ( XMLCSTR lpszValue) const

References XMLCSTR.

◆ setGlobalOptions()

char cmlabs::XMLNode::setGlobalOptions ( XMLCharEncoding characterEncoding = XMLNode::encoding_UTF8,
char guessWideCharChars = 1,
char dropWhiteSpace = 1 )
static

◆ UnitTest()

bool cmlabs::XMLNode::UnitTest ( )
static

◆ updateAttribute() [1/3]

XMLAttribute * cmlabs::XMLNode::updateAttribute ( XMLAttribute * newAttribute,
XMLAttribute * oldAttribute )

◆ updateAttribute() [2/3]

XMLAttribute * cmlabs::XMLNode::updateAttribute ( XMLCSTR lpszNewValue,
XMLCSTR lpszNewName,
XMLCSTR lpszOldName )

References XMLCSTR.

◆ updateAttribute() [3/3]

XMLAttribute * cmlabs::XMLNode::updateAttribute ( XMLCSTR lpszNewValue,
XMLCSTR lpszNewName = NULL,
int i = 0 )

References XMLCSTR.

◆ updateAttribute_WOSD() [1/3]

XMLAttribute * cmlabs::XMLNode::updateAttribute_WOSD ( XMLAttribute * newAttribute,
XMLAttribute * oldAttribute )

◆ updateAttribute_WOSD() [2/3]

XMLAttribute * cmlabs::XMLNode::updateAttribute_WOSD ( XMLSTR lpszNewValue,
XMLSTR lpszNewName,
XMLCSTR lpszOldName )

References XMLCSTR, and XMLSTR.

◆ updateAttribute_WOSD() [3/3]

XMLAttribute * cmlabs::XMLNode::updateAttribute_WOSD ( XMLSTR lpszNewValue,
XMLSTR lpszNewName = NULL,
int i = 0 )

References XMLSTR.

◆ updateClear() [1/3]

XMLClear * cmlabs::XMLNode::updateClear ( XMLClear * newP,
XMLClear * oldP )

◆ updateClear() [2/3]

XMLClear * cmlabs::XMLNode::updateClear ( XMLCSTR lpszNewContent,
int i = 0 )

References XMLCSTR.

◆ updateClear() [3/3]

XMLClear * cmlabs::XMLNode::updateClear ( XMLCSTR lpszNewValue,
XMLCSTR lpszOldValue )

References XMLCSTR.

◆ updateClear_WOSD() [1/3]

XMLClear * cmlabs::XMLNode::updateClear_WOSD ( XMLClear * newP,
XMLClear * oldP )

◆ updateClear_WOSD() [2/3]

XMLClear * cmlabs::XMLNode::updateClear_WOSD ( XMLSTR lpszNewContent,
int i = 0 )

References XMLSTR.

◆ updateClear_WOSD() [3/3]

XMLClear * cmlabs::XMLNode::updateClear_WOSD ( XMLSTR lpszNewValue,
XMLCSTR lpszOldValue )

References XMLCSTR, and XMLSTR.

◆ updateName()

XMLCSTR cmlabs::XMLNode::updateName ( XMLCSTR lpszName)

References XMLCSTR.

◆ updateName_WOSD()

XMLCSTR cmlabs::XMLNode::updateName_WOSD ( XMLSTR lpszName)

References XMLCSTR, and XMLSTR.

◆ updateText() [1/2]

XMLCSTR cmlabs::XMLNode::updateText ( XMLCSTR lpszNewValue,
int i = 0 )

References XMLCSTR.

◆ updateText() [2/2]

XMLCSTR cmlabs::XMLNode::updateText ( XMLCSTR lpszNewValue,
XMLCSTR lpszOldValue )

References XMLCSTR.

◆ updateText_WOSD() [1/2]

XMLCSTR cmlabs::XMLNode::updateText_WOSD ( XMLSTR lpszNewValue,
int i = 0 )

References XMLCSTR, and XMLSTR.

◆ updateText_WOSD() [2/2]

XMLCSTR cmlabs::XMLNode::updateText_WOSD ( XMLSTR lpszNewValue,
XMLCSTR lpszOldValue )

References XMLCSTR, and XMLSTR.

◆ writeToFile()

XMLError cmlabs::XMLNode::writeToFile ( XMLCSTR filename,
const char * encoding = NULL,
char nFormat = 1 ) const

References XMLCSTR.

Member Data Documentation

◆ emptyXMLAttribute

XMLAttribute cmlabs::XMLNode::emptyXMLAttribute
static

Definition at line 292 of file xml_parser.h.

◆ emptyXMLClear

XMLClear cmlabs::XMLNode::emptyXMLClear
static

Definition at line 291 of file xml_parser.h.

◆ emptyXMLNode

XMLNode cmlabs::XMLNode::emptyXMLNode
static

Definition at line 290 of file xml_parser.h.


The documentation for this struct was generated from the following file:
  • /home/ubuntu/c/partner/psyclone2/CMSDK/include/xml_parser.h