top | up | prev | next

Attr Abstract Class

Definition at line 13 of Element.hpp

Constructors

Attr()
Attr(Attr&&) delete
Attr(const Attr&) delete
Attr(const std::u32string& name_, const std::u32string& value_)

Member Functions

std::unique_ptr<Node> CloneNode(bool deep) override
const std::u32string& Value() const
std::u32string& Value()
void Write(CodeFormatter& formatter) override
Attr& operator=(Attr&&) delete
Attr& operator=(const Attr&) delete

Member Variables

std::u32string value

Constructor Details

Attr Constructor

sngxml::dom::Attr::Attr()

Definition at line 54 of Element.cpp :
 54 : Node(NodeType::attributeNodeU"")value(U"")
 55 {
 56 }


Declaration at line 16 of Element.hpp


Attr Constructor

sngxml::dom::Attr::Attr(Attr &&) delete

Definition at line 20 of Element.hpp


Attr Constructor

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

Definition at line 18 of Element.hpp


Attr Constructor

sngxml::dom::Attr::Attr(const std::u32string& name_, const std::u32string& value_)

Definition at line 58 of Element.cpp :
 58 : Node(NodeType::attributeNodename_)value(value_)
 59 {
 60 }


Declaration at line 17 of Element.hpp


Member Function Details

CloneNode Member Function

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

Definition at line 62 of Element.cpp :
 63 {
 64     return std::unique_ptr<Node>(new Attr(Name()value));
 65 }


Declaration at line 22 of Element.hpp

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

Calls: sngxml::dom::Node::Name


Value Member Function

const std::u32string& sngxml::dom::Attr::Value() const

Definition at line 24 of Element.hpp :
24 { return value; }


Value Member Function

std::u32string& sngxml::dom::Attr::Value()

Definition at line 25 of Element.hpp :
25 { return value; }


Write Member Function

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

Definition at line 67 of Element.cpp :
 68 {
 69     formatter.Write(" " + ToUtf8(Name()) + "=");
 70     formatter.Write(ToUtf8(MakeXmlAttrValue(value)));
 71 }


Declaration at line 23 of Element.hpp

Calls: sngxml::dom::Attr::Write , sngxml::dom::Node::Name

Called by: sngxml::dom::Attr::Write


operator= Member Function

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

Definition at line 21 of Element.hpp


operator= Member Function

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

Definition at line 19 of Element.hpp


top | up | prev | next