Comment Class Reference

#include <Pt/Xml/Comment.h>

A Comment node represents a comment in an XML document. More...

Inherits Node.

Public Member Functions

 Comment ()
 Constructs an empty Comment node.
 
void clear ()
 Clears all content.
 
Stringcontent ()
 Returns the text of the comment.
 
const Stringcontent () const
 Returns the text of the comment.
 
bool empty () const
 Returns true if is empty.
 
void setContent (const String &text)
 Sets the text of the comment.
 
Type type () const
 Returns the type of the node.
 

Related Functions

CommenttoComment (Node *node)
 Casts a generic node to a Comment node.
 
const CommenttoComment (const Node *node)
 Casts a generic node to a Comment node.
 
CommenttoComment (Node &node)
 Casts a generic node to a Comment node.
 
const CommenttoComment (const Node &node)
 Casts a generic node to a Comment node.
 

Detailed Description

Comments are only reported if the XmlReader is configured to do so.