Attribute.hpp
Go to the documentation of this file.
31 static ememory::SharedPtr<Attribute> create(const std::string& _name="", const std::string& _value="");
53 bool iParse(const std::string& _data, int32_t& _pos, bool _caseSensitive, exml::FilePos& _filePos, exml::internal::Document& _doc) override;
Attribute(const std::string &_name="", const std::string &_value="")
Constructor.
ememory::SharedPtr< exml::internal::Attribute > toAttribute() override
Cast the element in a Attribute if it is possible.
Definition: Attribute.hpp:55
bool iParse(const std::string &_data, int32_t &_pos, bool _caseSensitive, exml::FilePos &_filePos, exml::internal::Document &_doc) override
parse the Current node [pure VIRUAL]
static ememory::SharedPtr< Attribute > create(const std::string &_name="", const std::string &_value="")
defined factory
virtual const std::string & getName() const
get the current name of the Attribute
Definition: Attribute.hpp:46
bool iGenerate(std::string &_data, int32_t _indent) const override
generate a string with the tree of the xml
the <Element ATTRIBUTE="ATTRIBUTE_VALUE" />
const ememory::SharedPtr< exml::internal::Attribute > toAttribute() const override
Cast the element in a Attribute if it is possible.
Definition: Attribute.hpp:58
virtual void setName(const std::string &_name)
set the name of the attribute
Definition: Attribute.hpp:39
std::string m_name
Name of the attribute.
Definition: Attribute.hpp:33
enum nodeType getType() const override
get the node type.
Definition: Attribute.hpp:50