Command data structure. The member contents depend on the command type as described in each command type of the Enums::CommandId
enum documentation.
More...
#include "WASimCommander.h"
Public Member Functions | |
Command (WASimCommander::Enums::CommandId id=WASimCommander::Enums::CommandId::None, uint32_t uData=0, const char *str=nullptr, double fData=0.0, int32_t token=0) | |
Default constructor with all parameters optional. More... | |
void | setStringData (const char *str) |
Set the sData member using a const char array. More... | |
Public Attributes | |
uint32_t | token |
A unique ID for this command instance. Echoed back by server in command responses. Optional use for client implementations. More... | |
uint32_t | uData |
DWORD command parameter value, meaning depends on the command being issued. More... | |
double | fData |
double-precision floating point command parameter value, meaning depends on the command being issued. More... | |
WASimCommander::Enums::CommandId | commandId |
What to do. More... | |
char | sData [STRSZ_CMD] = {0} |
String command parameter value, meaning depends on the command being issued. More... | |
Command data structure. The member contents depend on the command type as described in each command type of the Enums::CommandId
enum documentation.
Definition at line 98 of file WASimCommander.h.
|
inlineexplicit |
Default constructor with all parameters optional.
Definition at line 108 of file WASimCommander.h.
|
inline |
Set the sData
member using a const char array.
Definition at line 114 of file WASimCommander.h.
uint32_t WASimCommander::Command::token |
A unique ID for this command instance. Echoed back by server in command responses. Optional use for client implementations.
Definition at line 100 of file WASimCommander.h.
uint32_t WASimCommander::Command::uData |
DWORD command parameter value, meaning depends on the command being issued.
Definition at line 101 of file WASimCommander.h.
double WASimCommander::Command::fData |
double-precision floating point command parameter value, meaning depends on the command being issued.
Definition at line 102 of file WASimCommander.h.
WASimCommander::Enums::CommandId WASimCommander::Command::commandId |
char WASimCommander::Command::sData[STRSZ_CMD] = {0} |
String command parameter value, meaning depends on the command being issued.
Definition at line 104 of file WASimCommander.h.