Public Member Functions |
Static Public Member Functions |
Protected Member Functions |
Protected Attributes |
List of all members
exml::internal::Attribute Class Reference
#include <Attribute.hpp>
Inheritance diagram for exml::internal::Attribute:
Static Public Member Functions | |
static ememory::SharedPtr< Attribute > | create (const std::string &_name="", const std::string &_value="") |
Protected Member Functions | |
Attribute (const std::string &_name="", const std::string &_value="") | |
Protected Member Functions inherited from exml::internal::Node | |
Node () | |
Node (const std::string &_value) | |
void | addIndent (std::string &_data, int32_t _indent) const |
void | drawElementParsed (char32_t _val, const exml::FilePos &_filePos) const |
bool | checkAvaillable (char32_t _val, bool _firstChar) const |
int32_t | countWhiteChar (const std::string &_data, int32_t _pos, exml::FilePos &_filePos) const |
Protected Attributes | |
std::string | m_name |
Protected Attributes inherited from exml::internal::Node | |
exml::FilePos | m_pos |
std::string | m_value |
Detailed Description
Single attribute element.
Constructor & Destructor Documentation
§ Attribute()
|
protected |
Constructor.
- Parameters
-
[in] _name Name of the attribute. [in] _value Value of the attribute.
Member Function Documentation
§ clear()
|
overridevirtual |
clear the Node
Reimplemented from exml::internal::Node.
§ create()
|
static |
defined factory
- Parameters
-
[in] _name Name of the attribute [in] _value Value of the attribute
- Returns
- Shared pointer on the Attribute element
§ getName()
|
inlinevirtual |
get the current name of the Attribute
- Returns
- String of the attribute
§ getType()
|
inlineoverridevirtual |
§ iGenerate()
|
overridevirtual |
generate a string with the tree of the xml
- Parameters
-
[in,out] _data string where to add the elements [in] _indent current indentation of the file
- Returns
- false if an error occured.
Reimplemented from exml::internal::Node.
§ iParse()
|
overridevirtual |
parse the Current node [pure VIRUAL]
- Parameters
-
[in] _data data string to parse. [in,out] _pos position in the string to start parse, return the position end of parsing. [in] _caseSensitive Request a parsion of element that is not case sensitive (all element is in low case) [in,out] _filePos file parsing position (line x col x) [in,out] _doc Base document reference
- Returns
- false if an error occured.
Implements exml::internal::Node.
§ setName()
|
inlinevirtual |
set the name of the attribute
- Parameters
-
[in] _name New name of the attribute
§ toAttribute() [1/2]
|
inlineoverridevirtual |
Cast the element in a Attribute if it is possible.
- Returns
- pointer on the class or nullptr.
Reimplemented from exml::internal::Node.
§ toAttribute() [2/2]
|
inlineoverridevirtual |
Cast the element in a Attribute if it is possible.
- Returns
- CONST pointer on the class or nullptr.
Reimplemented from exml::internal::Node.
Member Data Documentation
§ m_name
|
protected |
Name of the attribute.
The documentation for this class was generated from the following file:
- framework/atria-soft/exml/exml/internal/Attribute.hpp