#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
qatt geoc
Definition: convertdef.h:828
qatt lvlh
Definition: convertdef.h:827
qatt selc
Definition: convertdef.h:829
qatt icrf
Definition: convertdef.h:830
qatt topo
Definition: convertdef.h:826
extraatt extra
Definition: convertdef.h:831
double utc
Definition: convertdef.h:825
void attstruc::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
859 if(!parsed[
"utc"].is_null())
utc = parsed[
"utc"].number_value();
867 cerr<<
"ERROR = "<<error<<endl;
qatt geoc
Definition: convertdef.h:828
Definition: json11.hpp:79
qatt lvlh
Definition: convertdef.h:827
void dump(std::string &out) const
static Json parse(const std::string &in, std::string &err, JsonParse strategy=JsonParse::STANDARD)
qatt selc
Definition: convertdef.h:829
void from_json(const string &js)
Set class contents from JSON string.
Definition: convertdef.h:507
qatt icrf
Definition: convertdef.h:830
qatt topo
Definition: convertdef.h:826
extraatt extra
Definition: convertdef.h:831
double utc
Definition: convertdef.h:825
double attstruc::utc = 0. |
The documentation for this struct was generated from the following file: