|  | COSMOS core
    1.0.2 (beta)
    Comprehensive Open-architecture Solution for Mission Operations Systems | 
Port 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 | |
| PORT_TYPE | type = PORT_TYPE_NONE | 
| Type of I/O as listed in PORT_TYPE.  More... | |
| char | name [COSMOS_MAX_DATA+1] = "" | 
Port structure.
Contains information about I/O ports available to devices. The allstruc::portidx entry in each device structure indicates which of these ports a device will use.
| 
 | 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 | 
| PORT_TYPE portstruc::type = PORT_TYPE_NONE | 
Type of I/O as listed in PORT_TYPE.
| char portstruc::name[COSMOS_MAX_DATA+1] = "" | 
Name information for port. !! Do not make this string