MRPT
1.9.9
|
Helper class to create XML files using "printf", "fprintf", "cout",...
functions. The ToXMLStringTool class helps you creating XML files using "printf", "fprintf", "cout",... functions. The "ToXMLStringTool" class is processing strings so that all the characters &,",',<,> are replaced by their XML equivalent:
&, ", ', <, >
Using the "ToXMLStringTool class" and the "fprintf function" is THE most efficient way to produce VERY large XML documents VERY fast.
Definition at line 1012 of file xmlParser.h.
#include <xmlparser/xmlParser.h>
Public Member Functions | |
ToXMLStringTool () | |
~ToXMLStringTool () | |
void | freeBuffer () |
call this function when you have finished using More... | |
XMLSTR | toXML (XMLCSTR source) |
returns a pointer to an internal buffer More... | |
Static Public Member Functions | |
static XMLSTR | toXMLUnSafe (XMLSTR dest, XMLCSTR source) |
that contains a XML-encoded string based on the "source" parameter. More... | |
static int | lengthXMLString (XMLCSTR source) |
deprecated: use "toXML" instead More... | |
Private Attributes | |
XMLSTR | buf |
int | buflen {0} |
|
inline |
Definition at line 1015 of file xmlParser.h.
ToXMLStringTool::~ToXMLStringTool | ( | ) |
Definition at line 952 of file xmlParser.cpp.
References freeBuffer().
void ToXMLStringTool::freeBuffer | ( | ) |
call this function when you have finished using
this object to release memory used by the internal buffer.
Definition at line 953 of file xmlParser.cpp.
Referenced by ~ToXMLStringTool().
|
static |
deprecated: use "toXML" instead
Definition at line 921 of file xmlParser.cpp.
References XMLCharacterEntity::c, XMLCharacterEntity::l, XMLCharacterEntity::s, XML_ByteTable, XMLCHAR, and XMLEntities.
Referenced by XMLNode::CreateXMLStringR(), and toXML().
returns a pointer to an internal buffer
Definition at line 959 of file xmlParser.cpp.
References buf, buflen, lengthXMLString(), toXMLUnSafe(), XMLCHAR, and XMLSTR.
that contains a XML-encoded string based on the "source" parameter.
The "toXMLUnSafe" function is deprecated because there is a possibility of "destination-buffer-overflow". It converts the string "source" to the string "dest". deprecated: use "toXML" instead
Definition at line 876 of file xmlParser.cpp.
References XMLCharacterEntity::c, XMLCharacterEntity::l, XMLCharacterEntity::s, XML_ByteTable, XMLCHAR, XMLEntities, XMLSTR, and xstrcpy().
Referenced by XMLNode::CreateXMLStringR(), and toXML().
|
private |
Definition at line 1035 of file xmlParser.h.
Referenced by freeBuffer(), and toXML().
|
private |
Definition at line 1036 of file xmlParser.h.
Referenced by freeBuffer(), and toXML().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019 |