![]() |
COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
#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 | |
| string | name = "" |
| string | node = "" |
| string | state = "" |
| string | utcstart = "" |
| string | vertexs = "" |
| string | faces = "" |
| string | pieces = "" |
| string | devgen = "" |
| string | devspec = "" |
| string | ports = "" |
| string | targets = "" |
JSON Node description strings Structure containing the JSON strings that describe the various aspects of a node. These can be loaded from disk, or transferred from another agent.
|
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 |
| string jsonnode::name = "" |
| string jsonnode::node = "" |
| string jsonnode::state = "" |
| string jsonnode::utcstart = "" |
| string jsonnode::vertexs = "" |
| string jsonnode::faces = "" |
| string jsonnode::pieces = "" |
| string jsonnode::devgen = "" |
| string jsonnode::devspec = "" |
| string jsonnode::ports = "" |
| string jsonnode::targets = "" |