![]() |
helics
2.8.1
|
#include <JsonBuilder.hpp>
Public Member Functions | |
| Json::Value & | getJValue () |
| void | addElement (const std::string &path, const std::string &value) |
| void | addElement (const std::string &path, double value) |
| void | addElement (const std::string &path, const std::vector< double > &value) |
| std::string | generate () |
| void | reset () |
class to help with the generation of JSON
| void helics::JsonBuilder::addElement | ( | const std::string & | path, |
| const std::string & | value | ||
| ) |
add a string element on a specific path
add an element on a specific path
References getJValue().
Referenced by helics::ValueFederateManager::localQuery().
| void helics::JsonBuilder::addElement | ( | const std::string & | path, |
| const std::vector< double > & | value | ||
| ) |
add a vector element on a specific path
References getJValue().
| void helics::JsonBuilder::addElement | ( | const std::string & | path, |
| double | value | ||
| ) |
add a double element on a specific path
References getJValue().
| std::string helics::JsonBuilder::generate | ( | ) |
generate the JSON value
References generateJsonString().
Referenced by helics::ValueFederateManager::localQuery().
| Json::Value & helics::JsonBuilder::getJValue | ( | ) |
get the underlying json object
Referenced by addElement().
| void helics::JsonBuilder::reset | ( | ) |
reset the builder
1.8.17