|
Open Model Railroad Network (OpenMRN)
|
Console command metadata. More...
Public Member Functions | |
| Command (const char *name, Callback callback, void *context=NULL, Command *next=NULL) | |
| Construct a new command. | |
| Command (const char *name, CommandFlow *flow, Command *next=NULL) | |
| Construct a new command. | |
Public Attributes | ||
| const char * | name | |
| command name | ||
| union { | ||
| struct { | ||
| Callback callback | ||
| callback function for command More... | ||
| void * context | ||
| context pointer to pass into callback More... | ||
| } | ||
| CommandFlow * flow | ||
| state flow for interactive commands More... | ||
| }; | ||
| bool | interactive | |
| true if command is interactive | ||
| Command * | next | |
| next Command in list | ||
Console command metadata.
Definition at line 271 of file Console.hxx.
|
inline |
Construct a new command.
| name | command name |
| callback | callback function for command |
| context | context pointer to pass into callback |
| next | next command in list |
Definition at line 279 of file Console.hxx.
|
inline |
Construct a new command.
| name | command name |
| flow | ?? |
| next | next command in list |
Definition at line 293 of file Console.hxx.
| Callback Console::Command::callback |
callback function for command
Definition at line 306 of file Console.hxx.
| void* Console::Command::context |
context pointer to pass into callback
Definition at line 307 of file Console.hxx.
| CommandFlow* Console::Command::flow |
state flow for interactive commands
Definition at line 309 of file Console.hxx.
| bool Console::Command::interactive |
true if command is interactive
Definition at line 311 of file Console.hxx.
| const char* Console::Command::name |
command name
Definition at line 301 of file Console.hxx.
| Command* Console::Command::next |
next Command in list
Definition at line 312 of file Console.hxx.