#include <JsonBuilder.hpp>
class handling the construction in pieces of a JSON map
◆ addComponent()
bool helics::fileops::JsonMapBuilder::addComponent |
( |
const std::string & |
info, |
|
|
int |
index |
|
) |
| |
|
noexcept |
add a component value for a previously generated location
- Parameters
-
info | the string to use for information |
index | the index of the place holder |
- Returns
- true if successfully added
◆ clearComponents() [1/2]
bool helics::fileops::JsonMapBuilder::clearComponents |
( |
| ) |
|
clear all remaining components return true if the builder can be generated
◆ clearComponents() [2/2]
bool helics::fileops::JsonMapBuilder::clearComponents |
( |
int32_t |
code | ) |
|
clear components with a specific code return true if the map is now complete
◆ generate()
std::string helics::fileops::JsonMapBuilder::generate |
( |
| ) |
|
◆ generatePlaceHolder()
int helics::fileops::JsonMapBuilder::generatePlaceHolder |
( |
const std::string & |
location, |
|
|
int32_t |
code |
|
) |
| |
generate a new location to fill in later
- Returns
- the index value of the location for use in addComponent
◆ getJValue()
Json::Value & helics::fileops::JsonMapBuilder::getJValue |
( |
| ) |
|
get the underlying json object
◆ isCompleted()
bool helics::fileops::JsonMapBuilder::isCompleted |
( |
| ) |
const |
check if the map has completed
◆ reset()
void helics::fileops::JsonMapBuilder::reset |
( |
| ) |
|
◆ setCounterCode()
void helics::fileops::JsonMapBuilder::setCounterCode |
( |
int |
code | ) |
|
|
inline |
set the counter code value
The documentation for this class was generated from the following files: