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


~Text

+ virtual  ~Text (void );
Destructor


countLines

+ int32_t countLines (void ) const;
count the number of line in the current text


getType

+ virtual enum nodeType getType (void ) const;
get the node type.


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]


iGenerate

+ virtual bool iGenerate (std::string & _data,
int32_t _indent) const;
generate a string with the tree of the xml


toText

+ virtual exml::Text* toText (void );
Cast the element in a Text if it is possible.


toText

+ virtual const exml::Text* toText (void ) const;
Cast the element in a Text if it is possible.