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

Switch Structure definition. More...

#include <jsondef.h>

Collaboration diagram for swchstruc:

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

Switch Structure definition.

This structure holds the description of a switches.

Member Function Documentation

json11::Json swchstruc::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
2885 { return json11::Json::object {}; }
std::map< std::string, Json > object
Definition: json11.hpp:88
void swchstruc::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
2893 {};

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