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
Parameter [input]: _value Element name;
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).
Return: a number >=0.
append ()
void append(Node * _node);
add a node at the element (not exml::Attribute (move in the attribute automaticly).
Parameter [input]: _node Pointer of the node to add.
getType ()
const enum nodeType getType(int32_t _id);
getNode ()
Node * getNode(int32_t _id);
get the Node pointer of the element id.
Parameter [input]: _id Id of the element.
Return: Pointer on node.
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).
Parameter [input]: _id Id of the element.
Return: Pointer on the element or 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)
Parameter [input]: _name Name of the element that is requested
Return: Pointer on the element or NULL.
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
Return: the curent data string.
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);
exml::Element ()
Element(void);
Constructor
exml::Element ()
Element(const std::string & _value);
Constructor
-
Parameter [input]: _value Element name;
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).
-
Return: a number >=0.
append ()
void append(Node * _node);
add a node at the element (not exml::Attribute (move in the attribute automaticly).
-
Parameter [input]: _node Pointer of the node to add.
getType ()
const enum nodeType getType(int32_t _id);
getNode ()
Node * getNode(int32_t _id);
get the Node pointer of the element id.
-
Parameter [input]: _id Id of the element.
Return: Pointer on node.
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).
-
Parameter [input]: _id Id of the element.
Return: Pointer on the element or 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)
-
Parameter [input]: _name Name of the element that is requested
Return: Pointer on the element or NULL.
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
-
Return: the curent data string.
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);