helics
3.5.2
|
#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::fileops::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::fileops::JsonBuilder::addElement | ( | const std::string & | path, |
const std::vector< double > & | value | ||
) |
add a vector element on a specific path
References getJValue().
void helics::fileops::JsonBuilder::addElement | ( | const std::string & | path, |
double | value | ||
) |
add a double element on a specific path
References getJValue().
std::string helics::fileops::JsonBuilder::generate | ( | ) |
generate the JSON value
Referenced by helics::ValueFederateManager::localQuery().
Json::Value & helics::fileops::JsonBuilder::getJValue | ( | ) |
get the underlying json object
Referenced by addElement().
void helics::fileops::JsonBuilder::reset | ( | ) |
reset the builder