LLC2_API
Functions
Navigate the XMLNode structure
The XML parser

Functions

XMLCSTR XMLNode::getName () const
 name of the node
XMLCSTR XMLNode::getText (int i=0) const
 return ith text field
int XMLNode::nText () const
 nbr of text field
XMLNode XMLNode::getParentNode () const
 return the parent node
XMLNode XMLNode::getChildNode (int i=0) const
 return ith child node
XMLNode XMLNode::getChildNode (XMLCSTR name, int i) const
 return ith child node with specific name (return an empty node if failing). If i==-1, this returns the last XMLNode with the given name.
XMLNode XMLNode::getChildNode (XMLCSTR name, int *i=NULL) const
 return next child node with specific name (return an empty node if failing)
XMLNode XMLNode::getChildNodeWithAttribute (XMLCSTR tagName, XMLCSTR attributeName, XMLCSTR attributeValue=NULL, int *i=NULL) const
 return child node with specific name/attribute (return an empty node if failing)
XMLNode XMLNode::getChildNodeByPath (XMLCSTR path, char createNodeIfMissing=0, XMLCHAR sep='/')
 return the first child node with specific path
XMLNode XMLNode::getChildNodeByPathNonConst (XMLSTR path, char createNodeIfMissing=0, XMLCHAR sep='/')
 return the first child node with specific path.
int XMLNode::nChildNode (XMLCSTR name) const
 return the number of child node with specific name
int XMLNode::nChildNode () const
 nbr of child node
XMLAttribute XMLNode::getAttribute (int i=0) const
 return ith attribute
XMLCSTR XMLNode::getAttributeName (int i=0) const
 return ith attribute name
XMLCSTR XMLNode::getAttributeValue (int i=0) const
 return ith attribute value
char XMLNode::isAttributeSet (XMLCSTR name) const
 test if an attribute with a specific name is given
XMLCSTR XMLNode::getAttribute (XMLCSTR name, int i) const
 return ith attribute content with specific name (return a NULL if failing)
XMLCSTR XMLNode::getAttribute (XMLCSTR name, int *i=NULL) const
 return next attribute content with specific name (return a NULL if failing)
int XMLNode::nAttribute () const
 nbr of attribute
XMLClear XMLNode::getClear (int i=0) const
 return ith clear field (comments)
int XMLNode::nClear () const
 nbr of clear field
XMLNodeContents XMLNode::enumContents (XMLElementPosition i) const
 enumerate all the different contents (attribute,child,text, clear) of the current XMLNode. The order is reflecting the order of the original file/string. NOTE: 0 <= i < nElement();
int XMLNode::nElement () const
 nbr of different contents for current node
char XMLNode::isEmpty () const
 is this node Empty?
char XMLNode::isDeclaration () const
 is this node a declaration <? .... ?>
XMLNode XMLNode::deepCopy () const
 deep copy (duplicate/clone) a XMLNode
static XMLNode XMLNode::emptyNode ()
 return XMLNode::emptyXMLNode;

Function Documentation

XMLNode XMLNode::deepCopy ( ) const

deep copy (duplicate/clone) a XMLNode

Definition at line 2235 of file xmlParser.cpp.

References XMLNode::emptyXMLNode, stringDup(), and XMLCSTR.

XMLNode XMLNode::emptyNode ( ) [static]

return XMLNode::emptyXMLNode;

Definition at line 2657 of file xmlParser.cpp.

References XMLNode::emptyXMLNode.

XMLNodeContents XMLNode::enumContents ( XMLElementPosition  i) const

enumerate all the different contents (attribute,child,text, clear) of the current XMLNode. The order is reflecting the order of the original file/string. NOTE: 0 <= i < nElement();

Definition at line 2619 of file xmlParser.cpp.

References XMLNodeContents::attrib, XMLNodeContents::child, XMLNodeContents::clear, eNodeAttribute, eNodeChild, eNodeClear, eNodeNULL, eNodeText, XMLNodeContents::etype, XMLNode::nAttribute(), and XMLNodeContents::text.

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

return next attribute content with specific name (return a NULL if failing)

Definition at line 2577 of file xmlParser.cpp.

