class: exml::AttributeList
Description:
Constructor and Destructor:
+ AttributeList (void );
+ AttributeList (const std::string & _value);
+ virtual ~AttributeList (void );
Synopsis:
# std::vector<exml::Attribute*> m_listAttribute;
+ size_t sizeAttribute (void ) const;
+ void appendAttribute (exml::Attribute* _attr);
+ Attribute* getAttr (int32_t _id);
+ const Attribute* getAttr (int32_t _id) const;
+ const std::string & getAttribute (const std::string & _name) const;
+ bool existAttribute (const std::string & _name) const;
+ void setAttribute (const std::string & _name,
const std::string & _value);
+ bool iGenerate (std::string & _data,
int32_t _indent) const;
+ virtual void clear (void );
Object Hierarchy:
+exml::Node
+--> exml::AttributeList
+--> exml::Declaration
+--> exml::Element
Detail:
AttributeList
+ AttributeList (void );
Constructor
AttributeList
+ AttributeList (const std::string & _value);
Constructor
Parameter [input]: _value Node value;
~AttributeList
+ virtual ~AttributeList (void );
Destructor
m_listAttribute
# std::vector<exml::Attribute*> m_listAttribute;
list of all attribute
sizeAttribute
+ size_t sizeAttribute (void ) const;
get the number of attribute in the Node
Return: Nulber of attribute >=0
appendAttribute
+ void appendAttribute (exml::Attribute* _attr);
add attribute on the List
Parameter [input]: _attr Pointer on the attribute
getAttr
+ Attribute* getAttr (int32_t _id);
get attribute whith his ID
Parameter [input]: _id Identifier of the attribute 0<= _id < sizeAttribute()
Return: Pointer on the attribute or NULL
getAttr
+ const Attribute* getAttr (int32_t _id) const;
getAttribute
+ const std::string & getAttribute (const std::string & _name) const;
get the attribute value with searching in the List with his name
Parameter [input]: _name Attribute Name.
Return: Value of the attribute or no data in the string
existAttribute
+ bool existAttribute (const std::string & _name) const;
check if an attribute exist or not with his name.
Parameter [input]: _name Attribute Name.
Return: true if the attribute exist or False
setAttribute
+ void setAttribute (const std::string & _name,
const std::string & _value);
Sen A new attribute or replace data of the previous one
Parameter [input]: _name Name of the attribute
Parameter [input]: _value Value of the attribute
iGenerate
+ bool iGenerate (std::string & _data,
int32_t _indent) const;
generate a string with the tree of the xml
Parameter [input] [output]: _data string where to add the elements
Parameter [input]: current indentation of the file
Return: false if an error occured.
clear
+ virtual void clear (void );
clear the Node
+exml::Node
+--> exml::AttributeList
+--> exml::Declaration
+--> exml::Element
Detail:
AttributeList
+ AttributeList (void );Constructor
AttributeList
+ AttributeList (const std::string & _value);Constructor
Parameter [input]: | _value | Node value; |
~AttributeList
+ virtual ~AttributeList (void );Destructor
m_listAttribute
# std::vector<exml::Attribute*> m_listAttribute;list of all attribute
sizeAttribute
+ size_t sizeAttribute (void ) const;get the number of attribute in the Node
Return: | Nulber of attribute >=0 |
appendAttribute
+ void appendAttribute (exml::Attribute* _attr);add attribute on the List
Parameter [input]: | _attr | Pointer on the attribute |
getAttr
+ Attribute* getAttr (int32_t _id);get attribute whith his ID
Parameter [input]: | _id | Identifier of the attribute 0<= _id < sizeAttribute() |
Return: | Pointer on the attribute or NULL |
getAttr
+ const Attribute* getAttr (int32_t _id) const;
getAttribute
+ const std::string & getAttribute (const std::string & _name) const;get the attribute value with searching in the List with his name
Parameter [input]: | _name | Attribute Name. |
Return: | Value of the attribute or no data in the string |
existAttribute
+ bool existAttribute (const std::string & _name) const;check if an attribute exist or not with his name.
Parameter [input]: | _name | Attribute Name. |
Return: | true if the attribute exist or False |
setAttribute
+ void setAttribute (const std::string & _name,Sen A new attribute or replace data of the previous one
const std::string & _value);
Parameter [input]: | _name | Name of the attribute | Parameter [input]: | _value | Value of the attribute |
iGenerate
+ bool iGenerate (std::string & _data,generate a string with the tree of the xml
int32_t _indent) const;
Parameter [input] [output]: | _data | string where to add the elements | Parameter [input]: | current | indentation of the file |
Return: | false if an error occured. |
clear
+ virtual void clear (void );clear the Node