XMLComment Class
The XMLComment class handles parsing of, and holds an XMLComment. More...
Header: | #include <XMLComment> |
Inherits: | XMLPrimitive |
Public Functions
XMLComment(void) | |
virtual | ~XMLComment(void) |
XMLComment * | GetChild() |
XMLComment * | GetNext() |
XMLComment * | GetPrevious() |
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) |
- 37 public functions inherited from XMLPrimitive
Additional Inherited Members
- 1 static public member inherited from XMLPrimitive
Detailed Description
The XMLComment class handles parsing of, and holds an XMLComment.
Example XMLComment:
<!-- This is a comment. Anything in here is ignored, all up until the comment end: -->
The comment can be retrieved by calling GetName(), and can be set by calling SetName().
Member Function Documentation
XMLComment::XMLComment(void)
Constructs the XMLComment, setting the Type to e_XMLComment.
[virtual]
XMLComment::~XMLComment(void)
Destructs the XMLComment.
[virtual]
bool XMLComment::Dump(FILE *pFile)
Reimplemented from XMLPrimitive::Dump().
Appends the XMLComment to the already open pFile.
[virtual]
char *XMLComment::Dump(char *pzBuffer)
Reimplemented from XMLPrimitive::Dump().
Appends the XMLComment to pzBuffer.
See also GetWriteBufferSize().
[virtual]
void XMLComment::Dump(XMLBuffer &strBuffer)
Reimplemented from XMLPrimitive::Dump().
Appends the XMLComment to strBuffer.
XMLComment *XMLComment::GetChild()
Returns the first child element of type XMLComment, or nullptr if none.
XMLComment *XMLComment::GetNext()
Get the next XMLPrimitive of type XMLComment at this level, or nullptr if none.
XMLComment *XMLComment::GetPrevious()
Returns the previous XML primitive of type XMLComment at this level , or nullptr if none.
[virtual]
unsigned int XMLComment::GetWriteBufferSize()
Reimplemented from XMLPrimitive::GetWriteBufferSize().
Returns the size that this XMLComment occupies when performing Dump(FILE*).
[virtual]
const char *XMLComment::Parse(const char *pStart, unsigned int &nLineNumber)
Reimplemented from XMLPrimitive::Parse().
Parses the XMLComment, and reports error for nested comments or missing end of comment.
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.