replicode
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
core::XMLNode Struct Reference

#include <xml_parser.h>

Collaboration diagram for core::XMLNode:
Collaboration graph

Classes

struct  XMLNodeDataTag
 

Public Types

enum  XMLCharEncoding { encoding_UTF8 = 1, encoding_ascii = 2, encoding_ShiftJIS = 3 }
 
typedef enum core::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)
 
XMLNodeoperator= (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 Public Attributes

static XMLNode emptyXMLNode
 
static XMLClear emptyXMLClear = { NULL, NULL, NULL}
 
static XMLAttribute emptyXMLAttribute = { NULL, NULL}
 

Private Types

typedef struct core::XMLNode::XMLNodeDataTag XMLNodeData
 

Private Member Functions

 XMLNode (struct XMLNodeDataTag *pParent, XMLSTR lpszName, char isDeclaration)
 
 XMLNode (struct XMLNodeDataTag *p)
 
char parseClearTag (void *px, void *pa)
 
char maybeAddTxT (void *pa, XMLCSTR tokenPStr)
 
int ParseXMLElement (void *pXML)
 
void * addToOrder (int memInc, int *_pos, int nc, void *p, int size, XMLElementType xtype)
 
int indexText (XMLCSTR lpszValue) const
 
int indexClear (XMLCSTR lpszValue) const
 
XMLNode addChild_priv (int, XMLSTR, char, int)
 
XMLAttributeaddAttribute_priv (int, XMLSTR, XMLSTR)
 
XMLCSTR addText_priv (int, XMLSTR, int)
 
XMLClearaddClear_priv (int, XMLSTR, XMLCSTR, XMLCSTR, int)
 
void deleteNodeContent_priv (char, char)
 

Static Private Member Functions

static int findPosition (XMLNodeData *d, int index, XMLElementType xtype)
 
static int CreateXMLStringR (XMLNodeData *pEntry, XMLSTR 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
 

Member Typedef Documentation

typedef enum core::XMLNode::XMLCharEncoding core::XMLNode::XMLCharEncoding
typedef struct core::XMLNode::XMLNodeDataTag core::XMLNode::XMLNodeData
private

Member Enumeration Documentation

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

Constructor & Destructor Documentation

core::XMLNode::XMLNode ( struct XMLNodeDataTag pParent,
XMLSTR  lpszName,
char  isDeclaration 
)
private
core::XMLNode::XMLNode ( struct XMLNodeDataTag p)
private
core::XMLNode::~XMLNode ( )

Here is the call graph for this function:

core::XMLNode::XMLNode ( const XMLNode A)
core::XMLNode::XMLNode ( )
inline

Here is the caller graph for this function:

Member Function Documentation

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

Here is the call graph for this function:

XMLAttribute * core::XMLNode::addAttribute_priv ( int  memoryIncrease,
XMLSTR  lpszName,
XMLSTR  lpszValuev 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

XMLNode core::XMLNode::addChild_priv ( int  memoryIncrease,
XMLSTR  lpszName,
char  isDeclaration,
int  pos 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

XMLClear * core::XMLNode::addClear_priv ( int  memoryIncrease,
XMLSTR  lpszValue,
XMLCSTR  lpszOpen,
XMLCSTR  lpszClose,
int  pos 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

XMLCSTR core::XMLNode::addText_priv ( int  memoryIncrease,
XMLSTR  lpszValue,
int  pos 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

void * core::XMLNode::addToOrder ( int  memInc,
int *  _pos,
int  nc,
void *  p,
int  size,
XMLElementType  xtype 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

int core::XMLNode::CreateXMLStringR ( XMLNodeData pEntry,
XMLSTR  lpszMarker,
int  nFormat 
)
staticprivate

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

void core::XMLNode::deleteAttribute ( int  i = 0)
void core::XMLNode::deleteAttribute ( XMLAttribute anAttribute)

Here is the call graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

void core::XMLNode::deleteClear ( XMLClear p)

Here is the call graph for this function:

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

Here is the call graph for this function:

void core::XMLNode::deleteNodeContent ( )

Here is the call graph for this function:

void core::XMLNode::deleteNodeContent_priv ( char  isInDestuctor,
char  force 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

int core::XMLNode::detachFromParent ( XMLNodeData d)
staticprivate

Here is the call graph for this function:

Here is the caller graph for this function:

XMLNode core::XMLNode::emptyNode ( )
static
XMLNodeContents core::XMLNode::enumContents ( int  i) const

Here is the call graph for this function:

void core::XMLNode::exactMemory ( XMLNodeData d)
staticprivate

Here is the caller graph for this function:

int core::XMLNode::findPosition ( XMLNodeData d,
int  index,
XMLElementType  xtype 
)
inlinestaticprivate

Here is the caller graph for this function:

XMLAttribute core::XMLNode::getAttribute ( int  i = 0) const

Here is the caller graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

XMLCSTR core::XMLNode::getAttributeName ( int  i = 0) const
XMLCSTR core::XMLNode::getAttributeValue ( int  i = 0) const
XMLNode core::XMLNode::getChildNode ( int  i = 0) const

Here is the caller graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

XMLClear core::XMLNode::getClear ( int  i = 0) const
XMLCSTR core::XMLNode::getError ( XMLError  error)
static

Here is the caller graph for this function:

XMLCSTR core::XMLNode::getName ( ) const

Here is the caller graph for this function:

XMLNode core::XMLNode::getParentNode ( ) const

Here is the call graph for this function:

XMLCSTR core::XMLNode::getText ( int  i = 0) const
XMLCSTR core::XMLNode::getVersion ( )
static
XMLNode::XMLCharEncoding core::XMLNode::guessCharEncoding ( void *  buffer,
int  bufLen,
char  useXMLEncodingAttribute = 1 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

int core::XMLNode::indexClear ( XMLCSTR  lpszValue) const
private

Here is the caller graph for this function:

int core::XMLNode::indexText ( XMLCSTR  lpszValue) const
private

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

char core::XMLNode::isDeclaration ( ) const

Here is the caller graph for this function:

char core::XMLNode::isEmpty ( ) const

Here is the caller graph for this function:

char core::XMLNode::maybeAddTxT ( void *  pa,
XMLCSTR  tokenPStr 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

int core::XMLNode::nAttribute ( ) const

Here is the caller graph for this function:

int core::XMLNode::nChildNode ( XMLCSTR  name) const

Here is the call graph for this function:

Here is the caller graph for this function:

int core::XMLNode::nChildNode ( ) const
int core::XMLNode::nClear ( ) const
int core::XMLNode::nElement ( ) const

Here is the caller graph for this function:

int core::XMLNode::nText ( ) const
XMLNode core::XMLNode::openFileHelper ( XMLCSTR  filename,
XMLCSTR  tag = NULL 
)
static

Here is the call graph for this function:

bool core::XMLNode::operator! ( )
inline
XMLNode & core::XMLNode::operator= ( const XMLNode A)

Here is the call graph for this function:

char core::XMLNode::parseClearTag ( void *  px,
void *  pa 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

int core::XMLNode::ParseXMLElement ( void *  pXML)
private

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

int core::XMLNode::positionOfClear ( XMLClear a) const

Here is the call graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

int core::XMLNode::removeOrderElement ( XMLNodeData d,
XMLElementType  t,
int  index 
)
staticprivate

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

XMLCSTR core::XMLNode::updateName ( XMLCSTR  lpszName)

Here is the call graph for this function:

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

Here is the caller graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

Member Data Documentation

XMLNodeData* core::XMLNode::d
private
XMLAttribute core::XMLNode::emptyXMLAttribute = { NULL, NULL}
static
XMLClear core::XMLNode::emptyXMLClear = { NULL, NULL, NULL}
static
XMLNode core::XMLNode::emptyXMLNode
static

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