class: ejson::Boolean
Description:
Constructor and Destructor:
+ Boolean (bool _value);
+ virtual ~Boolean (void );
Synopsis:
# bool m_value;
+ void set (bool _value);
+ bool 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::Boolean* toBoolean (void );
+ virtual const ejson::Boolean* toBoolean (void ) const;
+ virtual bool transfertIn (ejson::Value* _obj);
+ virtual ejson::Value* duplicate (void ) const;
Object Hierarchy:
+ejson::Value
+--> ejson::Boolean
Detail:
Boolean
+ Boolean (bool _value);
basic element of a xml structure
~Boolean
+ virtual ~Boolean (void );
destructor
m_value
# bool m_value;
value of the node
set
+ void set (bool _value);
set the value of the node.
Parameter [input]: _value New value of the node.
get
+ bool get (void ) const;
get the current element Value.
Return: the reference of the string value.
iParse
+ virtual bool iParse (const std::string & _data,
size_t & _pos,
ejson::filePos & _filePos,
ejson::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,
size_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.
getType
+ virtual enum nodeType getType (void ) const;
get the node type.
Return: the type of the Node.
toBoolean
+ virtual ejson::Boolean* toBoolean (void );
Cast the element in a Boolean if it is possible.
Return: pointer on the class or NULL.
toBoolean
+ virtual const ejson::Boolean* toBoolean (void ) const;
Cast the element in a Boolean if it is possible.
Return: pointer on the class or NULL.
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.
Parameter [input] [output]: _obj move all parameter in the selected element
Return: true if transfer is done corectly
duplicate
+ virtual ejson::Value* duplicate (void ) const;
Copy the curent node and all the child in the curent one.
Return: NULL in an error occured, the pointer on the element otherwise
+ejson::Value
+--> ejson::Boolean
Detail:
Boolean
+ Boolean (bool _value);basic element of a xml structure
~Boolean
+ virtual ~Boolean (void );destructor
m_value
# bool m_value;value of the node
set
+ void set (bool _value);set the value of the node.
Parameter [input]: | _value | New value of the node. |
get
+ bool get (void ) const;get the current element Value.
Return: | the reference of the string value. |
iParse
+ virtual bool iParse (const std::string & _data,parse the Current node [pure VIRUAL]
size_t & _pos,
ejson::filePos & _filePos,
ejson::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
size_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. |
getType
+ virtual enum nodeType getType (void ) const;get the node type.
Return: | the type of the Node. |
toBoolean
+ virtual ejson::Boolean* toBoolean (void );Cast the element in a Boolean if it is possible.
Return: | pointer on the class or NULL. |
toBoolean
+ virtual const ejson::Boolean* toBoolean (void ) const;Cast the element in a Boolean if it is possible.
Return: | pointer on the class or NULL. |
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.
Parameter [input] [output]: | _obj | move all parameter in the selected element |
Return: | true if transfer is done corectly |
duplicate
+ virtual ejson::Value* duplicate (void ) const;Copy the curent node and all the child in the curent one.
Return: | NULL in an error occured, the pointer on the element otherwise |