References XMLAttribute::lpszName, XMLAttribute::lpszValue, and xstricmp().

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

return ith attribute content with specific name (return a NULL if failing)

Definition at line 2611 of file xmlParser.cpp.

References XMLNode::getAttribute().

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

return ith attribute name

Definition at line 2650 of file xmlParser.cpp.

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

return ith attribute value

Definition at line 2651 of file xmlParser.cpp.

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

return ith child node with specific name (return an empty node if failing). If i==-1, this returns the last XMLNode with the given name.

Definition at line 2477 of file xmlParser.cpp.

References XMLNode::emptyXMLNode, XMLNode::getChildNode(), and xstricmp().

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

return next child node with specific name (return an empty node if failing)

Definition at line 2459 of file xmlParser.cpp.

References XMLNode::emptyXMLNode, and xstricmp().

XMLNode XMLNode::getChildNode ( int  i = 0) const
XMLNode XMLNode::getChildNodeByPath ( XMLCSTR  path,
char  createNodeIfMissing = 0,
XMLCHAR  sep = '/' 
)

return the first child node with specific path

Definition at line 2492 of file xmlParser.cpp.

References XMLNode::getChildNodeByPathNonConst(), stringDup(), and XMLSTR.

XMLNode XMLNode::getChildNodeByPathNonConst ( XMLSTR  path,
char  createNodeIfMissing = 0,
XMLCHAR  sep = '/' 
)

return the first child node with specific path.

Definition at line 2500 of file xmlParser.cpp.

References XMLNode::addChild(), XMLNode::emptyXMLNode, XMLNode::getChildNode(), XMLNode::isEmpty(), XMLCHAR, and xstrstr().

Referenced by XMLNode::getChildNodeByPath().

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

return child node with specific name/attribute (return an empty node if failing)

Definition at line 2548 of file xmlParser.cpp.

References XMLNode::emptyXMLNode, XMLNode::getAttribute(), XMLNode::getChildNode(), XMLNode::isAttributeSet(), XMLNode::isEmpty(), XMLCSTR, and xstricmp().

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

return ith clear field (comments)

Definition at line 2648 of file xmlParser.cpp.

References XMLNode::emptyXMLClear.

XMLCSTR XMLNode::getName ( ) const

name of the node

Definition at line 2642 of file xmlParser.cpp.

Referenced by getAttribute(), and XMLNode::parseString().

XMLNode XMLNode::getParentNode ( ) const

return the parent node

Definition at line 2654 of file xmlParser.cpp.

References XMLNode::emptyXMLNode, and XMLNode::XMLNode().

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

return ith text field

Definition at line 2652 of file xmlParser.cpp.

Referenced by xml_lookup().

char XMLNode::isAttributeSet ( XMLCSTR  name) const

test if an attribute with a specific name is given

Definition at line 2595 of file xmlParser.cpp.

References FALSE, XMLAttribute::lpszName, TRUE, and xstricmp().

Referenced by XMLNode::getChildNodeWithAttribute().

char XMLNode::isDeclaration ( ) const

is this node a declaration <? .... ?>

Definition at line 2655 of file xmlParser.cpp.

Referenced by XMLNode::writeToFile().

char XMLNode::isEmpty ( ) const
int XMLNode::nAttribute ( ) const

nbr of attribute

Definition at line 2645 of file xmlParser.cpp.

Referenced by XMLNode::enumContents().

int XMLNode::nChildNode ( XMLCSTR  name) const

return the number of child node with specific name

Definition at line 2446 of file xmlParser.cpp.

References xstricmp().

Referenced by LL_ControlSystem::createFromFile(), makeArgs(), XMLNode::parseString(), and xml_lookup().

int XMLNode::nChildNode ( ) const

nbr of child node

Definition at line 2644 of file xmlParser.cpp.

int XMLNode::nClear ( ) const

nbr of clear field

Definition at line 2646 of file xmlParser.cpp.

int XMLNode::nElement ( ) const

nbr of different contents for current node

Definition at line 2647 of file xmlParser.cpp.

Referenced by XMLNode::parseString().

int XMLNode::nText ( ) const

nbr of text field

Definition at line 2643 of file xmlParser.cpp.