class: exml::Text
Description:
Constructor and Destructor:
+ Text (void );
+ Text (const std::string & _data);
+ virtual ~Text (void );
Synopsis:
+ int32_t countLines (void ) const;
+ virtual enum nodeType getType (void ) const;
+ virtual bool iParse (const std::string & _data,
int32_t & _pos,
bool _caseSensitive,
exml::filePos & _filePos,
exml::Document & _doc);
+ virtual bool iGenerate (std::string & _data,
int32_t _indent) const;
+ virtual exml::Text* toText (void );
+ virtual const exml::Text* toText (void ) const;
Object Hierarchy:
+exml::Node
+--> exml::Text
+--> exml::TextCDATA
Detail:
Text
+ Text (void );
Constructor
Text
+ Text (const std::string & _data);
Constructor
Parameter [input]: _data String data of the current Text
~Text
+ virtual ~Text (void );
Destructor
countLines
+ int32_t countLines (void ) const;
count the number of line in the current text
Return: The number of lines
getType
+ virtual enum nodeType getType (void ) const;
get the node type.
Return: the type of the Node.
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.
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.
toText
+ virtual exml::Text* toText (void );
Cast the element in a Text if it is possible.
Return: pointer on the class or NULL.
toText
+ virtual const exml::Text* toText (void ) const;
Cast the element in a Text if it is possible.
Return: pointer on the class or NULL.
+exml::Node
+--> exml::Text
+--> exml::TextCDATA
Detail:
Text
+ Text (void );Constructor
Text
+ Text (const std::string & _data);Constructor
Parameter [input]: | _data | String data of the current Text |
~Text
+ virtual ~Text (void );Destructor
countLines
+ int32_t countLines (void ) const;count the number of line in the current text
Return: | The number of lines |
getType
+ virtual enum nodeType getType (void ) const;get the node type.
Return: | the type of the Node. |
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. |
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. |
toText
+ virtual exml::Text* toText (void );Cast the element in a Text if it is possible.
Return: | pointer on the class or NULL. |
toText
+ virtual const exml::Text* toText (void ) const;Cast the element in a Text if it is possible.
Return: | pointer on the class or NULL. |