XMLNode Struct Reference

#include <xmlParser.h>

Collaboration diagram for XMLNode:

Collaboration graph
[legend]

List of all members.

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)
XMLNodeoperator= (const XMLNode &A)
 XMLNode ()
XMLNode addChild (const char *lpszName, char isDeclaration=0, int pos=-1)
XMLAttributeaddAttribute (const char *lpszName, const char *lpszValuev)
const char * addText (const char *lpszValue, int pos=-1)
XMLClearaddClear (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)
XMLAttributeupdateAttribute (XMLAttribute *newAttribute, XMLAttribute *oldAttribute)
XMLAttributeupdateAttribute (const char *lpszNewValue, const char *lpszNewName=NULL, int i=0)
XMLAttributeupdateAttribute (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)
XMLClearupdateClear (const char *lpszNewContent, int i=0)
XMLClearupdateClear (XMLClear *newP, XMLClear *oldP)
XMLClearupdateClear (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)
XMLAttributeaddAttribute_WOSD (const char *lpszName, const char *lpszValue)
const char * addText_WOSD (const char *lpszValue, int pos=-1)
XMLClearaddClear_WOSD (const char *lpszValue, const char *lpszOpen=NULL, const char *lpszClose=NULL, int pos=-1)
const char * updateName_WOSD (const char *lpszName)
XMLAttributeupdateAttribute_WOSD (XMLAttribute *newAttribute, XMLAttribute *oldAttribute)
XMLAttributeupdateAttribute_WOSD (const char *lpszNewValue, const char *lpszNewName=NULL, int i=0)
XMLAttributeupdateAttribute_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)
XMLClearupdateClear_WOSD (const char *lpszNewContent, int i=0)
XMLClearupdateClear_WOSD (XMLClear *newP, XMLClear *oldP)
XMLClearupdateClear_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 ALLXMLClearTaggetClearTagTable ()
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)
XMLAttributeaddAttribute_priv (int, const char *, const char *)
const char * addText_priv (int, const char *, int)
XMLClearaddClear_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

XMLNodeDatad


Detailed Description

Definition at line 193 of file xmlParser.h.


Member Typedef Documentation


Constructor & Destructor Documentation

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]

Definition at line 292 of file xmlParser.h.

00292 : d(NULL){};


Member Function Documentation

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 ( XMLNode  nodeToAdd,
int  pos = -1 
)

XMLNode XMLNode::addChild ( const char *  lpszName,
char  isDeclaration = 0,
int  pos = -1 
)

Referenced by bbtk::ConfigurationFile::AddPackagePathsAndWrite().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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

Referenced by bbtk::ConfigurationFile::Read().

Here is the caller graph for this function:

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

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

Referenced by bbtk::GetTextOrClear().

Here is the caller graph for this function:

static ALLXMLClearTag* XMLNode::getClearTagTable (  )  [static]

static const char* XMLNode::getError ( XMLError  error  )  [static]

Referenced by bbtk::GetErrorMessage().

Here is the caller graph for this function:

const char* XMLNode::getName (  )  const

XMLNode XMLNode::getParentNode (  )  const

const char* XMLNode::getText ( int  i = 0  )  const

Referenced by bbtk::GetTextOrClear().

Here is the caller graph for this function:

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

Referenced by bbtk::ConfigurationFile::Read().

Here is the caller graph for this function:

int XMLNode::nClear (  )  const

Referenced by bbtk::GetTextOrClear().

Here is the caller graph for this function:

int XMLNode::nElement (  )  const

int XMLNode::nText (  )  const

Referenced by bbtk::GetTextOrClear().

Here is the caller graph for this function:

static XMLNode XMLNode::openFileHelper ( const char *  filename,
const char *  tag = NULL 
) [static]

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

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().

Here is the caller graph for this function:

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 ( XMLClear newP,
XMLClear oldP 
)

XMLClear* XMLNode::updateClear ( const char *  lpszNewContent,
int  i = 0 
)

XMLClear* XMLNode::updateClear_WOSD ( const char *  lpszNewValue,
const char *  lpszOldValue 
)

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

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().

Here is the caller graph for this function:


Member Data Documentation

XMLNodeData* XMLNode::d [private]

Definition at line 442 of file xmlParser.h.

Definition at line 295 of file xmlParser.h.

Definition at line 294 of file xmlParser.h.

Definition at line 292 of file xmlParser.h.


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

Generated on Thu May 31 14:13:27 2012 for BBTK by  doxygen 1.5.7.1