class: ejson::String


Description:



Constructor and Destructor:

+                              String      (const std::string & _value);
+ virtual ~String (void );

Synopsis:

#         std::string          m_value;
+ void set (const std::string & _value);
+ const std::string & get (void ) const;
+ virtual bool iParse (const std::string & _data,
size_t & _pos,
ejson::filePos & _filePos,
ejson::Document & _doc);
+ virtual bool iGenerate (std::string & _data,
size_t _indent) const;
+ virtual enum nodeType getType (void ) const;
+ virtual ejson::String* toString (void );
+ virtual const ejson::String* toString (void ) const;
+ virtual bool transfertIn (ejson::Value* _obj);
+ virtual ejson::Value* duplicate (void ) const;

Object Hierarchy:

+ejson::Value
+--> ejson::String

Detail:

String

+  String (const std::string & _value);
basic element of a xml structure


~String

+ virtual  ~String (void );
destructor


m_value

# std::string m_value;
value of the node (for element this is the name, for text it is the inside text ...)


set

+ void set (const std::string & _value);
set the value of the node.


get

+ const std::string & get (void ) const;
get the current element Value.


iParse

+ virtual bool iParse (const std::string & _data,
size_t & _pos,
ejson::filePos & _filePos,
ejson::Document & _doc);
parse the Current node [pure VIRUAL]


iGenerate

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


getType

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


toString

+ virtual ejson::String* toString (void );
Cast the element in a String if it is possible.


toString

+ virtual const ejson::String* toString (void ) const;
Cast the element in a String if it is possible.


transfertIn

+ virtual bool transfertIn (ejson::Value* _obj);
Tranfert all element in the element set in parameter
Note: all element is remove from the curent element.


duplicate

+ virtual ejson::Value* duplicate (void ) const;
Copy the curent node and all the child in the curent one.