26#ifndef WSMCMND_ENUM_EXPORT
27 #define WSMCMND_ENUM_EXPORT
28 #define WSMCMND_ENUM_NAMESPACE WASimCommander::Enums
32namespace WSMCMND_ENUM_NAMESPACE
90 "None",
"Ack",
"Nak",
"Ping",
"Connect",
"Disconnect",
"List",
"Lookup",
91 "Get",
"GetCreate",
"Set",
"SetCreate",
"Exec",
"Register",
"Transmit",
92 "Subscribe",
"Update",
"SendKey",
"Log" };
104 static const std::vector<const char *>
RequestTypeNames = {
"None",
"Named",
"Calculated" };
118 static const std::vector<const char *>
CalcResultTypeNames = {
"None",
"Double",
"Integer",
"String",
"Formatted" };
131 static const std::vector<const char *>
UpdatePeriodNames = {
"Never",
"Once",
"Tick",
"Millisecond" };
149 "None",
"LocalVariable",
"SimulatorVariable",
"TokenVariable",
"UnitType",
"KeyEventId",
"DataRequest",
"RegisteredEvent"
166 static const std::vector<const char *>
LogLevelNames = {
"None",
"Critical",
"Error",
"Warning",
"Info",
"Debug",
"Trace" };
178#if defined(DEFINE_ENUM_FLAG_OPERATORS) && !defined(_MANAGED)
179 DEFINE_ENUM_FLAG_OPERATORS(WSMCMND_ENUM_NAMESPACE::LogFacility)
184 "None",
"Console",
"File",
"Console | File",
"Remote",
"Console | Remote",
"File | Remote",
"All"
UpdatePeriod
How often to check for updated request values.
@ Tick
Update as often as possible (see TICK_PERIOD_MS).
@ Never
Suspend all automatic updates, only check value on Enums::CommandId::Update command.
@ Millisecond
Update every interval milliseconds (interval value must be greater than 0 with effective minimum bein...
@ Once
Update once when DataRequest is added/updated, and then only on Update command.
static const std::vector< const char * > LogLevelNames
Enums::LogLevel enum names.
static const std::vector< const char * > CalcResultTypeNames
Enums::CalcResultType enum names.
@ Warning
Possible anomalies which do not necessarily prevent execution.
@ Critical
Events which cause termination.
@ Info
Informational messages about key processes like startup and shutdown.
@ Error
Hard errors preventing function execution.
@ Debug
Verbose debugging information.
@ Trace
Very verbose and frequent debugging data, do not use with "slow" logger outputs.
static const std::vector< const char * > CommandIdNames
Enums::CommandId enum names.
static const std::vector< const char * > UpdatePeriodNames
Enums::UpdatePeriod enum names.
LookupItemType
Types of things to look up or list.
@ TokenVariable
Token Variable ('T'). Available for Lookup command only.
@ SimulatorVariable
SimVar ('A') names and IDs. Available for Lookup command only.
@ LocalVariable
LVar ('L') names and IDs. Available for List and Lookup commands.
@ RegisteredEvent
Saved calculator event for current Client, indexed by eventId and code values. Available for List and...
@ KeyEventId
Key Event ID, value of KEY_* macros from "guauges.h" header. Available for Lookup command only (use e...
@ UnitType
Measurement Unit. Available for Lookup command only.
static const std::vector< const char * > LookupItemTypeNames
Enums::LookupItemType enum names.
CalcResultType
The type of result that calculator code is expected to produce.
@ String
Expect a string type result from execute_calculator_code().
@ Formatted
Execute code using format_calculator_string() function and expect a string result type.
@ Integer
Expect an 32bit signed integer result.
@ Double
Expect a double ("FLOAT64") type result.
static const std::vector< const char * > RequestTypeNames
Enums::RequestType enum names.
CommandId
Commands for client-server interaction. Both sides can send commands via dedicated channels by writin...
@ Update
Trigger data update of a previously-added Data Request, with the request ID in uData....
@ Register
Register a named Exec-type event. uData is a unique event ID, and sData a calculator code string....
@ GetCreate
Same as Get but creates a local 'L' variable if it doesn't already exist (with register_named_variabl...
@ Nak
Last command failure. CommandId of the original command (which failed) is sent in uData....
@ SetCreate
Same as Set but creates a local 'L' variable if it doesn't already exist (with register_named_variabl...
@ Disconnect
Stop data updates for this client. Use the Connect command to resume updates. The server may also spo...
@ Connect
Reconnect a previously-established client (same as "WASimCommander.Connect" custom event)....
@ List
Request a listing of items like local variables. uData should be one of WASimCommander::LookupItemTyp...
@ Set
Set a named local variable with optional unit type. uData is a char of the variable type,...
@ Transmit
Trigger an event previously registered with the Register command. uData should be the event ID from t...
@ Exec
Run calculator code contained in sData with WASimCommander::CalcResultType in uData....
@ Ack
Last command acknowledge. CommandId of the original command (which succeeded) is sent in uData....
@ Subscribe
Sending this command to the server with a uData value of 0 (zero) will suspend (pause) any and all da...
@ SendKey
send_key_event(event_id, value) with event_id in uData and an optional UINT32 type value in fData (de...
@ Ping
Query for a response from remote server/client. The remote should respond with an Ack command.
@ Get
Get a named variable value with optional unit type. uData is a char of the variable type,...
@ Log
Set severity level for logging to the Client's LogRecord data area. uData should be one of the WASimC...
@ Lookup
Get information about an item, such as the ID of a variable or unit name. uData should be one of WASi...
RequestType
Types of things to request or set.
@ Calculated
Calculator code.
LogFacility
Logging destination type.
@ File
Log file destination.
@ Console
Console logging, eg. stderr/stdout.
@ Remote
Remote destination, eg. network transmission or a callback event.
static const std::vector< const char * > LogFacilityNames
Enums::LogFacility enum names.
Structure for variable value subscription requests.