Representation of an ad hoc command with the command index and arguments.
More...
#include <tools.hpp>
|
| AdHoc (int cmd, const std::vector< std::string > &args) |
| Construct a new Ad Hoc object from command_enum and list of args. More...
|
|
| AdHoc (const std::vector< std::string > &work_req) |
| Construct a new Ad Hoc object from list of strings. More...
|
|
| ~AdHoc (void)=default |
| Destroy the Ad Hoc object. More...
|
|
|
int | cmd_ |
| Index of command in comman_enum.
|
|
std::vector< std::string > | args_ |
| Arguments passed to command.
|
|
Representation of an ad hoc command with the command index and arguments.
◆ AdHoc() [1/2]
AdHoc::AdHoc |
( |
int |
cmd, |
|
|
const std::vector< std::string > & |
args |
|
) |
| |
|
inline |
Construct a new Ad Hoc object from command_enum and list of args.
- Parameters
-
cmd | command_enum from get_command_index() |
args | list of args to command |
◆ AdHoc() [2/2]
AdHoc::AdHoc |
( |
const std::vector< std::string > & |
work_req | ) |
|
|
inline |
Construct a new Ad Hoc object from list of strings.
- Parameters
-
work_req | command (work_req[0]) and args (work_req[1:]) |
◆ ~AdHoc()
Destroy the Ad Hoc object.
The documentation for this class was generated from the following file: