#include <jsondef.h>
Convert class contents to JSON object.
Returns a json11 JSON object of the class
- Returns
- A json11 JSON object containing every member variable within the class
std::map< std::string, Json > object
Definition: json11.hpp:88
string cpu
Definition: jsondef.h:1210
string node
Definition: jsondef.h:1208
string name
Definition: jsondef.h:1207
string tool
Definition: jsondef.h:1209
void userstruc::from_json |
( |
const string & |
s | ) |
|
|
inline |
Set class contents from JSON string.
Parses the provided JSON-formatted string and sets the class data. String should be formatted like the string returned from to_json()
- Parameters
-
s | JSON-formatted string to set class contents to |
- Returns
- n/a
1240 cerr<<
"ERROR: <"<<error<<
">"<<endl;
Definition: json11.hpp:79
string cpu
Definition: jsondef.h:1210
string node
Definition: jsondef.h:1208
static Json parse(const std::string &in, std::string &err, JsonParse strategy=JsonParse::STANDARD)
const std::string & string_value() const
Definition: json11.cpp:283
string name
Definition: jsondef.h:1207
string tool
Definition: jsondef.h:1209
string userstruc::name = "" |
string userstruc::node = "" |
string userstruc::tool = "" |
string userstruc::cpu = "" |
The documentation for this struct was generated from the following file: