UWARG Computer Vision
Public Member Functions | Public Attributes | List of all members
Command Class Reference

Describes a CLI Command that can be run in the program's repl. More...

Collaboration diagram for Command:
Collaboration graph

Public Member Functions

 Command (string name, string desc, initializer_list< string > args, std::function< void(State &, vector< string >)> execute)
 Constructor for a CLI command. More...
 

Public Attributes

string name
 
string desc
 
vector< string > args
 
std::function< void(State &, vector< string >)> execute
 

Detailed Description

Describes a CLI Command that can be run in the program's repl.

Constructor & Destructor Documentation

Command::Command ( string  name,
string  desc,
initializer_list< string >  args,
std::function< void(State &, vector< string >)>  execute 
)
inline

Constructor for a CLI command.

  • name Command name
  • desc Command Description
  • args List of argument names
  • execute Function to execute when command is run, The vector of strings contains the arguments passed to the command at runtime

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