Value.hpp
Go to the documentation of this file.
static bool isWhiteChar(char32_t _val)
check if the current element is white or not : '\t' '\n' '\r' ' '
might be an error ...
might be an error ...
virtual void iMachineGenerate(std::string &_data) const =0
generate a string with the tree of the json (not human readable ==> for computer transfer) ...
the element "..."
virtual bool iParse(const std::string &_data, size_t &_pos, ejson::FilePos &_filePos, ejson::internal::Document &_doc)=0
parse the Current node [pure VIRUAL]
int32_t countWhiteChar(const std::string &_data, size_t _pos, ejson::FilePos &_filePos) const
count the number of white char in the string from the specify position (stop at the first element tha...
virtual bool iGenerate(std::string &_data, size_t _indent) const =0
generate a string with the tree of the json
enum ejson::valueType m_type
Type of the element.
Definition: Value.hpp:44
const char32_t Null
bool checkString(char32_t _val) const
check if an name (for object named) (not : !"#$%&'()*+,/;<=>?@[]^`{|}~ \n\t\r).
void addIndent(std::string &_data, int32_t _indent) const
add indentation of the string input.
bool checkNumber(char32_t _val) const
check if an number -+.0123456789e).
virtual bool transfertIn(ememory::SharedPtr< ejson::internal::Value > _obj)
Tranfert all element in the element set in parameter.
void drawElementParsed(char32_t _val, const ejson::FilePos &_filePos) const
Display the cuurent element that is curently parse.
virtual ememory::SharedPtr< ejson::internal::Value > clone() const
Copy the curent node and all the child in the curent one.