#include <map>
#include <memory>
#include <string>
#include <vector>
Go to the source code of this file.
Classes | |
class | CmdCtx |
class | CmdUsbCtx |
struct | Param |
class | CmdBase |
class | CmdObjCreateMap |
class | CmdDone |
class | CmdDelay |
class | CmdError |
class | CmdShell |
class | CmdIf |
class | CmdEnv |
class | CmdList |
class | CmdMap |
class | CfgCmd |
Typedefs | |
using | CreateCmdObj = std::shared_ptr<CmdBase> (*) (char *) |
Functions | |
std::string | get_next_param (const std::string &cmd, size_t &pos, char separate=' ') |
int | run_cmds (const char *protocol, CmdCtx *p) |
int | run_cmd (CmdCtx *pCtx, const char *cmd, int dry) |
int | insert_env_variable (std::string key, std::string value) |
std::string | get_env_variable (std::string key) |
int | clear_env () |
bool | is_evn_exist (std::string key) |
using CreateCmdObj = std::shared_ptr<CmdBase> (*) (char *) |
int clear_env | ( | ) |
std::string get_env_variable | ( | std::string | key | ) |
std::string get_next_param | ( | const std::string & | cmd, |
size_t & | pos, | ||
char | separate = ' ' ) |
int insert_env_variable | ( | std::string | key, |
std::string | value ) |
bool is_evn_exist | ( | std::string | key | ) |
int run_cmd | ( | CmdCtx * | pCtx, |
const char * | cmd, | ||
int | dry ) |
int run_cmds | ( | const char * | protocol, |
CmdCtx * | p ) |