rili::XML::TreeType Class Referencefinal

Public Types

typedef std::list< XMLNodes
 
typedef std::pair< std::string, std::string > Attribute
 
typedef std::list< AttributeAttributes
 

Public Member Functions

std::string & name () noexcept
 
std::string const & name () const noexcept
 
Nodesnodes () noexcept
 
Nodes const & nodes () const noexcept
 
Attributesattributes () noexcept
 
Attributes const & attributes () const noexcept
 
 TreeType (std::string const &name)
 
 TreeType (std::string const &name, Nodes const &nodes)
 
 TreeType (std::string const &name, Attributes const &attributes)
 
 TreeType (std::string const &name, Nodes const &nodes, Attributes const &attributes)
 

Detailed Description

Note
Tree type nodes are in form: <node>...</node> or <node/>

Member Typedef Documentation

typedef std::pair<std::string, std::string> rili::XML::TreeType::Attribute

Attribute type in whch attribure is stored. Attribute::first is attribute name, Attribute::second is attribute value.

Attributes type in which current node attrivutes are stored.

typedef std::list<XML> rili::XML::TreeType::Nodes

Nodes type in which child nodes are stored.

Constructor & Destructor Documentation

rili::XML::TreeType::TreeType ( std::string const &  name)
inlineexplicit

TreeType construct tree node with given name, without attributes nor subnodes.

Parameters
namename of tree node tag to construct
rili::XML::TreeType::TreeType ( std::string const &  name,
Nodes const &  nodes 
)
inline

TreeType construct tree node with given name and subnodes but without attributes.

Parameters
namename of tree node tag to construct
nodeslist of subnodes
rili::XML::TreeType::TreeType ( std::string const &  name,
Attributes const &  attributes 
)
inline

TreeType construct tree node with given name and attributes but without subnodes.

Parameters
namename of tree node tag to construct
attributeslist of attributes
rili::XML::TreeType::TreeType ( std::string const &  name,
Nodes const &  nodes,
Attributes const &  attributes 
)
inline

TreeType.

Parameters
namename of tree node tag to construct
nodeslist of subnodes
attributeslist of attributes

Member Function Documentation

Attributes& rili::XML::TreeType::attributes ( )
inlinenoexcept

attributes used to get current tag attributes

Returns
current tag attributes
Attributes const& rili::XML::TreeType::attributes ( ) const
inlinenoexcept

attributes used to get current tag attributes

Returns
current tag attributes
std::string& rili::XML::TreeType::name ( )
inlinenoexcept

name return tag name( for "`<``node ``/``>`" it should be equal to node )

Returns
tag name
std::string const& rili::XML::TreeType::name ( ) const
inlinenoexcept

name return tag name( for "`<``node ``/``>`" it should be equal to node )

Returns
tag name
Nodes& rili::XML::TreeType::nodes ( )
inlinenoexcept

nodes used to get child nodes

Returns
child nodes
Nodes const& rili::XML::TreeType::nodes ( ) const
inlinenoexcept

nodes used to get child nodes

Returns
child nodes

The documentation for this class was generated from the following file: