Null.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <etk/types.hpp>
10 
11 namespace ejson {
12  namespace internal {
16  class Null : public ejson::internal::Value {
17  protected:
21  Null();
22  public:
28  public:
29  bool iParse(const std::string& _data, size_t& _pos, ejson::FilePos& _filePos, ejson::internal::Document& _doc) override;
30  bool iGenerate(std::string& _data, size_t _indent) const override;
31  void iMachineGenerate(std::string& _data) const override;
34  };
35  }
36 }
37 
38 
39 
void iMachineGenerate(std::string &_data) const override
generate a string with the tree of the json (not human readable ==> for computer transfer) ...
bool iGenerate(std::string &_data, size_t _indent) const override
generate a string with the tree of the json
Null()
basic element of a xml structure
ejson Null internal data implementation.
Definition: Null.hpp:16
the element "..."
ejson namespace containing all function for JSON interpretor
Definition: Array.hpp:12
Position in the file of the original data.
Definition: FilePos.hpp:14
ejson Document internal data implementation.
Definition: Document.hpp:20
static ememory::SharedPtr< Null > create()
Create factory on the ejson::internal::Null.
bool transfertIn(ememory::SharedPtr< ejson::internal::Value > _obj) override
Tranfert all element in the element set in parameter.
ememory::SharedPtr< ejson::internal::Value > clone() const override
Copy the curent node and all the child in the curent one.
Basic main object of all json data.
Definition: Value.hpp:42
bool iParse(const std::string &_data, size_t &_pos, ejson::FilePos &_filePos, ejson::internal::Document &_doc) override
parse the Current node [pure VIRUAL]