StuBS
Command Struct Reference

Public Types

typedef std::function< bool(const std::vector< std::string > &)> callback

Public Member Functions

 Command (const std::vector< std::string > &&name, const std::vector< Parameter > &&args, const std::string &&description, const callback action)
 Command (const std::vector< std::string > &&name, const std::string &&description, const callback action)

Static Public Member Functions

static bool execute (std::string action, const std::vector< std::string > &param)
static bool execute (const std::vector< std::string > &parts)
static bool execute (const std::string &line)
static void complete (const char *input, std::vector< std::string > &completions)
static void help ()

Public Attributes

const std::vector< std::string > name
const std::vector< Parameterargs
const std::string description
const callback action

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