AttributeList.hpp
Go to the documentation of this file.
27 };
ememory::SharedPtr< Attribute > getAttr(int32_t _id)
get attribute whith his ID
void appendAttribute(const ememory::SharedPtr< exml::internal::Attribute > &_attr)
add attribute on the List
std::vector< ememory::SharedPtr< exml::internal::Attribute > > m_listAttribute
list of all attribute
Definition: AttributeList.hpp:27
List of all attribute element in a node.
Definition: AttributeList.hpp:18
size_t sizeAttribute() const
get the number of attribute in the Node
Definition: AttributeList.hpp:35
std::pair< std::string, std::string > getAttrPair(int32_t _id) const
get attribute whith his ID
void setAttribute(const std::string &_name, const std::string &_value)
Set A new attribute or replace data of the previous one.
const std::string & getAttribute(const std::string &_name) const
get the attribute value with searching in the List with his name
AttributeList(const std::string &_value="")
Constructor.
Definition: AttributeList.hpp:24
bool iGenerate(std::string &_data, int32_t _indent) const override
generate a string with the tree of the xml
bool existAttribute(const std::string &_name) const
check if an attribute exist or not with his name.
bool removeAttribute(const std::string &_name)
Remove an attribute form the list.