29 #ifndef Pt_Xml_ProcessingInstruction_h
30 #define Pt_Xml_ProcessingInstruction_h
32 #include <Pt/Xml/Api.h>
33 #include <Pt/Xml/Node.h>
34 #include <Pt/String.h>
95 inline static const Node::Type nodeId()
96 {
return Node::ProcessingInstruction; }
109 return nodeCast<ProcessingInstruction>(node);
118 return nodeCast<ProcessingInstruction>(node);
127 return nodeCast<ProcessingInstruction>(node);
136 return nodeCast<ProcessingInstruction>(node);
143 #endif // Pt_Xml_ProcessingInstruction_h
void clear()
Clears all content.
Definition: ProcessingInstruction.h:58
const ProcessingInstruction & toProcessingInstruction(const Node &node)
Casts a generic node to a ProcessingInstruction node.
Definition: ProcessingInstruction.h:134
A processing instruction of an XML document.
Definition: ProcessingInstruction.h:47
ProcessingInstruction & toProcessingInstruction(Node &node)
Casts a generic node to a ProcessingInstruction node.
Definition: ProcessingInstruction.h:125
void clear()
Clears the string.
Definition: String.h:367
ProcessingInstruction * toProcessingInstruction(Node *node)
Casts a generic node to a ProcessingInstruction node.
Definition: ProcessingInstruction.h:107
String & data()
Returns the data for the processing instruction.
Definition: ProcessingInstruction.h:86
void setTarget(const String &target)
Sets the target for the processing instruction.
Definition: ProcessingInstruction.h:76
const String & target() const
Returns the target for the processing instruction.
Definition: ProcessingInstruction.h:66
ProcessingInstruction()
Constructs an empty ProcessingInstruction.
Definition: ProcessingInstruction.h:52
Unicode capable basic_string.
Definition: String.h:42
String & target()
Returns the target for the processing instruction.
Definition: ProcessingInstruction.h:71
const ProcessingInstruction * toProcessingInstruction(const Node *node)
Casts a generic node to a ProcessingInstruction node.
Definition: ProcessingInstruction.h:116
XML document node.
Definition: Node.h:50
const String & data() const
Returns the data for the processing instruction.
Definition: ProcessingInstruction.h:81
void setData(const String &data)
Sets the data for the processing instruction.
Definition: ProcessingInstruction.h:91