|
CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
|
#include <xml_parser.h>
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) |
| XMLAttribute * | addAttribute (XMLCSTR lpszName, XMLCSTR lpszValuev) |
| XMLCSTR | addText (XMLCSTR lpszValue, int pos=-1) |
| XMLClear * | addClear (XMLCSTR lpszValue, XMLCSTR lpszOpen=NULL, XMLCSTR lpszClose=NULL, int pos=-1) |
| XMLNode | addChild (XMLNode nodeToAdd, int pos=-1) |
| XMLCSTR | updateName (XMLCSTR lpszName) |
| XMLAttribute * | updateAttribute (XMLAttribute *newAttribute, XMLAttribute *oldAttribute) |
| XMLAttribute * | updateAttribute (XMLCSTR lpszNewValue, XMLCSTR lpszNewName=NULL, int i=0) |
| XMLAttribute * | updateAttribute (XMLCSTR lpszNewValue, XMLCSTR lpszNewName, XMLCSTR lpszOldName) |
| XMLCSTR | updateText (XMLCSTR lpszNewValue, int i=0) |
| XMLCSTR | updateText (XMLCSTR lpszNewValue, XMLCSTR lpszOldValue) |
| XMLClear * | updateClear (XMLCSTR lpszNewContent, int i=0) |
| XMLClear * | updateClear (XMLClear *newP, XMLClear *oldP) |
| XMLClear * | updateClear (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) |
| XMLAttribute * | addAttribute_WOSD (XMLSTR lpszName, XMLSTR lpszValue) |
| XMLCSTR | addText_WOSD (XMLSTR lpszValue, int pos=-1) |
| XMLClear * | addClear_WOSD (XMLSTR lpszValue, XMLCSTR lpszOpen=NULL, XMLCSTR lpszClose=NULL, int pos=-1) |
| XMLCSTR | updateName_WOSD (XMLSTR lpszName) |
| XMLAttribute * | updateAttribute_WOSD (XMLAttribute *newAttribute, XMLAttribute *oldAttribute) |
| XMLAttribute * | updateAttribute_WOSD (XMLSTR lpszNewValue, XMLSTR lpszNewName=NULL, int i=0) |
| XMLAttribute * | updateAttribute_WOSD (XMLSTR lpszNewValue, XMLSTR lpszNewName, XMLCSTR lpszOldName) |
| XMLCSTR | updateText_WOSD (XMLSTR lpszNewValue, int i=0) |
| XMLCSTR | updateText_WOSD (XMLSTR lpszNewValue, XMLCSTR lpszOldValue) |
| XMLClear * | updateClear_WOSD (XMLSTR lpszNewContent, int i=0) |
| XMLClear * | updateClear_WOSD (XMLClear *newP, XMLClear *oldP) |
| XMLClear * | updateClear_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 |
Definition at line 184 of file xml_parser.h.
| typedef enum cmlabs::XMLNode::XMLCharEncoding cmlabs::XMLNode::XMLCharEncoding |
| enum cmlabs::XMLNode::XMLCharEncoding |
| Enumerator | |
|---|---|
| encoding_UTF8 | |
| encoding_ascii | |
| encoding_ShiftJIS | |
Definition at line 415 of file xml_parser.h.
| cmlabs::XMLNode::~XMLNode | ( | ) |
| cmlabs::XMLNode::XMLNode | ( | const XMLNode & | A | ) |
|
inline |
Definition at line 289 of file xml_parser.h.
| XMLAttribute * cmlabs::XMLNode::addAttribute | ( | XMLCSTR | lpszName, |
| XMLCSTR | lpszValuev ) |
References XMLCSTR.
| XMLAttribute * cmlabs::XMLNode::addAttribute_WOSD | ( | XMLSTR | lpszName, |
| XMLSTR | lpszValue ) |
References XMLSTR.
References FALSE, isDeclaration(), and XMLCSTR.
| XMLNode cmlabs::XMLNode::addChild | ( | XMLNode | nodeToAdd, |
| int | pos = -1 ) |
| XMLNode cmlabs::XMLNode::addChild_WOSD | ( | XMLSTR | lpszName, |
| char | isDeclaration = FALSE, | ||
| int | pos = -1 ) |
References FALSE, isDeclaration(), and XMLSTR.
| XMLClear * cmlabs::XMLNode::addClear | ( | XMLCSTR | lpszValue, |
| XMLCSTR | lpszOpen = NULL, | ||
| XMLCSTR | lpszClose = NULL, | ||
| int | pos = -1 ) |
References XMLCSTR.
| XMLSTR cmlabs::XMLNode::createXMLString | ( | int | nFormat = 1, |
| int * | pnSize = NULL ) const |
References XMLSTR.
References FALSE, isDeclaration(), and XMLCSTR.
|
static |
References FALSE, isDeclaration(), and XMLSTR.
| void cmlabs::XMLNode::deleteAttribute | ( | int | i = 0 | ) |
| void cmlabs::XMLNode::deleteAttribute | ( | XMLAttribute * | anAttribute | ) |
| void cmlabs::XMLNode::deleteClear | ( | int | i = 0 | ) |
| void cmlabs::XMLNode::deleteClear | ( | XMLClear * | p | ) |
| void cmlabs::XMLNode::deleteNodeContent | ( | ) |
| void cmlabs::XMLNode::deleteText | ( | int | i = 0 | ) |
|
static |
| XMLNodeContents cmlabs::XMLNode::enumContents | ( | int | i | ) | const |
| XMLAttribute cmlabs::XMLNode::getAttribute | ( | int | i = 0 | ) | const |
Referenced by cmlabs::attrTrue(), cmlabs::LLMConnection::configure(), cmlabs::PostSpec::contentFromXML(), cmlabs::RESTParser::findTopNodeForRequest(), cmlabs::FilterSpec::fromXML(), cmlabs::PostSpec::fromXML(), cmlabs::QuerySpec::fromXML(), cmlabs::RetrieveSpec::fromXML(), cmlabs::SignalSpec::fromXML(), cmlabs::RESTHTTPCall::init(), cmlabs::RESTParser::init(), cmlabs::VantagePoints::init(), cmlabs::Internal_MessageScript(), cmlabs::RESTParser::parseParamSet(), cmlabs::RESTParser::parseRequest(), cmlabs::RESTParser::parseRequest(), and cmlabs::RESTParser::parseRequest().
| XMLNode cmlabs::XMLNode::getChildNode | ( | int | i = 0 | ) | const |
| XMLNode cmlabs::XMLNode::getChildNodeWithAttribute | ( | XMLCSTR | tagName, |
| XMLCSTR | attributeName, | ||
| XMLCSTR | attributeValue = NULL, | ||
| int * | i = NULL ) const |
References XMLCSTR.
| XMLClear cmlabs::XMLNode::getClear | ( | int | i = 0 | ) | const |
| XMLCSTR cmlabs::XMLNode::getName | ( | ) | const |
References XMLCSTR.
Referenced by cmlabs::LLMConnection::configure(), and cmlabs::RESTParser::parseRequest().
| XMLNode cmlabs::XMLNode::getParentNode | ( | ) | const |
|
static |
| char cmlabs::XMLNode::isDeclaration | ( | ) | const |
Referenced by addChild(), addChild_WOSD(), createXMLTopNode(), createXMLTopNode_WOSD(), and UnitTest().
| char cmlabs::XMLNode::isEmpty | ( | ) | const |
Referenced by cmlabs::LLMConnection::configure(), cmlabs::LLMConnection::configureFromString(), cmlabs::RESTParser::extractArrayParameters(), cmlabs::RESTParser::extractArrayParameters(), cmlabs::RESTParser::extractParameters(), cmlabs::RESTParser::extractParameters(), cmlabs::FilterSpec::fromXML(), cmlabs::PostSpec::fromXML(), cmlabs::QuerySpec::fromXML(), cmlabs::RetrieveSpec::fromXML(), cmlabs::SignalSpec::fromXML(), cmlabs::Internal_MessageScript(), operator!(), cmlabs::RESTParser::parseRequest(), cmlabs::RESTParser::parseRequest(), and cmlabs::RESTParser::parseRequest().
| int cmlabs::XMLNode::nAttribute | ( | ) | const |
Referenced by UnitTest().
| int cmlabs::XMLNode::nChildNode | ( | ) | const |
| int cmlabs::XMLNode::nChildNode | ( | XMLCSTR | name | ) | const |
| int cmlabs::XMLNode::nClear | ( | ) | const |
Referenced by UnitTest().
| int cmlabs::XMLNode::nElement | ( | ) | const |
| int cmlabs::XMLNode::nText | ( | ) | const |
Referenced by UnitTest().
References XMLCSTR.
|
inline |
Definition at line 282 of file xml_parser.h.
References isEmpty().
| XMLNode & cmlabs::XMLNode::operator= | ( | const XMLNode & | A | ) |
|
static |
References XMLCSTR.
|
static |
References XMLCSTR.
| int cmlabs::XMLNode::positionOfChildNode | ( | int | i = 0 | ) | const |
| int cmlabs::XMLNode::positionOfChildNode | ( | XMLNode | x | ) | const |
| int cmlabs::XMLNode::positionOfClear | ( | int | i = 0 | ) | const |
| int cmlabs::XMLNode::positionOfClear | ( | XMLClear * | a | ) | const |
| int cmlabs::XMLNode::positionOfText | ( | int | i = 0 | ) | const |
|
static |
|
static |
References isDeclaration(), nAttribute(), nClear(), nText(), and XMLCSTR.
| XMLAttribute * cmlabs::XMLNode::updateAttribute | ( | XMLAttribute * | newAttribute, |
| XMLAttribute * | oldAttribute ) |
| XMLAttribute * cmlabs::XMLNode::updateAttribute | ( | XMLCSTR | lpszNewValue, |
| XMLCSTR | lpszNewName, | ||
| XMLCSTR | lpszOldName ) |
References XMLCSTR.
| XMLAttribute * cmlabs::XMLNode::updateAttribute | ( | XMLCSTR | lpszNewValue, |
| XMLCSTR | lpszNewName = NULL, | ||
| int | i = 0 ) |
References XMLCSTR.
| XMLAttribute * cmlabs::XMLNode::updateAttribute_WOSD | ( | XMLAttribute * | newAttribute, |
| XMLAttribute * | oldAttribute ) |
| XMLAttribute * cmlabs::XMLNode::updateAttribute_WOSD | ( | XMLSTR | lpszNewValue, |
| XMLSTR | lpszNewName, | ||
| XMLCSTR | lpszOldName ) |
| XMLAttribute * cmlabs::XMLNode::updateAttribute_WOSD | ( | XMLSTR | lpszNewValue, |
| XMLSTR | lpszNewName = NULL, | ||
| int | i = 0 ) |
References XMLSTR.
References XMLCSTR.
References XMLSTR.
References XMLCSTR.
| XMLError cmlabs::XMLNode::writeToFile | ( | XMLCSTR | filename, |
| const char * | encoding = NULL, | ||
| char | nFormat = 1 ) const |
References XMLCSTR.
|
static |
Definition at line 292 of file xml_parser.h.
|
static |
Definition at line 291 of file xml_parser.h.
|
static |
Definition at line 290 of file xml_parser.h.