29 #ifndef Pt_Xml_StartDocument_h
30 #define Pt_Xml_StartDocument_h
32 #include <Pt/Xml/Api.h>
33 #include <Pt/Xml/Node.h>
64 {
return _standalone; }
69 { _standalone = alone; }
72 inline static const Node::Type nodeId()
73 {
return Node::StartDocument; }
85 return nodeCast<StartDocument>(node);
94 return nodeCast<StartDocument>(node);
103 return nodeCast<StartDocument>(node);
112 return nodeCast<StartDocument>(node);
119 #endif // Pt_Xml_StartDocument_h
const StartDocument * toStartDocument(const Node *node)
Casts a generic node to a StartDocument node.
Definition: StartDocument.h:92
StartDocument & toStartDocument(Node &node)
Casts a generic node to a StartDocument node.
Definition: StartDocument.h:101
const StartDocument & toStartDocument(const Node &node)
Casts a generic node to a StartDocument node.
Definition: StartDocument.h:110
StartDocument()
Creates an empty object.
Definition: StartDocument.h:49
void clear()
Clears all content.
Definition: StartDocument.h:56
A Node representing the begin of the XML document.
Definition: StartDocument.h:44
StartDocument * toStartDocument(Node *node)
Casts a generic node to a StartDocument node.
Definition: StartDocument.h:83
void setStandalone(bool alone)
Indicates that the document is standalone.
Definition: StartDocument.h:68
bool isStandalone() const
Returns true if the document is standalone.
Definition: StartDocument.h:63
XML document node.
Definition: Node.h:50