COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
Target structure. More...
#include <jsondef.h>
Public Member Functions | |
json11::Json | to_json () const |
Convert class contents to JSON object. More... | |
void | from_json (const string &s) |
Set class contents from JSON string. More... | |
Public Attributes | |
double | utc = 0. |
char | name [40+1] = "" |
uint16_t | type = 0 |
float | azfrom = 0.f |
float | elfrom = 0.f |
float | azto = 0.f |
float | elto = 0.f |
double | range = 0. |
double | close = 0. |
float | min = 0.f |
locstruc | loc |
Target structure.
Contains entries unique to each Target
|
inline |
|
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()
s | JSON-formatted string to set class contents to |
double targetstruc::utc = 0. |
char targetstruc::name[40+1] = "" |
uint16_t targetstruc::type = 0 |
float targetstruc::azfrom = 0.f |
float targetstruc::elfrom = 0.f |
float targetstruc::azto = 0.f |
float targetstruc::elto = 0.f |
double targetstruc::range = 0. |
double targetstruc::close = 0. |
float targetstruc::min = 0.f |
locstruc targetstruc::loc |