|
DCSModulesAPI
1.0.0
DCS sub project containing all the control modules as libraries.
|
Class responsible for keeping the state of a declared command to use in the server console. More...
#include <DCS_ModuleNetwork.h>
Public Types | |
| using | MapType = std::map< std::string, Command > |
| using | RunCB = std::function< void(bool *)> |
Public Member Functions | |
| Command (const char *DCL, const char *help="", RunCB cb=nullptr) | |
| const std::string | getName () const |
| void | Run (bool *brk) |
Static Public Member Functions | |
| static Command * | Get (std::string name) |
| static bool | IsCommand (std::string name) |
| static Command * | Closest (std::string name) |
| static std::vector< std::string > | ListCommands () |
Class responsible for keeping the state of a declared command to use in the server console.
1.8.11