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


~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


appendAttribute

+ void appendAttribute (exml::Attribute* _attr);
add attribute on the List


getAttr

+ Attribute* getAttr (int32_t _id);
get attribute whith his ID


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


existAttribute

+ bool existAttribute (const std::string & _name) const;
check if an attribute exist or not with his name.


setAttribute

+ void setAttribute (const std::string & _name,
const std::string & _value);
Sen A new attribute or replace data of the previous one


iGenerate

+ bool iGenerate (std::string & _data,
int32_t _indent) const;
generate a string with the tree of the xml


clear

+ virtual void clear (void );
clear the Node