LLC2_API
|
Helper class to create XML files using "printf", "fprintf", "cout",... functions. More...
#include <xmlParser.h>
Public Member Functions | |
ToXMLStringTool () | |
~ToXMLStringTool () | |
void | freeBuffer () |
call this function when you have finished using this object to release memory used by the internal buffer. | |
XMLSTR | toXML (XMLCSTR source) |
returns a pointer to an internal buffer that contains a XML-encoded string based on the "source" parameter. | |
Static Public Member Functions | |
static XMLSTR | toXMLUnSafe (XMLSTR dest, XMLCSTR source) |
The "toXMLUnSafe" function is deprecated because there is a possibility of "destination-buffer-overflow". | |
static int | lengthXMLString (XMLCSTR source) |
deprecated: use "toXML" instead |
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 657 of file xmlParser.h.
ToXMLStringTool::ToXMLStringTool | ( | ) | [inline] |
Definition at line 660 of file xmlParser.h.
ToXMLStringTool::~ToXMLStringTool | ( | ) |
Definition at line 738 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 739 of file xmlParser.cpp.
Referenced by toXML(), and ~ToXMLStringTool().
int ToXMLStringTool::lengthXMLString | ( | XMLCSTR | source | ) | [static] |
deprecated: use "toXML" instead
Definition at line 714 of file xmlParser.cpp.
References XMLCharacterEntity::c, XMLCharacterEntity::l, XMLCharacterEntity::s, XMLCHAR, and XMLEntities.
Referenced by toXML().
XMLSTR ToXMLStringTool::toXML | ( | XMLCSTR | source | ) |
returns a pointer to an internal buffer that contains a XML-encoded string based on the "source" parameter.
Definition at line 740 of file xmlParser.cpp.
References freeBuffer(), lengthXMLString(), toXMLUnSafe(), XMLCHAR, and XMLSTR.
XMLSTR ToXMLStringTool::toXMLUnSafe | ( | XMLSTR | dest, |
XMLCSTR | source | ||
) | [static] |
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 682 of file xmlParser.cpp.
References XMLCharacterEntity::c, XMLCharacterEntity::l, XMLCharacterEntity::s, XMLCHAR, XMLEntities, XMLSTR, and xstrcpy().
Referenced by toXML().