#include <xmlParser.h>
Classes | |
struct | XMLNodeDataTag |
Public Member Functions | |
const char * | getName () const |
const char * | getText (int i=0) const |
int | nText () const |
XMLNode | getParentNode () const |
XMLNode | getChildNode (int i=0) const |
XMLNode | getChildNode (const char *name, int i) const |
XMLNode | getChildNode (const char *name, int *i=NULL) const |
XMLNode | getChildNodeWithAttribute (const char *tagName, const char *attributeName, const char *attributeValue=NULL, int *i=NULL) const |
int | nChildNode (const char *name) const |
int | nChildNode () const |
XMLAttribute | getAttribute (int i=0) const |
const char * | getAttributeName (int i=0) const |
const char * | getAttributeValue (int i=0) const |
char | isAttributeSet (const char *name) const |
const char * | getAttribute (const char *name, int i) const |
const char * | getAttribute (const char *name, int *i=NULL) const |
int | nAttribute () const |
XMLClear | getClear (int i=0) const |
int | nClear () const |
char * | createXMLString (int nFormat=1, int *pnSize=NULL) const |
XMLError | writeToFile (const char *filename, const char *encoding=NULL, char nFormat=1) const |
XMLNodeContents | enumContents (int i) const |
int | nElement () const |
char | isEmpty () const |
char | isDeclaration () const |
~XMLNode () | |
XMLNode (const XMLNode &A) | |
XMLNode & | operator= (const XMLNode &A) |
XMLNode () | |
XMLNode | addChild (const char *lpszName, char isDeclaration=0, int pos=-1) |
XMLAttribute * | addAttribute (const char *lpszName, const char *lpszValuev) |
const char * | addText (const char *lpszValue, int pos=-1) |
XMLClear * | addClear (const char *lpszValue, const char *lpszOpen=NULL, const char *lpszClose=NULL, int pos=-1) |
XMLNode | addChild (XMLNode nodeToAdd, int pos=-1) |
const char * | updateName (const char *lpszName) |
XMLAttribute * | updateAttribute (XMLAttribute *newAttribute, XMLAttribute *oldAttribute) |
XMLAttribute * | updateAttribute (const char *lpszNewValue, const char *lpszNewName=NULL, int i=0) |
XMLAttribute * | updateAttribute (const char *lpszNewValue, const char *lpszNewName, const char *lpszOldName) |
const char * | updateText (const char *lpszNewValue, int i=0) |
const char * | updateText (const char *lpszNewValue, const char *lpszOldValue) |
XMLClear * | updateClear (const char *lpszNewContent, int i=0) |
XMLClear * | updateClear (XMLClear *newP, XMLClear *oldP) |
XMLClear * | updateClear (const char *lpszNewValue, const char *lpszOldValue) |
void | deleteNodeContent (char force=0) |
void | deleteAttribute (const char *lpszName) |
void | deleteAttribute (int i=0) |
void | deleteAttribute (XMLAttribute *anAttribute) |
void | deleteText (int i=0) |
void | deleteText (const char *lpszValue) |
void | deleteClear (int i=0) |
void | deleteClear (XMLClear *p) |
void | deleteClear (const char *lpszValue) |
XMLNode | addChild_WOSD (const char *lpszName, char isDeclaration=0, int pos=-1) |
XMLAttribute * | addAttribute_WOSD (const char *lpszName, const char *lpszValue) |
const char * | addText_WOSD (const char *lpszValue, int pos=-1) |
XMLClear * | addClear_WOSD (const char *lpszValue, const char *lpszOpen=NULL, const char *lpszClose=NULL, int pos=-1) |
const char * | updateName_WOSD (const char *lpszName) |
XMLAttribute * | updateAttribute_WOSD (XMLAttribute *newAttribute, XMLAttribute *oldAttribute) |
XMLAttribute * | updateAttribute_WOSD (const char *lpszNewValue, const char *lpszNewName=NULL, int i=0) |
XMLAttribute * | updateAttribute_WOSD (const char *lpszNewValue, const char *lpszNewName, const char *lpszOldName) |
const char * | updateText_WOSD (const char *lpszNewValue, int i=0) |
const char * | updateText_WOSD (const char *lpszNewValue, const char *lpszOldValue) |
XMLClear * | updateClear_WOSD (const char *lpszNewContent, int i=0) |
XMLClear * | updateClear_WOSD (XMLClear *newP, XMLClear *oldP) |
XMLClear * | updateClear_WOSD (const char *lpszNewValue, const char *lpszOldValue) |
int | positionOfText (int i=0) const |
int | positionOfText (const char *lpszValue) const |
int | positionOfClear (int i=0) const |
int | positionOfClear (const char *lpszValue) const |
int | positionOfClear (XMLClear *a) const |
int | positionOfChildNode (int i=0) const |
int | positionOfChildNode (XMLNode x) const |
int | positionOfChildNode (const char *name, int i=0) const |
Static Public Member Functions | |
static XMLNode | createXMLTopNode (const char *lpszName, char isDeclaration=0) |
static XMLNode | parseString (const char *lpXMLString, const char *tag=NULL, XMLResults *pResults=NULL) |
static XMLNode | parseFile (const char *filename, const char *tag=NULL, XMLResults *pResults=NULL) |
static XMLNode | openFileHelper (const char *filename, const char *tag=NULL) |
static const char * | getError (XMLError error) |
static const char * | getVersion () |
static ALLXMLClearTag * | getClearTagTable () |
static XMLNode | createXMLTopNode_WOSD (const char *lpszName, char isDeclaration=0) |
static void | setGlobalOptions (char guessUnicodeChars=1, char strictUTF8Parsing=1, char dropWhiteSpace=1) |
static char | guessUTF8ParsingParameterValue (void *buffer, int bufLen, char useXMLEncodingAttribute=1) |
Static Public Attributes | |
static XMLNode | emptyXMLNode |
static XMLClear | emptyXMLClear |
static XMLAttribute | emptyXMLAttribute |
Private Types | |
typedef struct XMLNode::XMLNodeDataTag | XMLNodeData |
Private Member Functions | |
XMLNode (struct XMLNodeDataTag *pParent, const char *lpszName, char isDeclaration) | |
XMLNode (struct XMLNodeDataTag *p) | |
char | parseClearTag (void *px, ALLXMLClearTag *pa) |
char | maybeAddTxT (void *pa, const char *tokenPStr) |
int | ParseXMLElement (void *pXML) |
void * | addToOrder (int memInc, int *_pos, int nc, void *p, int size, XMLElementType xtype) |
int | indexText (const char *lpszValue) const |
int | indexClear (const char *lpszValue) const |
XMLNode | addChild_priv (int, const char *, char, int) |
XMLAttribute * | addAttribute_priv (int, const char *, const char *) |
const char * | addText_priv (int, const char *, int) |
XMLClear * | addClear_priv (int, const char *, const char *, const char *, int) |
Static Private Member Functions | |
static int | findPosition (XMLNodeData *d, int index, XMLElementType xtype) |
static int | CreateXMLStringR (XMLNodeData *pEntry, char *lpszMarker, int nFormat) |
static int | removeOrderElement (XMLNodeData *d, XMLElementType t, int index) |
static void | exactMemory (XMLNodeData *d) |
static int | detachFromParent (XMLNodeData *d) |
Private Attributes | |
XMLNodeData * | d |
Definition at line 193 of file xmlParser.h.
typedef struct XMLNode::XMLNodeDataTag XMLNode::XMLNodeData [private] |
XMLNode::XMLNode | ( | struct XMLNodeDataTag * | pParent, | |
const char * | lpszName, | |||
char | isDeclaration | |||
) | [private] |
XMLNode::XMLNode | ( | struct XMLNodeDataTag * | p | ) | [private] |
XMLNode::~XMLNode | ( | ) |
XMLNode::XMLNode | ( | const XMLNode & | A | ) |
XMLNode::XMLNode | ( | ) | [inline] |
XMLAttribute* XMLNode::addAttribute | ( | const char * | lpszName, | |
const char * | lpszValuev | |||
) |
XMLAttribute* XMLNode::addAttribute_priv | ( | int | , | |
const char * | , | |||
const char * | ||||
) | [private] |
XMLAttribute* XMLNode::addAttribute_WOSD | ( | const char * | lpszName, | |
const char * | lpszValue | |||
) |
XMLNode XMLNode::addChild | ( | const char * | lpszName, | |
char | isDeclaration = 0 , |
|||
int | pos = -1 | |||
) |
Referenced by bbtk::ConfigurationFile::AddPackagePathsAndWrite().
XMLNode XMLNode::addChild_priv | ( | int | , | |
const char * | , | |||
char | , | |||
int | ||||
) | [private] |
XMLNode XMLNode::addChild_WOSD | ( | const char * | lpszName, | |
char | isDeclaration = 0 , |
|||
int | pos = -1 | |||
) |
XMLClear* XMLNode::addClear | ( | const char * | lpszValue, | |
const char * | lpszOpen = NULL , |
|||
const char * | lpszClose = NULL , |
|||
int | pos = -1 | |||
) |
XMLClear* XMLNode::addClear_priv | ( | int | , | |
const char * | , | |||
const char * | , | |||
const char * | , | |||
int | ||||
) | [private] |
XMLClear* XMLNode::addClear_WOSD | ( | const char * | lpszValue, | |
const char * | lpszOpen = NULL , |
|||
const char * | lpszClose = NULL , |
|||
int | pos = -1 | |||
) |
const char* XMLNode::addText | ( | const char * | lpszValue, | |
int | pos = -1 | |||
) |
Referenced by bbtk::ConfigurationFile::AddPackagePathsAndWrite().
const char* XMLNode::addText_priv | ( | int | , | |
const char * | , | |||
int | ||||
) | [private] |
const char* XMLNode::addText_WOSD | ( | const char * | lpszValue, | |
int | pos = -1 | |||
) |
void* XMLNode::addToOrder | ( | int | memInc, | |
int * | _pos, | |||
int | nc, | |||
void * | p, | |||
int | size, | |||
XMLElementType | xtype | |||
) | [private] |
char* XMLNode::createXMLString | ( | int | nFormat = 1 , |
|
int * | pnSize = NULL | |||
) | const |
static int XMLNode::CreateXMLStringR | ( | XMLNodeData * | pEntry, | |
char * | lpszMarker, | |||
int | nFormat | |||
) | [static, private] |
static XMLNode XMLNode::createXMLTopNode | ( | const char * | lpszName, | |
char | isDeclaration = 0 | |||
) | [static] |
static XMLNode XMLNode::createXMLTopNode_WOSD | ( | const char * | lpszName, | |
char | isDeclaration = 0 | |||
) | [static] |
void XMLNode::deleteAttribute | ( | XMLAttribute * | anAttribute | ) |
void XMLNode::deleteAttribute | ( | int | i = 0 |
) |
void XMLNode::deleteAttribute | ( | const char * | lpszName | ) |
void XMLNode::deleteClear | ( | const char * | lpszValue | ) |
void XMLNode::deleteClear | ( | XMLClear * | p | ) |
void XMLNode::deleteClear | ( | int | i = 0 |
) |
void XMLNode::deleteNodeContent | ( | char | force = 0 |
) |
void XMLNode::deleteText | ( | const char * | lpszValue | ) |
void XMLNode::deleteText | ( | int | i = 0 |
) |
static int XMLNode::detachFromParent | ( | XMLNodeData * | d | ) | [static, private] |
XMLNodeContents XMLNode::enumContents | ( | int | i | ) | const |
static void XMLNode::exactMemory | ( | XMLNodeData * | d | ) | [static, private] |
static int XMLNode::findPosition | ( | XMLNodeData * | d, | |
int | index, | |||
XMLElementType | xtype | |||
) | [inline, static, private] |
const char* XMLNode::getAttribute | ( | const char * | name, | |
int * | i = NULL | |||
) | const |
const char* XMLNode::getAttribute | ( | const char * | name, | |
int | i | |||
) | const |
XMLAttribute XMLNode::getAttribute | ( | int | i = 0 |
) | const |
const char* XMLNode::getAttributeName | ( | int | i = 0 |
) | const |
const char* XMLNode::getAttributeValue | ( | int | i = 0 |
) | const |
XMLNode XMLNode::getChildNode | ( | const char * | name, | |
int * | i = NULL | |||
) | const |
XMLNode XMLNode::getChildNode | ( | const char * | name, | |
int | i | |||
) | const |
XMLNode XMLNode::getChildNode | ( | int | i = 0 |
) | const |
XMLNode XMLNode::getChildNodeWithAttribute | ( | const char * | tagName, | |
const char * | attributeName, | |||
const char * | attributeValue = NULL , |
|||
int * | i = NULL | |||
) | const |
XMLClear XMLNode::getClear | ( | int | i = 0 |
) | const |
static ALLXMLClearTag* XMLNode::getClearTagTable | ( | ) | [static] |
static const char* XMLNode::getError | ( | XMLError | error | ) | [static] |
const char* XMLNode::getName | ( | ) | const |
XMLNode XMLNode::getParentNode | ( | ) | const |
const char* XMLNode::getText | ( | int | i = 0 |
) | const |
static const char* XMLNode::getVersion | ( | ) | [static] |
static char XMLNode::guessUTF8ParsingParameterValue | ( | void * | buffer, | |
int | bufLen, | |||
char | useXMLEncodingAttribute = 1 | |||
) | [static] |
int XMLNode::indexClear | ( | const char * | lpszValue | ) | const [private] |
int XMLNode::indexText | ( | const char * | lpszValue | ) | const [private] |
char XMLNode::isAttributeSet | ( | const char * | name | ) | const |
char XMLNode::isDeclaration | ( | ) | const |
char XMLNode::isEmpty | ( | ) | const |
char XMLNode::maybeAddTxT | ( | void * | pa, | |
const char * | tokenPStr | |||
) | [private] |
int XMLNode::nAttribute | ( | ) | const |
int XMLNode::nChildNode | ( | ) | const |
int XMLNode::nChildNode | ( | const char * | name | ) | const |
int XMLNode::nClear | ( | ) | const |
int XMLNode::nElement | ( | ) | const |
int XMLNode::nText | ( | ) | const |
static XMLNode XMLNode::openFileHelper | ( | const char * | filename, | |
const char * | tag = NULL | |||
) | [static] |
char XMLNode::parseClearTag | ( | void * | px, | |
ALLXMLClearTag * | pa | |||
) | [private] |
static XMLNode XMLNode::parseFile | ( | const char * | filename, | |
const char * | tag = NULL , |
|||
XMLResults * | pResults = NULL | |||
) | [static] |
Referenced by bbtk::ConfigurationFile::AddPackagePathsAndWrite(), and bbtk::ConfigurationFile::Read().
static XMLNode XMLNode::parseString | ( | const char * | lpXMLString, | |
const char * | tag = NULL , |
|||
XMLResults * | pResults = NULL | |||
) | [static] |
int XMLNode::ParseXMLElement | ( | void * | pXML | ) | [private] |
int XMLNode::positionOfChildNode | ( | const char * | name, | |
int | i = 0 | |||
) | const |
int XMLNode::positionOfChildNode | ( | XMLNode | x | ) | const |
int XMLNode::positionOfChildNode | ( | int | i = 0 |
) | const |
int XMLNode::positionOfClear | ( | XMLClear * | a | ) | const |
int XMLNode::positionOfClear | ( | const char * | lpszValue | ) | const |
int XMLNode::positionOfClear | ( | int | i = 0 |
) | const |
int XMLNode::positionOfText | ( | const char * | lpszValue | ) | const |
int XMLNode::positionOfText | ( | int | i = 0 |
) | const |
static int XMLNode::removeOrderElement | ( | XMLNodeData * | d, | |
XMLElementType | t, | |||
int | index | |||
) | [static, private] |
static void XMLNode::setGlobalOptions | ( | char | guessUnicodeChars = 1 , |
|
char | strictUTF8Parsing = 1 , |
|||
char | dropWhiteSpace = 1 | |||
) | [static] |
XMLAttribute* XMLNode::updateAttribute | ( | const char * | lpszNewValue, | |
const char * | lpszNewName, | |||
const char * | lpszOldName | |||
) |
XMLAttribute* XMLNode::updateAttribute | ( | const char * | lpszNewValue, | |
const char * | lpszNewName = NULL , |
|||
int | i = 0 | |||
) |
XMLAttribute* XMLNode::updateAttribute | ( | XMLAttribute * | newAttribute, | |
XMLAttribute * | oldAttribute | |||
) |
XMLAttribute* XMLNode::updateAttribute_WOSD | ( | const char * | lpszNewValue, | |
const char * | lpszNewName, | |||
const char * | lpszOldName | |||
) |
XMLAttribute* XMLNode::updateAttribute_WOSD | ( | const char * | lpszNewValue, | |
const char * | lpszNewName = NULL , |
|||
int | i = 0 | |||
) |
XMLAttribute* XMLNode::updateAttribute_WOSD | ( | XMLAttribute * | newAttribute, | |
XMLAttribute * | oldAttribute | |||
) |
XMLClear* XMLNode::updateClear | ( | const char * | lpszNewValue, | |
const char * | lpszOldValue | |||
) |
XMLClear* XMLNode::updateClear | ( | const char * | lpszNewContent, | |
int | i = 0 | |||
) |
XMLClear* XMLNode::updateClear_WOSD | ( | const char * | lpszNewValue, | |
const char * | lpszOldValue | |||
) |
XMLClear* XMLNode::updateClear_WOSD | ( | const char * | lpszNewContent, | |
int | i = 0 | |||
) |
const char* XMLNode::updateName | ( | const char * | lpszName | ) |
const char* XMLNode::updateName_WOSD | ( | const char * | lpszName | ) |
const char* XMLNode::updateText | ( | const char * | lpszNewValue, | |
const char * | lpszOldValue | |||
) |
const char* XMLNode::updateText | ( | const char * | lpszNewValue, | |
int | i = 0 | |||
) |
const char* XMLNode::updateText_WOSD | ( | const char * | lpszNewValue, | |
const char * | lpszOldValue | |||
) |
const char* XMLNode::updateText_WOSD | ( | const char * | lpszNewValue, | |
int | i = 0 | |||
) |
XMLError XMLNode::writeToFile | ( | const char * | filename, | |
const char * | encoding = NULL , |
|||
char | nFormat = 1 | |||
) | const |
Referenced by bbtk::ConfigurationFile::AddPackagePathsAndWrite().
XMLNodeData* XMLNode::d [private] |
Definition at line 442 of file xmlParser.h.
XMLAttribute XMLNode::emptyXMLAttribute [static] |
Definition at line 295 of file xmlParser.h.
XMLClear XMLNode::emptyXMLClear [static] |
Definition at line 294 of file xmlParser.h.
XMLNode XMLNode::emptyXMLNode [static] |
Definition at line 292 of file xmlParser.h.