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
Parameter [input]: _value Node value;
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
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);
getAttribute ()
const std::string & getAttribute(const std::string & _name);
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
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.
Parameter [input]: _name Attribute Name.
Return: true if the attribute exist or False
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
Parameter [input]: _name Name of the attribute
Parameter [input]: _value Value of the attribute
setAttribute ()
void setAttribute(const std::u32string & _name,
const std::u32string & _value);
iGenerate ()
bool iGenerate(std::string & _data,
int32_t _indent);
clear ()
void clear(void);
exml::AttributeList ()
AttributeList(void);
Constructor
exml::AttributeList ()
AttributeList(const std::string & _value);
Constructor
-
Parameter [input]: _value Node value;
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
-
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);
getAttribute ()
const std::string & getAttribute(const std::string & _name);
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
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.
-
Parameter [input]: _name Attribute Name.
Return: true if the attribute exist or False
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
-
Parameter [input]: _name Name of the attribute
Parameter [input]: _value Value of the attribute
setAttribute ()
void setAttribute(const std::u32string & _name, const std::u32string & _value);
iGenerate ()
bool iGenerate(std::string & _data, int32_t _indent);
clear ()
void clear(void);