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' ' '
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...
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]
void addIndent(std::string &_data, int32_t _indent) const
add indentation of the string input.
void drawElementParsed(char32_t _val, const ejson::FilePos &_filePos) const
Display the cuurent element that is curently parse.
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
virtual ememory::SharedPtr< ejson::internal::Value > clone() const
Copy the curent node and all the child in the curent one.
bool checkString(char32_t _val) const
check if an name (for object named) (not : !"#$%&'()*+,/;<=>?@[]^`{|}~ \n\t\r).
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.