WASimCommander::Enums namespace. Contains all enum definitions for the base API. More...
Enumerations | |
| enum class | CommandId : uint8_t { None = 0 , Ack , Nak , Ping , Connect , Disconnect , List , Lookup , Get , GetCreate , Set , SetCreate , Exec , Register , Transmit , Subscribe , Update , SendKey , Log } |
Commands for client-server interaction. Both sides can send commands via dedicated channels by writing a Command data structure. The fields uData, sData and fData referenced below refer to Command::uData, Command::sData and Command::fData respectively. More... | |
| enum class | RequestType : uint8_t { None = 0 , Named , Calculated } |
| Types of things to request or set. More... | |
| enum class | CalcResultType : uint8_t { None = 0 , Double , Integer , String , Formatted } |
| The type of result that calculator code is expected to produce. More... | |
| enum class | UpdatePeriod : uint8_t { Never = 0 , Once , Tick , Millisecond } |
| How often to check for updated request values. More... | |
| enum class | LookupItemType : uint8_t { None , LocalVariable , SimulatorVariable , TokenVariable , UnitType , KeyEventId , DataRequest , RegisteredEvent } |
| Types of things to look up or list. More... | |
| enum class | LogLevel : uint8_t { None = 0 , Critical , Error , Warning , Info , Debug , Trace } |
| Logging levels. More... | |
| enum class | LogFacility : uint8_t { None = 0x00 , Console = 0x01 , File = 0x02 , Remote = 0x04 , All = Console | File | Remote } |
| Logging destination type. More... | |
Variables | |
Enumeration name strings | |
| static const std::vector< const char * > | CommandIdNames |
| Enums::CommandId enum names. | |
| static const std::vector< const char * > | RequestTypeNames = { "None", "Named", "Calculated" } |
| Enums::RequestType enum names. | |
| static const std::vector< const char * > | CalcResultTypeNames = { "None", "Double", "Integer", "String", "Formatted" } |
| Enums::CalcResultType enum names. | |
| static const std::vector< const char * > | UpdatePeriodNames = { "Never", "Once", "Tick", "Millisecond" } |
| Enums::UpdatePeriod enum names. | |
| static const std::vector< const char * > | LookupItemTypeNames |
| Enums::LookupItemType enum names. | |
| static const std::vector< const char * > | LogLevelNames = { "None", "Critical", "Error", "Warning", "Info", "Debug", "Trace" } |
| Enums::LogLevel enum names. | |
| static const std::vector< const char * > | LogFacilityNames |
| Enums::LogFacility enum names. | |
WASimCommander::Enums namespace. Contains all enum definitions for the base API.
|
strong |
Commands for client-server interaction. Both sides can send commands via dedicated channels by writing a Command data structure. The fields uData, sData and fData referenced below refer to Command::uData, Command::sData and Command::fData respectively.
| Enumerator | |
|---|---|
| None | An invalid command. |
| Ack | Last command acknowledge. |
| Nak | Last command failure. |
| Ping | Query for a response from remote server/client. The remote should respond with an |
| Connect | Reconnect a previously-established client (same as "WASimCommander.Connect" custom event). This CommandId is also sent back in an Ack/Nak response after a client connects (or tries to). In this case the |
| Disconnect | Stop data updates for this client. Use the |
| List | Request a listing of items like local variables. |
| Lookup | Get information about an item, such as the ID of a variable or unit name. |
| Get | Get a named variable value with optional unit type. |
| GetCreate | Same as |
| Set | Set a named local variable with optional unit type. |
| SetCreate | Same as |
| Exec | Run calculator code contained in |
| Register | Register a named Exec-type event. |
| Transmit | Trigger an event previously registered with the |
| Subscribe | Sending this command to the server with a |
| Update | Trigger data update of a previously-added Data Request, with the request ID in |
| SendKey |
|
| Log | Set severity level for logging to the Client's |
Definition at line 38 of file enums_impl.h.
|
strong |
Types of things to request or set.
| Enumerator | |
|---|---|
| None | Use to remove a previously-added request. |
| Named | A named variable. |
| Calculated | Calculator code. |
Definition at line 96 of file enums_impl.h.
|
strong |
The type of result that calculator code is expected to produce.
Definition at line 108 of file enums_impl.h.
|
strong |
How often to check for updated request values.
| Enumerator | |
|---|---|
| Never | Suspend all automatic updates, only check value on |
| Once | Update once when DataRequest is added/updated, and then only on |
| Tick | Update as often as possible (see TICK_PERIOD_MS). |
| Millisecond | Update every |
Definition at line 122 of file enums_impl.h.
|
strong |
Types of things to look up or list.
| Enumerator | |
|---|---|
| None | Null type, possible internal use, ignored by server. |
| LocalVariable | LVar ('L') names and IDs. Available for |
| SimulatorVariable | SimVar ('A') names and IDs. Available for |
| TokenVariable | Token Variable ('T'). Available for |
| UnitType | Measurement Unit. Available for |
| KeyEventId | Key Event ID, value of |
| DataRequest | Saved value subscription for current Client, indexed by |
| RegisteredEvent | Saved calculator event for current Client, indexed by |
Definition at line 135 of file enums_impl.h.
|
strong |
Logging levels.
Definition at line 154 of file enums_impl.h.
|
strong |
Logging destination type.
| Enumerator | |
|---|---|
| None | Invalid or default logging facility. For the |
| Console | Console logging, eg. stderr/stdout. |
| File | Log file destination. |
| Remote | Remote destination, eg. network transmission or a callback event. |
Definition at line 170 of file enums_impl.h.
|
static |
Enums::CommandId enum names.
Definition at line 89 of file enums_impl.h.
|
static |
Enums::RequestType enum names.
Definition at line 104 of file enums_impl.h.
|
static |
Enums::CalcResultType enum names.
Definition at line 118 of file enums_impl.h.
|
static |
Enums::UpdatePeriod enum names.
Definition at line 131 of file enums_impl.h.
|
static |
Enums::LookupItemType enum names.
Definition at line 148 of file enums_impl.h.
|
static |
Enums::LogLevel enum names.
Definition at line 166 of file enums_impl.h.
|
static |
Enums::LogFacility enum names.
Definition at line 183 of file enums_impl.h.