uuu
uuu (Universal Update Utility), mfgtools 3.0
 
Loading...
Searching...
No Matches
CmdIf Class Reference

#include <cmd.h>

Inheritance diagram for CmdIf:
CmdBase

Public Member Functions

 CmdIf (char *p)
 
int parser (char *p=nullptr) override
 
int run (CmdCtx *p) override
 
- Public Member Functions inherited from CmdBase
 CmdBase ()=default
 
 CmdBase (char *p)
 
virtual ~CmdBase ()
 
virtual int dump ()
 
const std::string & get_cmd () const noexcept
 
bool get_lastcmd () const noexcept
 
void insert_param_info (const char *key, void *pD, Param::Type tp, bool ignore_case=true, const char *err=nullptr)
 
virtual int parser_protocol (char *p, size_t &pos)
 

Private Member Functions

void build_map (CmdCtx *p)
 

Private Attributes

std::string m_condition
 
std::string m_protocol
 
std::string m_true_cmd
 

Additional Inherited Members

- Protected Attributes inherited from CmdBase
bool m_bCheckTotalParam = false
 
std::string m_cmd
 
bool m_lastcmd = false
 
bool m_NoKeyParam = false
 
int m_timeout = 10000
 

Constructor & Destructor Documentation

◆ CmdIf()

CmdIf::CmdIf ( char * p)
inline

Member Function Documentation

◆ build_map()

void CmdIf::build_map ( CmdCtx * p)
private

◆ parser()

int CmdIf::parser ( char * p = nullptr)
overridevirtual

Reimplemented from CmdBase.

◆ run()

int CmdIf::run ( CmdCtx * p)
overridevirtual

Implements CmdBase.

Member Data Documentation

◆ m_condition

std::string CmdIf::m_condition
private

◆ m_protocol

std::string CmdIf::m_protocol
private

◆ m_true_cmd

std::string CmdIf::m_true_cmd
private

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