uuu
uuu (Universal Update Utility), mfgtools 3.0
 
Loading...
Searching...
No Matches
cmd.h File Reference
#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)
 

Typedef Documentation

◆ CreateCmdObj

using CreateCmdObj = std::shared_ptr<CmdBase> (*) (char *)

Function Documentation

◆ clear_env()

int clear_env ( )

◆ get_env_variable()

std::string get_env_variable ( std::string key)

◆ get_next_param()

std::string get_next_param ( const std::string & cmd,
size_t & pos,
char separate = ' ' )

◆ insert_env_variable()

int insert_env_variable ( std::string key,
std::string value )

◆ is_evn_exist()

bool is_evn_exist ( std::string key)

◆ run_cmd()

int run_cmd ( CmdCtx * pCtx,
const char * cmd,
int dry )

◆ run_cmds()

int run_cmds ( const char * protocol,
CmdCtx * p )