class: exml::Declaration
Description:
Constructor and Destructor:
+ Declaration (void );
+ Declaration (const std::string & _name);
+ virtual ~Declaration (void );
Synopsis:
+ virtual enum nodeType getType (void ) const;
+ virtual bool iGenerate (std::string & _data,
int32_t _indent) const;
+ virtual bool iParse (const std::string & _data,
int32_t & _pos,
bool _caseSensitive,
exml::filePos & _filePos,
exml::Document & _doc);
+ virtual exml::Declaration* toDeclaration (void );
+ virtual const exml::Declaration* toDeclaration (void ) const;
Object Hierarchy:
+exml::Node
+--> +exml::AttributeList
+--> exml::Declaration
+--> exml::DeclarationXML
Detail:
Declaration
+ Declaration (void );
Constructor
Declaration
+ Declaration (const std::string & _name);
Constructor
Parameter [input]: _name name of the declaration (xml, xml:xxxx ...)
~Declaration
+ virtual ~Declaration (void );
Destructor
getType
+ virtual enum nodeType getType (void ) const;
get the node type.
Return: the type of the Node.
iGenerate
+ virtual bool iGenerate (std::string & _data,
int32_t _indent) const;
generate a string with the tree of the xml
Parameter [input] [output]: _data string where to add the elements
Parameter [input]: current indentation of the file
Return: false if an error occured.
iParse
+ virtual bool iParse (const std::string & _data,
int32_t & _pos,
bool _caseSensitive,
exml::filePos & _filePos,
exml::Document & _doc);
parse the Current node [pure VIRUAL]
Parameter [input]: _data data string to parse.
Parameter [input] [output]: _pos position in the string to start parse, return the position end of parsing.
Parameter [input]: _caseSensitive Request a parsion of element that is not case sensitive (all element is in low case)
Parameter [input] [output]: file parsing position (line x col x)
Return: false if an error occured.
toDeclaration
+ virtual exml::Declaration* toDeclaration (void );
Cast the element in a Declaration if it is possible.
Return: pointer on the class or NULL.
toDeclaration
+ virtual const exml::Declaration* toDeclaration (void ) const;
Cast the element in a Declaration if it is possible.
Return: pointer on the class or NULL.
+exml::Node
+--> +exml::AttributeList
+--> exml::Declaration
+--> exml::DeclarationXML
Detail:
Declaration
+ Declaration (void );Constructor
Declaration
+ Declaration (const std::string & _name);Constructor
Parameter [input]: | _name | name of the declaration (xml, xml:xxxx ...) |
~Declaration
+ virtual ~Declaration (void );Destructor
getType
+ virtual enum nodeType getType (void ) const;get the node type.
Return: | the type of the Node. |
iGenerate
+ virtual bool iGenerate (std::string & _data,generate a string with the tree of the xml
int32_t _indent) const;
Parameter [input] [output]: | _data | string where to add the elements | Parameter [input]: | current | indentation of the file |
Return: | false if an error occured. |
iParse
+ virtual bool iParse (const std::string & _data,parse the Current node [pure VIRUAL]
int32_t & _pos,
bool _caseSensitive,
exml::filePos & _filePos,
exml::Document & _doc);
Parameter [input]: | _data | data string to parse. | Parameter [input] [output]: | _pos | position in the string to start parse, return the position end of parsing. | Parameter [input]: | _caseSensitive | Request a parsion of element that is not case sensitive (all element is in low case) | Parameter [input] [output]: | file | parsing position (line x col x) |
Return: | false if an error occured. |
toDeclaration
+ virtual exml::Declaration* toDeclaration (void );Cast the element in a Declaration if it is possible.
Return: | pointer on the class or NULL. |
toDeclaration
+ virtual const exml::Declaration* toDeclaration (void ) const;Cast the element in a Declaration if it is possible.
Return: | pointer on the class or NULL. |