top | up | prev | next

ProcessingInstruction Abstract Class

Definition at line 88 of CharacterData.hpp

Constructors

ProcessingInstruction(ProcessingInstruction&&) delete
ProcessingInstruction(const ProcessingInstruction&) delete
ProcessingInstruction(const std::u32string& target_, const std::u32string& data_)

Member Functions

void Accept(Visitor& visitor) override
std::unique_ptr<Node> CloneNode(bool deep) override
const std::u32string& Data() const
const std::u32string& Target() const
void Write(CodeFormatter& formatter) override
ProcessingInstruction& operator=(ProcessingInstruction&&) delete
ProcessingInstruction& operator=(const ProcessingInstruction&) delete

Member Variables

std::u32string data
std::u32string target

Constructor Details

ProcessingInstruction Constructor

sngxml::dom::ProcessingInstruction::ProcessingInstruction(ProcessingInstruction &&) delete

Definition at line 94 of CharacterData.hpp


ProcessingInstruction Constructor

sngxml::dom::ProcessingInstruction::ProcessingInstruction(const ProcessingInstruction &) delete

Definition at line 92 of CharacterData.hpp


ProcessingInstruction Constructor

sngxml::dom::ProcessingInstruction::ProcessingInstruction(const std::u32string& target_, const std::u32string& data_)

Definition at line 147 of CharacterData.cpp :
147 : Node(NodeType::processingInstructionNodeU"processing_instruction")target(target_)data(data_)
148 {
149 }


Declaration at line 91 of CharacterData.hpp


Member Function Details

Accept Member Function

void sngxml::dom::ProcessingInstruction::Accept(Visitor & visitor) override

Definition at line 161 of CharacterData.cpp :
162 {
163     visitor.Visit(this);
164 }


Declaration at line 98 of CharacterData.hpp

Base class overridden functions: sngxml::dom::Node::Accept


CloneNode Member Function

std::unique_ptr<Node > sngxml::dom::ProcessingInstruction::CloneNode(bool deep) override

Definition at line 156 of CharacterData.cpp :
157 {
158     return std::unique_ptr<Node>(new ProcessingInstruction(targetdata));
159 }


Declaration at line 97 of CharacterData.hpp

Base class overridden functions: sngxml::dom::Node::CloneNode


Data Member Function

const std::u32string& sngxml::dom::ProcessingInstruction::Data() const

Definition at line 100 of CharacterData.hpp :
100 { return data; }


Target Member Function

const std::u32string& sngxml::dom::ProcessingInstruction::Target() const

Definition at line 99 of CharacterData.hpp :
 99 { return target; }


Write Member Function

void sngxml::dom::ProcessingInstruction::Write(CodeFormatter& formatter) override

Definition at line 151 of CharacterData.cpp :
152 {
153     formatter.WriteLine("<?" + ToUtf8(target) + " " + ToUtf8(data) + "?>");
154 }


Declaration at line 96 of CharacterData.hpp


operator= Member Function

ProcessingInstruction & sngxml::dom::ProcessingInstruction::operator=(ProcessingInstruction &&) delete

Definition at line 95 of CharacterData.hpp


operator= Member Function

ProcessingInstruction & sngxml::dom::ProcessingInstruction::operator=(const ProcessingInstruction &) delete

Definition at line 93 of CharacterData.hpp


top | up | prev | next