29#ifndef Pt_Xml_ProcessingInstruction_h
30#define Pt_Xml_ProcessingInstruction_h
32#include <Pt/Xml/Api.h>
33#include <Pt/Xml/Node.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);
Unicode capable basic_string.
Definition Api-String.h:67
Node(Type type)
Constructs a new Node object with the specified node type.
Definition Node.h:80
ProcessingInstruction & toProcessingInstruction(Node &node)
Casts a generic node to a ProcessingInstruction node.
Definition ProcessingInstruction.h:125
void setData(const String &data)
Sets the data for the processing instruction.
Definition ProcessingInstruction.h:91
ProcessingInstruction()
Constructs an empty ProcessingInstruction.
Definition ProcessingInstruction.h:52
const String & data() const
Returns the data for the processing instruction.
Definition ProcessingInstruction.h:81
const String & target() const
Returns the target for the processing instruction.
Definition ProcessingInstruction.h:66
void setTarget(const String &target)
Sets the target for the processing instruction.
Definition ProcessingInstruction.h:76
String & data()
Returns the data for the processing instruction.
Definition ProcessingInstruction.h:86
const ProcessingInstruction * toProcessingInstruction(const Node *node)
Casts a generic node to a ProcessingInstruction node.
Definition ProcessingInstruction.h:116
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
ProcessingInstruction * toProcessingInstruction(Node *node)
Casts a generic node to a ProcessingInstruction node.
Definition ProcessingInstruction.h:107
String & target()
Returns the target for the processing instruction.
Definition ProcessingInstruction.h:71
Read and write XML ducuments.
Core module.
Definition Allocator.h:33