Main MRPT website > C++ reference for MRPT 1.5.7
Classes | Macros | Typedefs | Enumerations | Functions
xmlParser.h File Reference
#include <cstdlib>
#include <tchar.h>
Include dependency graph for xmlParser.h:
This graph shows which files directly or indirectly include this file:

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",... functions. 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. Use in conjunction with structure XMLNodeContents. 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...
 
typedef int XMLElementPosition
 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",... functions. 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. Use in conjunction with structure XMLNodeContents. 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'))
 

Macro Definition Documentation

◆ _CXML

#define _CXML (   c)    c

◆ _XMLWINDOWS

#define _XMLWINDOWS

Definition at line 138 of file xmlParser.h.

◆ FALSE

#define FALSE   0

Definition at line 196 of file xmlParser.h.

◆ TRUE

#define TRUE   1

Definition at line 199 of file xmlParser.h.

◆ XMLCHAR

#define XMLCHAR   char

◆ XMLCSTR

#define XMLCSTR   const char *

◆ XMLDLLENTRY

#define XMLDLLENTRY

Definition at line 151 of file xmlParser.h.

◆ XMLSTR

#define XMLSTR   char *

Typedef Documentation

◆ XMLAttribute

typedef struct XMLAttribute XMLAttribute

Structure for XML attribute.

◆ XMLClear

typedef struct XMLClear XMLClear

Structure for XML clear (unformatted) node (usually comments)

◆ XMLElementPosition

typedef int XMLElementPosition

XMLElementPosition are not interchangeable with simple indexes.

Definition at line 259 of file xmlParser.h.

◆ XMLElementType

Enumeration used to manage type of data. Use in conjunction with structure XMLNodeContents.

◆ XMLError

typedef enum XMLError XMLError

Enumeration for XML parse errors.

◆ XMLNode

typedef struct XMLDLLENTRY XMLNode XMLNode

Main Class representing a XML node.

All operations are performed using this class.

Note
The constructors of the XMLNode class are protected, so use instead one of these four methods to get your first instance of XMLNode:

◆ XMLNodeContents

This structure is given by the function XMLNode::enumContents.

◆ XMLResults

typedef struct XMLResults XMLResults

Structure used to obtain error details if the parse fails.

Enumeration Type Documentation

◆ XMLElementType

Enumeration used to manage type of data. Use in conjunction with structure XMLNodeContents.

Enumerator
eNodeChild 
eNodeAttribute 
eNodeText 
eNodeClear 
eNodeNULL 

Definition at line 232 of file xmlParser.h.

◆ XMLError

enum XMLError

Enumeration for XML parse errors.

Enumerator
eXMLErrorNone 
eXMLErrorMissingEndTag 
eXMLErrorNoXMLTagFound 
eXMLErrorEmpty 
eXMLErrorMissingTagName 
eXMLErrorMissingEndTagName 
eXMLErrorUnmatchedEndTag 
eXMLErrorUnmatchedEndClearTag 
eXMLErrorUnexpectedToken 
eXMLErrorNoElements 
eXMLErrorFileNotFound 
eXMLErrorFirstTagNotFound 
eXMLErrorUnknownCharacterEntity 
eXMLErrorCharacterCodeAbove255 
eXMLErrorCharConversionError 
eXMLErrorCannotOpenWriteFile 
eXMLErrorCannotWriteFile 
eXMLErrorBase64DataSizeIsNotMultipleOf4 
eXMLErrorBase64DecodeIllegalCharacter 
eXMLErrorBase64DecodeTruncatedData 
eXMLErrorBase64DecodeBufferTooSmall 

Definition at line 204 of file xmlParser.h.




Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019