Node.hpp
Go to the documentation of this file.
72 virtual bool iParse(const std::string& _data, int32_t& _pos, bool _caseSensitive, exml::FilePos& _filePos, exml::internal::Document& _doc) = 0;
bool isDeclaration() const
check if the node is a exml::internal::Declaration
virtual ememory::SharedPtr< exml::internal::Declaration > toDeclaration()
Cast the element in a Declaration if it is possible.
const exml::FilePos & getPos() const
get the current position where the element is in the file
bool checkAvaillable(char32_t _val, bool _firstChar) const
check if an element or attribute is availlable (not : !"#$%&'()*+,/;<=>?@[]^`{|}~ \n\t\r and for firs...
virtual ememory::SharedPtr< exml::internal::Comment > toComment()
Cast the element in a Comment if it is possible.
void addIndent(std::string &_data, int32_t _indent) const
add indentation of the string input.
virtual ememory::SharedPtr< exml::internal::Element > toElement()
Cast the element in a Element if it is possible.
virtual ememory::SharedPtr< exml::internal::Attribute > toAttribute()
Cast the element in a Attribute if it is possible.
exml::FilePos m_pos
position in the readed file == > not correct when the file is generated
Definition: Node.hpp:81
virtual const std::string & getValue() const
get the current element Value.
virtual ememory::SharedPtr< exml::internal::Text > toText()
Cast the element in a Text if it is possible.
virtual bool iGenerate(std::string &_data, int32_t _indent) const
generate a string with the tree of the xml
bool isDocument() const
check if the node is a exml::internal::Document
bool isAttribute() const
check if the node is a exml::internal::Attribute
virtual ememory::SharedPtr< exml::internal::Document > toDocument()
Cast the element in a Document if it is possible.
int32_t countWhiteChar(const std::string &_data, int32_t _pos, exml::FilePos &_filePos) const
count the number of white char in the string from the specify position (stop at the first element tha...
std::string m_value
value of the node (for element this is the name, for text it is the inside text ...)
Definition: Node.hpp:89
virtual bool iParse(const std::string &_data, int32_t &_pos, bool _caseSensitive, exml::FilePos &_filePos, exml::internal::Document &_doc)=0
parse the Current node [pure VIRUAL]
void drawElementParsed(char32_t _val, const exml::FilePos &_filePos) const
Display the cuurent element that is curently parse.