#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
double utc
Master time for location, in Modified Julian Day.
Definition: convertdef.h:879
attstruc att
attstruc for this time.
Definition: convertdef.h:883
posstruc pos
posstruc for this time.
Definition: convertdef.h:881
void locstruc::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
907 if(!parsed[
"utc"].is_null())
utc = parsed[
"utc"].number_value();
911 cerr<<
"ERROR = "<<error<<endl;
Definition: json11.hpp:79
double utc
Master time for location, in Modified Julian Day.
Definition: convertdef.h:879
void dump(std::string &out) const
attstruc att
attstruc for this time.
Definition: convertdef.h:883
static Json parse(const std::string &in, std::string &err, JsonParse strategy=JsonParse::STANDARD)
void from_json(const string &js)
Set class contents from JSON string.
Definition: convertdef.h:790
void from_json(const string &js)
Set class contents from JSON string.
Definition: convertdef.h:855
posstruc pos
posstruc for this time.
Definition: convertdef.h:881
double locstruc::utc = 0. |
Master time for location, in Modified Julian Day.
The documentation for this struct was generated from the following file: