DCSModulesAPI  1.0.0
DCS sub project containing all the control modules as libraries.
Public Types | Public Member Functions | Static Public Member Functions | List of all members
DCS::CLI::Command Class Reference

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 CommandGet (std::string name)
 
static bool IsCommand (std::string name)
 
static CommandClosest (std::string name)
 
static std::vector< std::string > ListCommands ()
 

Detailed Description

Class responsible for keeping the state of a declared command to use in the server console.


The documentation for this class was generated from the following files: