CUBA
cmd::cmd_line Class Reference

Classes

struct  help
 

Public Member Functions

void get_command_line (const int argc, const char *const *const argv)
 
bool arg_bool (const unsigned short &type, const string &arg)
 return bool value More...
 
string arg_value (const short &type, const string &arg)
 return the value of argument More...
 
const vector< string > & get_types () const
 
void set_types (const vector< string > &types)
 

Static Public Member Functions

static string get_opt_types (const opt_type &opt)
 
static short get_opt_index (const opt_type &opt)
 

Member Function Documentation

◆ arg_bool()

bool cmd::cmd_line::arg_bool ( const unsigned short &  type,
const string &  arg 
)

return bool value

Parameters
type
arg
Returns
bool

◆ arg_value()

string cmd::cmd_line::arg_value ( const short &  type,
const string &  arg 
)

return the value of argument

Parameters
type
arg
Returns
string: the value of argument

◆ get_command_line()

void cmd::cmd_line::get_command_line ( const int  argc,
const char *const *const  argv 
)
Parameters
argc
argv

◆ get_opt_index()

short cmd::cmd_line::get_opt_index ( const opt_type &  opt)
static
Parameters
opt

◆ get_opt_types()

string cmd::cmd_line::get_opt_types ( const opt_type &  opt)
static
Parameters
opt
Returns

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