10Duke Enterprise C++ Client
|
#include <JSONBuilder.h>
NOTE: This class is for now INTERNAL USE ONLY.
Might open up later once the interface turns out satisfactory NOTE: This is not all-around implementation, only methods required by code implemented.
Public Member Functions | |
JSONBuilder (bool pretty=true) | |
Constructs new instance. | |
JSONArrayBuilder | startArray (bool pretty=true) |
Starts building array. | |
JSONObjectBuilder | startObject (bool pretty=true) |
Starts building object. | |
JSONBuilder & | array (const JSONArrayBuilder &a) |
Adds array to document. | |
JSONBuilder & | object (const JSONObjectBuilder &o) |
Adds object to document. | |
std::string | build () |
Builds the json. | |
|
explicit |
Constructs new instance.
pretty | - |
xdjson::JSONBuilder & tenduke::json::JSONBuilder::array | ( | const JSONArrayBuilder & | a | ) |
Adds array to document.
a | - |
std::string tenduke::json::JSONBuilder::build | ( | ) |
Builds the json.
xdjson::JSONBuilder & tenduke::json::JSONBuilder::object | ( | const JSONObjectBuilder & | o | ) |
Adds object to document.
o | - |
xdjson::JSONArrayBuilder tenduke::json::JSONBuilder::startArray | ( | bool | pretty = true | ) |
Starts building array.
pretty | - |
xdjson::JSONObjectBuilder tenduke::json::JSONBuilder::startObject | ( | bool | pretty = true | ) |
Starts building object.
pretty | - |