#include <Element.hpp>

Inheritance diagram for exml::Element:
exml::AttributeList exml::Node exml::Document

Public Member Functions

 Element (const ememory::SharedPtr< exml::internal::Node > &_internalNode)
 
 Element (const exml::Element &_obj)
 
 Element (const std::string &_value="")
 
exml::Elementoperator= (const exml::Element &_obj)
 
std::string getText () const
 
void clear () override
 
- Public Member Functions inherited from exml::Node
 Node (const ememory::SharedPtr< exml::internal::Node > &_internalNode)
 
 Node ()
 
virtual ~Node ()=default
 
bool exist () const
 
exml::FilePos getPos () const
 
virtual void setValue (std::string _value)
 
const std::string & getValue () const
 
enum nodeType getType () const
 
exml::Document toDocument ()
 
const exml::Document toDocument () const
 
exml::Attribute toAttribute ()
 
const exml::Attribute toAttribute () const
 
exml::Comment toComment ()
 
const exml::Comment toComment () const
 
exml::Declaration toDeclaration ()
 
const exml::Declaration toDeclaration () const
 
exml::Element toElement ()
 
const exml::Element toElement () const
 
exml::Text toText ()
 
const exml::Text toText () const
 
bool isDocument () const
 
bool isAttribute () const
 
bool isComment () const
 
bool isDeclaration () const
 
bool isElement () const
 
bool isText () const
 

Public Attributes

ElementData nodes
 
- Public Attributes inherited from exml::AttributeList
AttributeListData attributes
 

Additional Inherited Members

- Protected Member Functions inherited from exml::AttributeList
 AttributeList (const ememory::SharedPtr< exml::internal::Node > &_internalNode)
 
 AttributeList ()
 
- Protected Attributes inherited from exml::Node
ememory::SharedPtr< exml::internal::Nodem_data
 

Detailed Description

Basic element Node of an XML document <YYYYY>.

Constructor & Destructor Documentation

§ Element() [1/3]

exml::Element::Element ( const ememory::SharedPtr< exml::internal::Node > &  _internalNode)

Constructor.

Parameters
[in]_internalNodeInternal Node to set data

§ Element() [2/3]

exml::Element::Element ( const exml::Element _obj)

Copy constructor.

Parameters
[in]_objObject to copy

§ Element() [3/3]

exml::Element::Element ( const std::string &  _value = "")

Constructor.

Parameters
[in]_valueElement name;

Member Function Documentation

§ clear()

void exml::Element::clear ( )
overridevirtual

clear the Node

Reimplemented from exml::Node.

§ getText()

std::string exml::Element::getText ( ) const

get the internal data of the element (if the element has some sub node thay are converted in xml string == > like this it is not needed to use <![CDATA[...]]>

Returns
the curent data string. if Only one text node, then we get the parssed data (no & ...) if more than one node, then we transform &,",',<,> in xml normal text...

§ operator=()

exml::Element& exml::Element::operator= ( const exml::Element _obj)

Copy constructor.

Parameters
[in]_objObject to copy
Returns
Local reference on this class

Member Data Documentation

§ nodes

ElementData exml::Element::nodes

All Sub-nodes interface.


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