56 virtual ~Value() =
default;
203 std::ostream& operator <<(std::ostream& _os,
const ejson::Value& _obj);
ememory::SharedPtr< ejson::internal::Value > m_data
internal reference on a Value
Definition: Value.hpp:35
bool isString() const
check if the node is a ejson::String
bool isBoolean() const
check if the node is a ejson::Boolean
ejson::Number toNumber()
Cast the element in a Number if it is possible.
enum ejson::valueType getType() const
Get Value type.
std::string generateHumanString() const
generate a string that contain the created JSON
std::string generateMachineString() const
generate a string that contain the created JSON
virtual void clear()
clear the Node
ejson namespace containing all function for JSON interpretor
Definition: Array.hpp:12
ejson Boolean interface: true/false.
Definition: Boolean.hpp:15
ejson::Array toArray()
Cast the element in a Array if it is possible.
ejson String interface.
Definition: String.hpp:15
bool isObject() const
check if the node is a ejson::Object
ejson Object interface { ... }.
Definition: Object.hpp:18
Value()
basic element of a xml structure
Definition: Value.hpp:55
bool isNumber() const
check if the node is a ejson::Number
ejson::Boolean toBoolean()
Cast the element in a Boolean if it is possible.
ejson Array interface [ ... ].
Definition: Array.hpp:16
ejson Number interface.
Definition: Number.hpp:15
ejson::Null toNull()
Cast the element in a Null if it is possible.
valueType
Type of the JSON elements.
Definition: valueType.hpp:14
void display() const
Display the Document on console.
ejson::Object toObject()
Cast the element in a Object if it is possible.
virtual ememory::SharedPtr< ejson::internal::Value > clone() const
Copy the curent node and all the child in the curent one.
bool isNull() const
check if the node is a ejson::Null
Basic main object of all json elements.
Definition: Value.hpp:31
ejson Null interface: 'null'.
Definition: Null.hpp:15
bool isArray() const
check if the node is a ejson::Array
ejson Document interface (acces with the file and stream).
Definition: Document.hpp:19
bool isDocument() const
check if the node is a ejson::Document
virtual ~Value()
Virtualize destructor.
virtual bool transfertIn(ememory::SharedPtr< ejson::internal::Value > _obj)
Tranfert all element in the element set in parameter.
bool exist() const
Check if the element exit.
ejson::String toString()
Cast the element in a String if it is possible.
ejson::Value empty()
create an empty Value (that does not exist ...
ejson::Document toDocument()
Cast the element in a Document if it is possible.