XMLHeader Class
The XMLHeader class holds an XML header. More...
Header: | #include <XMLHeader> |
Inherits: | XMLElementEx |
Public Functions
XMLHeader(void) | |
virtual | ~XMLHeader(void) |
Reimplemented Public Functions
virtual bool | Dump(FILE *pFile) |
virtual char * | Dump(char *pzBuffer) |
virtual void | Dump(XMLBuffer &strBuffer) |
virtual unsigned int | GetWriteBufferSize() |
virtual const char * | Parse(const char *pStart, unsigned int &nLineNumber) |
- 30 public functions inherited from XMLElementEx
- 37 public functions inherited from XMLPrimitive
Additional Inherited Members
- 1 static public member inherited from XMLPrimitive
Detailed Description
The XMLHeader class holds an XML header.
Example XMLHeader:
<?xml version="1.0" charset="utf-8" encoding=""?>
The XMLHeader Name is set to "xml" and any attributes are read in and can be retrieved by the attribute access functions. The Value is empty.
Member Function Documentation
XMLHeader::XMLHeader(void)
Constructs the XML header, setting the Type to e_XMLHeader.
[virtual]
XMLHeader::~XMLHeader(void)
Destructs the XMLHeader.
[virtual]
bool XMLHeader::Dump(FILE *pFile)
Reimplemented from XMLPrimitive::Dump().
Appends the xml header and attributes to (an already open) pFile.
[virtual]
char *XMLHeader::Dump(char *pzBuffer)
Reimplemented from XMLPrimitive::Dump().
Appends the xml header and attributes to pzBuffer.
[virtual]
void XMLHeader::Dump(XMLBuffer &strBuffer)
Reimplemented from XMLPrimitive::Dump().
Appends the xml header and attributes to strBuffer.
[virtual]
unsigned int XMLHeader::GetWriteBufferSize()
Reimplemented from XMLPrimitive::GetWriteBufferSize().
Returns the size to allocate for this header and attributes.
[virtual]
const char *XMLHeader::Parse(const char *pStart, unsigned int &nLineNumber)
Reimplemented from XMLPrimitive::Parse().
Parses the XML Header, reading attributes and reporting any errors if found. Also parses elements following the header. On success, returns pointer to string-terminating-character(0), or returns nullptr on error.
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.