top | up | prev | next

CharacterData Abstract Class

Definition at line 14 of CharacterData.hpp

Constructors

CharacterData(CharacterData&&) delete
CharacterData(NodeType nodeType_, const std::u32string& name_)
CharacterData(NodeType nodeType_, const std::u32string& name_, const std::u32string& data_)
CharacterData(const CharacterData&) delete

Member Functions

const std::u32string& Data() const
std::u32string& Data()
bool ValueContainsNewLine() const override
void Write(CodeFormatter& formatter) override
CharacterData& operator=(CharacterData&&) delete
CharacterData& operator=(const CharacterData&) delete

Member Variables

std::u32string data

Constructor Details

CharacterData Constructor

sngxml::dom::CharacterData::CharacterData(CharacterData &&) delete

Definition at line 21 of CharacterData.hpp


CharacterData Constructor

sngxml::dom::CharacterData::CharacterData(NodeType nodeType_, const std::u32string& name_)

Definition at line 28 of CharacterData.cpp :
 28 : Node(nodeType_name_)
 29 {
 30 }


Declaration at line 17 of CharacterData.hpp


CharacterData Constructor

sngxml::dom::CharacterData::CharacterData(NodeType nodeType_, const std::u32string& name_, const std::u32string& data_)

Definition at line 32 of CharacterData.cpp :
 32 : Node(nodeType_name_)data(data_)
 33 {
 34 }


Declaration at line 18 of CharacterData.hpp


CharacterData Constructor

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

Definition at line 19 of CharacterData.hpp


Member Function Details

Data Member Function

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

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


Data Member Function

std::u32string& sngxml::dom::CharacterData::Data()

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

Called by: sngxml::dom::CDataSection::CloneNode , sngxml::dom::CDataSection::Write , sngxml::dom::Comment::CloneNode , sngxml::dom::Comment::Write , sngxml::dom::EntityReference::CloneNode , sngxml::dom::EntityReference::Write , sngxml::dom::Text::CloneNode


ValueContainsNewLine Member Function

bool sngxml::dom::CharacterData::ValueContainsNewLine() const override

Definition at line 41 of CharacterData.cpp :
 42 {
 43     return data.find('\n') != std::u32string::npos;
 44 }


Declaration at line 24 of CharacterData.hpp

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


Write Member Function

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

Definition at line 36 of CharacterData.cpp :
 37 {
 38     formatter.Write(ToUtf8(XmlCharDataEscape(data)));
 39 }


Declaration at line 23 of CharacterData.hpp

Derived class overrides: sngxml::dom::CDataSection::Write , sngxml::dom::Comment::Write , sngxml::dom::EntityReference::Write

Calls: sngxml::dom::CharacterData::Write

Called by: sngxml::dom::CharacterData::Write


operator= Member Function

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

Definition at line 22 of CharacterData.hpp


operator= Member Function

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

Definition at line 20 of CharacterData.hpp


top | up | prev | next