class: ejson::Number


Description:



Constructor and Destructor:

+                              Number      (double _value);
+ virtual ~Number (void );

Synopsis:

#         double               m_value;
+ void set (double _value);
+ double get (void ) const;
+ int32_t getInt32 (void ) const;
+ int64_t getInt64 (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::Number* toNumber (void );
+ virtual const ejson::Number* toNumber (void ) const;
+ virtual bool transfertIn (ejson::Value* _obj);
+ virtual ejson::Value* duplicate (void ) const;

Object Hierarchy:

+ejson::Value
+--> ejson::Number

Detail:

Number

+  Number (double _value);
basic element of a xml structure


~Number

+ virtual  ~Number (void );
destructor


m_value

# double m_value;
value of the node


set

+ void set (double _value);
set the value of the node.


get

+ double get (void ) const;
Get the current element Value.


getInt32

+ int32_t getInt32 (void ) const;
Get the current element Value.


getInt64

+ int64_t getInt64 (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.


toNumber

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


toNumber

+ virtual const ejson::Number* toNumber (void ) const;
Cast the element in a Number 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.