![]() |
helics
2.8.1
|
#include <JsonBuilder.hpp>
Public Member Functions | |
JsonMapBuilder (JsonMapBuilder &&map)=default | |
JsonMapBuilder & | operator= (JsonMapBuilder &&map)=default |
Json::Value & | getJValue () |
bool | isCompleted () const |
bool | isActive () const |
bool | addComponent (const std::string &info, int index) noexcept |
int | generatePlaceHolder (const std::string &location, int32_t code) |
bool | clearComponents (int32_t code) |
bool | clearComponents () |
std::string | generate () |
void | reset () |
void | setCounterCode (int code) |
int | getCounterCode () const |
class handling the construction in pieces of a JSON map
|
noexcept |
add a component value for a previously generated location
info | the string to use for information |
index | the index of the place holder |
References loadJsonStr().
bool helics::JsonMapBuilder::clearComponents | ( | ) |
clear all remaining components return true if the builder can be generated
bool helics::JsonMapBuilder::clearComponents | ( | int32_t | code | ) |
clear components with a specific code return true if the map is now complete
std::string helics::JsonMapBuilder::generate | ( | ) |
generate the JSON value
References generateJsonString().
int helics::JsonMapBuilder::generatePlaceHolder | ( | const std::string & | location, |
int32_t | code | ||
) |
generate a new location to fill in later
Json::Value & helics::JsonMapBuilder::getJValue | ( | ) |
get the underlying json object
bool helics::JsonMapBuilder::isCompleted | ( | ) | const |
check if the map has completed
void helics::JsonMapBuilder::reset | ( | ) |
reset the builder
|
inline |
set the counter code value