Object.hpp
Go to the documentation of this file.
119 bool iParse(const std::string& _data, size_t& _pos, ejson::FilePos& _filePos, ejson::internal::Document& _doc) override;
void iMachineGenerate(std::string &_data) const override
generate a string with the tree of the json (not human readable ==> for computer transfer) ...
the element "..."
bool iGenerate(std::string &_data, size_t _indent) const override
generate a string with the tree of the json
bool iParse(const std::string &_data, size_t &_pos, ejson::FilePos &_filePos, ejson::internal::Document &_doc) override
parse the Current node [pure VIRUAL]
bool transfertIn(ememory::SharedPtr< ejson::internal::Value > _obj) override
Tranfert all element in the element set in parameter.
std::vector< std::string > getKeys() const
Get all the element name (keys).
bool cloneIn(ememory::SharedPtr< ejson::internal::Object > &_obj) const
Clone the current object in an other Object.
etk::Hash< ememory::SharedPtr< ejson::internal::Value > > m_value
value of the node (for element this is the name, for text it is the inside text ...)
Definition: Object.hpp:40
enum ejson::valueType m_type
Type of the element.
Definition: Value.hpp:44
ememory::SharedPtr< ejson::internal::Object > cloneObj() const
Clone the current object.
bool add(const std::string &_name, ememory::SharedPtr< ejson::internal::Value > _value)
add an element in the Object
static ememory::SharedPtr< Object > create()
Create factory on the ejson::internal::Object.
ememory::SharedPtr< ejson::internal::Value > clone() const override
Copy the curent node and all the child in the curent one.
the element { ... }