17 #ifndef __ejsonbuilder_h_included 18 #define __ejsonbuilder_h_included 75 template<ContainerType T>
108 Void
push(
const UInt value);
123 cpStr
toString(Bool pretty =
false);
128 std::unique_ptr<Impl> m_impl;
139 #endif // #ifndef __ejsonbuilder_h_included cpStr toString(Bool pretty=false)
Returns a string representation of the json objects.
Definition: ejsonbuilder.cpp:209
Encapsulates and extends a std::string object.
A helper class which pushes/pops items on the builder's object stack based on its lifetime...
Definition: ejsonbuilder.h:53
ContainerType
Enumeration for JSON containers types.
Definition: ejsonbuilder.h:42
Void pop(const EString &name="")
Pops the top object off the stack.
Definition: ejsonbuilder.cpp:204
Void push(ContainerType type)
Pushes a container type object onto the stack.
Definition: ejsonbuilder.cpp:189
EJsonBuilder()
Constructor. Initializes the document object used to contain all appended JSON objects.
Definition: ejsonbuilder.cpp:150
A helper class which pushes/pops items on the builder's object stack based on its lifetime...
Definition: ejsonbuilder.h:76
an object type with name/values {}
~EJsonBuilder()
Destructor.
Defines base class for exceptions and declaration helper macros.
A class used to build JSON strings. It maintains a stack of JSON objects which allows you to build a ...
Definition: ejsonbuilder.h:30
#define DECLARE_ERROR(__e__)
Declares exception class derived from EError with no constructor parameters.
Definition: eerror.h:53
String class.
Definition: estring.h:31