#include <convertdef.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
avector a
Definition: convertdef.h:370
avector v
Definition: convertdef.h:369
avector s
Definition: convertdef.h:368
double utc
Definition: convertdef.h:367
void aattstruc::from_json |
( |
const string & |
js | ) |
|
|
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
394 if(!parsed[
"utc"].is_null())
utc = parsed[
"utc"].number_value();
399 cerr<<
"ERROR = "<<error<<endl;
Definition: json11.hpp:79
avector a
Definition: convertdef.h:370
avector v
Definition: convertdef.h:369
void from_json(const string &s)
Set class contents from JSON string.
Definition: vector.h:311
void dump(std::string &out) const
static Json parse(const std::string &in, std::string &err, JsonParse strategy=JsonParse::STANDARD)
avector s
Definition: convertdef.h:368
double utc
Definition: convertdef.h:367
double aattstruc::utc = 0. |
The documentation for this struct was generated from the following file: