Class: exml::Element


Synopsis:

+                         Element     (void);
+ Element (const std::string & _value);
+ Element (const std::u32string & _value);
+ ~Element (void);
+ size_t size (void);
+ void append (Node * _node);
+ const enum nodeType getType (int32_t _id);
+ Node * getNode (int32_t _id);
+ const Node * getNode (int32_t _id);
+ Element * getElement (int32_t _id);
+ const Element * getElement (int32_t _id);
+ Element * getNamed (const std::string & _name);
+ const Element * getNamed (const std::string & _name);
+ Element * getNamed (const std::u32string & _name);
+ const Element * getNamed (const std::u32string & _name);
+ std::string getText (void);
+ enum nodeType getType (void);
+ bool iParse (const std::string & _data,
int32_t & _pos,
bool _caseSensitive,
exml::filePos & _filePos,
exml::Document & _doc);
+ bool iGenerate (std::string & _data,
int32_t _indent);
+ exml::Element * toElement (void);
+ const exml::Element * toElement (void);
+ void clear (void);
# bool subParse (const std::string & _data,
int32_t & _pos,
bool _caseSensitive,
exml::filePos & _filePos,
exml::Document & _doc,
bool _mainNode);

Object Hierarchy:

AttributeList
    +--> exml::Element
        +--> exml::Document

Detail:

exml::Element ()

Element(void);

Constructor


exml::Element ()

Element(const std::string & _value);

Constructor


exml::Element ()

Element(const std::u32string & _value);



exml::~Element ()

~Element(void);

Destructor


size ()

size_t size(void);

get the number of sub element in the node (can be exml::Comment ; exml::Element ; exml::Text :exml::Declaration).


append ()

void append(Node * _node);

add a node at the element (not exml::Attribute (move in the attribute automaticly).


getType ()

const enum nodeType getType(int32_t _id);



getNode ()

Node * getNode(int32_t _id);

get the Node pointer of the element id.


getNode ()

const Node * getNode(int32_t _id);



getElement ()

Element * getElement(int32_t _id);

get the element casted in Element (if the node is not an element return NULL).


getElement ()

const Element * getElement(int32_t _id);



getNamed ()

Element * getNamed(const std::string & _name);

get an element with his name (work only with exml::Element)


getNamed ()

const Element * getNamed(const std::string & _name);



getNamed ()

Element * getNamed(const std::u32string & _name);



getNamed ()

const Element * getNamed(const std::u32string & _name);



getText ()

std::string getText(void);

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


getType ()

enum nodeType getType(void);



iParse ()

bool iParse(const std::string & _data,
            int32_t & _pos,
            bool _caseSensitive,
            exml::filePos & _filePos,
            exml::Document & _doc);



iGenerate ()

bool iGenerate(std::string & _data,
               int32_t _indent);



toElement ()

exml::Element * toElement(void);



toElement ()

const exml::Element * toElement(void);



clear ()

void clear(void);



subParse ()

bool subParse(const std::string & _data,
              int32_t & _pos,
              bool _caseSensitive,
              exml::filePos & _filePos,
              exml::Document & _doc,
              bool _mainNode);