Element.hpp
Go to the documentation of this file.
81 ememory::SharedPtr<Element> getElement(int32_t _id); // TODO : DEPRECATED ... not use anymore ...
87 const ememory::SharedPtr<Element> getElement(int32_t _id) const;// TODO : DEPRECATED ... not use anymore ...
127 bool iParse(const std::string& _data, int32_t& _pos, bool _caseSensitive, exml::FilePos& _filePos, exml::internal::Document& _doc) override;
std::vector< ememory::SharedPtr< exml::internal::Node > > m_listSub
List of subNodes.
Definition: Element.hpp:39
the <XXX> ... </XXX>
bool iGenerate(std::string &_data, int32_t _indent) const override
generate a string with the tree of the xml
size_t size() const
get the number of sub element in the node (can be exml::internal::Comment ; exml::internal::Element ;...
Definition: Element.hpp:45
std::string getText() const
get the internal data of the element (if the element has some sub node thay are converted in xml stri...
ememory::SharedPtr< exml::internal::Element > toElement() override
Cast the element in a Element if it is possible.
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]
Element(const std::string &_value)
Constructor.
Definition: Element.hpp:27
ememory::SharedPtr< Node > getNode(int32_t _id)
get the Node pointer of the element id.
List of all attribute element in a node.
Definition: AttributeList.hpp:18
ememory::SharedPtr< Element > getNamed(const std::string &_name)
get an element with his name (work only with exml::internal::Element)
enum nodeType getType() const override
get the node type.
Definition: Element.hpp:124
ememory::SharedPtr< Element > getElement(int32_t _id)
get the element casted in Element (if the node is not an element return NULL).
bool subParse(const std::string &_data, int32_t &_pos, bool _caseSensitive, exml::FilePos &_filePos, exml::internal::Document &_doc, bool _mainNode=false)
Parse sub node string.
void append(const ememory::SharedPtr< exml::internal::Node > &_node)
add a node at the element (not exml::internal::Attribute (move in the attribute automaticly).
static ememory::SharedPtr< Element > create(const std::string &_value="")
factory of an exml::internal::Element