COSMOS core  1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
tncstruc Struct Reference

TNC Structure definition. More...

#include <jsondef.h>

Collaboration diagram for tncstruc:

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...
 

Detailed Description

TNC Structure definition.

This structure holds the description of a TNC.

Member Function Documentation

json11::Json tncstruc::to_json ( ) const
inline

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
3239 { return json11::Json::object {}; }
std::map< std::string, Json > object
Definition: json11.hpp:88
void tncstruc::from_json ( const string &  s)
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
sJSON-formatted string to set class contents to
Returns
n/a
3247 {};

The documentation for this struct was generated from the following file: