MRPT
1.9.9
|
#include <cstdlib>
#include <tchar.h>
Go to the source code of this file.
Classes | |
struct | XMLResults |
Structure used to obtain error details if the parse fails. More... | |
struct | XMLClear |
Structure for XML clear (unformatted) node (usually comments) More... | |
struct | XMLAttribute |
Structure for XML attribute. More... | |
struct | XMLNode |
Main Class representing a XML node. More... | |
struct | XMLNode::XMLNodeDataTag |
struct | XMLNodeContents |
This structure is given by the function XMLNode::enumContents. More... | |
struct | ToXMLStringTool |
Helper class to create XML files using "printf", "fprintf", "cout",... More... | |
struct | XMLParserBase64Tool |
Helper class to include binary data inside XML strings using "Base64
encoding". More... | |
Macros | |
#define | _XMLWINDOWS |
#define | XMLDLLENTRY |
#define | _CXML(c) c |
#define | XMLCSTR const char* |
#define | XMLSTR char* |
#define | XMLCHAR char |
#define | FALSE 0 |
#define | TRUE 1 |
Typedefs | |
typedef enum XMLError | XMLError |
Enumeration for XML parse errors. More... | |
typedef enum XMLElementType | XMLElementType |
Enumeration used to manage type of data. More... | |
typedef struct XMLResults | XMLResults |
Structure used to obtain error details if the parse fails. More... | |
typedef struct XMLClear | XMLClear |
Structure for XML clear (unformatted) node (usually comments) More... | |
typedef struct XMLAttribute | XMLAttribute |
Structure for XML attribute. More... | |
using | XMLElementPosition = int |
XMLElementPosition are not interchangeable with simple indexes. More... | |
typedef struct XMLDLLENTRY XMLNode | XMLNode |
Main Class representing a XML node. More... | |
typedef struct XMLNodeContents | XMLNodeContents |
This structure is given by the function XMLNode::enumContents. More... | |
typedef struct XMLDLLENTRY ToXMLStringTool | ToXMLStringTool |
Helper class to create XML files using "printf", "fprintf", "cout",... More... | |
typedef struct XMLDLLENTRY XMLParserBase64Tool | XMLParserBase64Tool |
Helper class to include binary data inside XML strings using "Base64
encoding". More... | |
Enumerations | |
enum | XMLError { eXMLErrorNone = 0, eXMLErrorMissingEndTag, eXMLErrorNoXMLTagFound, eXMLErrorEmpty, eXMLErrorMissingTagName, eXMLErrorMissingEndTagName, eXMLErrorUnmatchedEndTag, eXMLErrorUnmatchedEndClearTag, eXMLErrorUnexpectedToken, eXMLErrorNoElements, eXMLErrorFileNotFound, eXMLErrorFirstTagNotFound, eXMLErrorUnknownCharacterEntity, eXMLErrorCharacterCodeAbove255, eXMLErrorCharConversionError, eXMLErrorCannotOpenWriteFile, eXMLErrorCannotWriteFile, eXMLErrorBase64DataSizeIsNotMultipleOf4, eXMLErrorBase64DecodeIllegalCharacter, eXMLErrorBase64DecodeTruncatedData, eXMLErrorBase64DecodeBufferTooSmall } |
Enumeration for XML parse errors. More... | |
enum | XMLElementType { eNodeChild = 0, eNodeAttribute = 1, eNodeText = 2, eNodeClear = 3, eNodeNULL = 4 } |
Enumeration used to manage type of data. More... | |
Functions | |
XMLDLLENTRY XMLSTR | stringDup (XMLCSTR source, int cbData=-1) |
Duplicate (copy in a new allocated buffer) the source string. More... | |
XMLDLLENTRY void | freeXMLString (XMLSTR t) |
to free the string allocated inside the "stringDup" function or the "createXMLString" function. More... | |
XMLDLLENTRY char | xmltob (XMLCSTR xmlString, char defautValue=0) |
XMLDLLENTRY int | xmltoi (XMLCSTR xmlString, int defautValue=0) |
XMLDLLENTRY long | xmltol (XMLCSTR xmlString, long defautValue=0) |
XMLDLLENTRY double | xmltof (XMLCSTR xmlString, double defautValue=.0) |
XMLDLLENTRY XMLCSTR | xmltoa (XMLCSTR xmlString, XMLCSTR defautValue=_CXML("")) |
XMLDLLENTRY XMLCHAR | xmltoc (XMLCSTR xmlString, XMLCHAR defautValue=_CXML('\0')) |
Definition at line 225 of file xmlParser.h.
Referenced by CountLinesAndColumns(), XMLNode::createXMLString(), XMLNode::CreateXMLStringR(), XMLParserBase64Tool::encode(), fromXMLString(), XMLNode::getError(), GetNextToken(), XMLNode::getVersion(), myTagCompare(), XMLNode::openFileHelper(), XMLNode::parseClearTag(), XMLNode::parseFile(), XMLNode::ParseXMLElement(), and XMLNode::writeToFile().
#define _XMLWINDOWS |
Definition at line 172 of file xmlParser.h.
#define FALSE 0 |
Definition at line 231 of file xmlParser.h.
Referenced by mrpt::hwdrivers::CDUO3DCamera::CDUO3DCamera(), rp::hal::Event::Event(), EVT_RIGHT_DOWN(), mrpt::system::executeCommand(), fill_input_buffer(), GetNextToken(), rp::hal::Locker::init(), mrpt::hwdrivers::CIMUIntersense::initialize(), XMLNode::isAttributeSet(), UsbInterface::open(), SerialInterface::open(), xsens::Cmt1s::open(), XMLNode::parseString(), XMLNode::ParseXMLElement(), UsbInterface::setTimeout(), UsbInterface::UsbInterface(), mrpt::hwdrivers::CNationalInstrumentsDAQ::writeAnalogOutputTask(), mrpt::hwdrivers::CNationalInstrumentsDAQ::writeDigitalOutputTask(), and xsEnumerateUsbDevices().
#define TRUE 1 |
Definition at line 234 of file xmlParser.h.
Referenced by CountLinesAndColumns(), empty_output_buffer(), rp::hal::Event::Event(), EVT_RIGHT_DOWN(), mrpt::system::executeCommand(), fill_input_buffer(), mrpt::system::getCallStackBackTrace(), GetNextToken(), init_source(), mrpt::hwdrivers::CIMUIntersense::initialize(), XMLNode::isAttributeSet(), mrpt::img::CImage::loadFromStreamAsJPEG(), XMLNode::parseString(), XMLNode::ParseXMLElement(), mrpt::img::CImage::saveToStreamAsJPEG(), and UsbInterface::UsbInterface().
#define XMLCHAR char |
Definition at line 228 of file xmlParser.h.
Referenced by CountLinesAndColumns(), XMLNode::createXMLString(), XMLParserBase64Tool::encode(), fromXMLString(), XMLNode::getChildNodeByPath(), getNextChar(), GetNextToken(), ToXMLStringTool::lengthXMLString(), XMLNode::maybeAddTxT(), myTagCompare(), stringDup(), ToXMLStringTool::toXML(), ToXMLStringTool::toXMLUnSafe(), and XMLNode::writeToFile().
#define XMLCSTR const char* |
Definition at line 226 of file xmlParser.h.
Referenced by XMLNode::addText_priv(), XMLNode::CreateXMLStringR(), XMLNode::deepCopy(), XMLNode::deleteText(), XMLNode::exactMemory(), fromXMLString(), XMLNode::getChildNodeWithAttribute(), XMLNode::indexText(), mrpt::db::CSimpleDatabase::loadFromXML(), XMLNode::maybeAddTxT(), XMLNode::openFileHelper(), XMLNode::parseClearTag(), XMLNode::parseString(), XMLNode::ParseXMLElement(), and XMLNode::updateText_WOSD().
#define XMLDLLENTRY |
Definition at line 185 of file xmlParser.h.
#define XMLSTR char* |
Definition at line 227 of file xmlParser.h.
Referenced by XMLNode::addText_priv(), XMLNode::createXMLString(), XMLParserBase64Tool::encode(), XMLNode::exactMemory(), fromXMLString(), XMLNode::getChildNodeByPath(), XMLNode::maybeAddTxT(), XMLNode::parseFile(), XMLNode::ParseXMLElement(), stringDup(), ToXMLStringTool::toXML(), ToXMLStringTool::toXMLUnSafe(), XMLNode::updateAttribute_WOSD(), XMLNode::updateClear_WOSD(), XMLNode::writeToFile(), xstrcpy(), and xstrstr().
typedef struct XMLAttribute XMLAttribute |
Structure for XML attribute.
using XMLElementPosition = int |
XMLElementPosition are not interchangeable with simple indexes.
Definition at line 296 of file xmlParser.h.
typedef enum XMLElementType XMLElementType |
Enumeration used to manage type of data.
Use in conjunction with structure XMLNodeContents
typedef struct XMLDLLENTRY XMLNode XMLNode |
typedef struct XMLNodeContents XMLNodeContents |
This structure is given by the function XMLNode::enumContents.
typedef struct XMLResults XMLResults |
Structure used to obtain error details if the parse fails.
enum XMLElementType |
Enumeration used to manage type of data.
Use in conjunction with structure XMLNodeContents
Enumerator | |
---|---|
eNodeChild | |
eNodeAttribute | |
eNodeText | |
eNodeClear | |
eNodeNULL |
Definition at line 265 of file xmlParser.h.
enum XMLError |
Enumeration for XML parse errors.
Definition at line 238 of file xmlParser.h.
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020 |