Class: exml::AttributeList


Synopsis:

+                       AttributeList    (void);
+ AttributeList (const std::string & _value);
+ AttributeList (const std::u32string & _value);
+ ~AttributeList (void);
+ size_t sizeAttribute (void);
+ void appendAttribute (exml::Attribute * _attr);
+ Attribute * getAttr (int32_t _id);
+ const Attribute * getAttr (int32_t _id);
+ const std::string & getAttribute (const std::string & _name);
+ std::u32string getAttribute (const std::u32string & _name);
+ bool existAttribute (const std::string & _name);
+ bool existAttribute (const std::u32string & _name);
+ void setAttribute (const std::string & _name,
const std::string & _value);
+ void setAttribute (const std::u32string & _name,
const std::u32string & _value);
+ bool iGenerate (std::string & _data,
int32_t _indent);
+ void clear (void);

Object Hierarchy:

Node
    +--> exml::AttributeList
        +--> exml::Declaration

Detail:

exml::AttributeList ()

AttributeList(void);

Constructor


exml::AttributeList ()

AttributeList(const std::string & _value);

Constructor


exml::AttributeList ()

AttributeList(const std::u32string & _value);



exml::~AttributeList ()

~AttributeList(void);

Destructor


sizeAttribute ()

size_t sizeAttribute(void);

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);



getAttribute ()

const std::string & getAttribute(const std::string & _name);

get the attribute value with searching in the List with his name


getAttribute ()

std::u32string getAttribute(const std::u32string & _name);



existAttribute ()

bool existAttribute(const std::string & _name);

check if an attribute exist or not with his name.


existAttribute ()

bool existAttribute(const std::u32string & _name);



setAttribute ()

void setAttribute(const std::string & _name,
                  const std::string & _value);

Sen A new attribute or replace data of the previous one


setAttribute ()

void setAttribute(const std::u32string & _name,
                  const std::u32string & _value);



iGenerate ()

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



clear ()

void clear(void);