w11 - cpp 0.794
Backend server for Rlink and w11
|
FIXME_docs. More...
#include <RtclCmdBase.hpp>
Public Types | |
typedef std::function< int(RtclArgs &)> | methfo_t |
typedef std::map< std::string, methfo_t > | mmap_t |
typedef mmap_t::iterator | mmap_it_t |
typedef mmap_t::const_iterator | mmap_cit_t |
Public Member Functions | |
RtclCmdBase () | |
FIXME_docs. | |
virtual | ~RtclCmdBase () |
Destructor. | |
RtclCmdBase (const RtclCmdBase &)=delete | |
RtclCmdBase & | operator= (const RtclCmdBase &)=delete |
int | DispatchCmd (RtclArgs &args) |
FIXME_docs. | |
void | AddMeth (const std::string &name, methfo_t &&methfo) |
FIXME_docs. | |
void | DelMeth (const std::string &name) |
FIXME_docs. | |
bool | TstMeth (const std::string &name) |
FIXME_docs. | |
Static Public Attributes | |
static const int | kOK = TCL_OK |
static const int | kERR = TCL_ERROR |
Protected Member Functions | |
bool | GetArgsDump (RtclArgs &args, int &detail) |
FIXME_docs. | |
int | M_info (RtclArgs &args) |
FIXME_docs. | |
Protected Attributes | |
mmap_t | fMethMap |
map for named methods | |
FIXME_docs.
Definition at line 34 of file RtclCmdBase.hpp.
typedef std::function<int(RtclArgs&)> Retro::RtclCmdBase::methfo_t |
Definition at line 36 of file RtclCmdBase.hpp.
typedef std::map<std::string, methfo_t> Retro::RtclCmdBase::mmap_t |
Definition at line 38 of file RtclCmdBase.hpp.
typedef mmap_t::iterator Retro::RtclCmdBase::mmap_it_t |
Definition at line 39 of file RtclCmdBase.hpp.
typedef mmap_t::const_iterator Retro::RtclCmdBase::mmap_cit_t |
Definition at line 40 of file RtclCmdBase.hpp.
Retro::RtclCmdBase::RtclCmdBase | ( | ) |
FIXME_docs.
Definition at line 51 of file RtclCmdBase.cpp.
|
virtual |
Destructor.
Definition at line 58 of file RtclCmdBase.cpp.
|
delete |
|
delete |
int Retro::RtclCmdBase::DispatchCmd | ( | RtclArgs & | args | ) |
FIXME_docs.
Definition at line 64 of file RtclCmdBase.cpp.
References fMethMap, Retro::RtclArgs::GetArg(), Retro::RtclArgs::Interp(), kERR, M_info(), Retro::RtclArgs::NDone(), Retro::RtclArgs::Objc(), and Retro::RtclArgs::Objv().
Referenced by Retro::RtclProxyBase::TclObjectCmd().
void Retro::RtclCmdBase::AddMeth | ( | const std::string & | name, |
methfo_t && | methfo | ||
) |
FIXME_docs.
Definition at line 132 of file RtclCmdBase.cpp.
References fMethMap.
Referenced by Retro::RtclRlinkConnect::RtclRlinkConnect(), Retro::RtclRlinkPort::RtclRlinkPort(), Retro::RtclRlinkServer::RtclRlinkServer(), Retro::RtclRw11::RtclRw11(), Retro::RtclRw11Cntl::RtclRw11Cntl(), Retro::RtclRw11Cpu::RtclRw11Cpu(), Retro::RtclRw11Unit::RtclRw11Unit(), Retro::RtclRw11UnitTerm::RtclRw11UnitTerm(), Retro::RtclRw11Virt::RtclRw11Virt(), Retro::RtclRw11VirtDiskOver::RtclRw11VirtDiskOver(), and Retro::RtclRw11VirtDiskRam::RtclRw11VirtDiskRam().
void Retro::RtclCmdBase::DelMeth | ( | const std::string & | name | ) |
FIXME_docs.
Definition at line 144 of file RtclCmdBase.cpp.
References fMethMap.
Referenced by Retro::RtclRw11Unit::DetachCleanup().
bool Retro::RtclCmdBase::TstMeth | ( | const std::string & | name | ) |
|
protected |
FIXME_docs.
Definition at line 163 of file RtclCmdBase.cpp.
References Retro::RtclArgs::NextOpt(), and Retro::RtclArgs::OptValid().
Referenced by Retro::RtclRlinkConnect::M_dump(), Retro::RtclRlinkPort::M_dump(), Retro::RtclRlinkServer::M_dump(), Retro::RtclRw11::M_dump(), Retro::RtclRw11Cntl::M_dump(), Retro::RtclRw11Cpu::M_dump(), Retro::RtclRw11Unit::M_dump(), and Retro::RtclRw11Virt::M_dump().
|
protected |
FIXME_docs.
Definition at line 183 of file RtclCmdBase.cpp.
References Retro::RtclArgs::AllDone(), fMethMap, Retro::RtclArgs::GetArg(), and Retro::RtclArgs::Interp().
Referenced by DispatchCmd().
|
static |
Definition at line 54 of file RtclCmdBase.hpp.
Referenced by Retro::RtclProxyBase::ClassCmdConfig(), Retro::RtclRlinkPort::DoRawRblk(), Retro::RtclRlinkPort::DoRawRead(), Retro::RtclRlinkPort::DoRawWblk(), Retro::RtclRw11Cpu::GetIAddr(), Retro::RtclRw11Cpu::GetRAddr(), Retro::RtclRw11Unit::M_attach(), Retro::RtclRw11Cpu::M_boot(), Retro::RtclRlinkPort::M_close(), Retro::RtclRw11Cpu::M_cp(), Retro::RtclRlinkPort::M_default(), Retro::RtclRw11Cntl::M_default(), Retro::RtclRw11CntlDiskBase< TC >::M_default(), Retro::RtclRw11CntlStreamBase< TC >::M_default(), Retro::RtclRw11CntlTapeBase< TC >::M_default(), Retro::RtclRw11CntlTermBase< TC >::M_default(), Retro::RtclRw11Cpu::M_default(), Retro::RtclRw11Unit::M_default(), Retro::RtclRw11Cpu::M_deposit(), Retro::RtclRw11Unit::M_detach(), Retro::RtclRlinkPort::M_dump(), Retro::RtclRw11Cntl::M_dump(), Retro::RtclRw11Cpu::M_dump(), Retro::RtclRw11Unit::M_dump(), Retro::RtclRw11Virt::M_dump(), Retro::RtclRlinkPort::M_errcnt(), Retro::RtclRw11Cpu::M_examine(), Retro::RtclRw11Cpu::M_imap(), Retro::RtclRw11Cpu::M_ldabs(), Retro::RtclRw11Cpu::M_ldasm(), Retro::RtclRlinkPort::M_log(), Retro::RtclRw11Cpu::M_lsmem(), Retro::RtclRlinkPort::M_open(), Retro::RtclRw11Cntl::M_probe(), Retro::RtclRw11Cpu::M_rmap(), Retro::RtclRw11Cpu::M_show(), Retro::RtclRw11Cntl::M_start(), Retro::RtclRlinkPort::M_stats(), Retro::RtclRw11Cntl::M_stats(), Retro::RtclRw11Cpu::M_stats(), Retro::RtclRw11Virt::M_stats(), and Retro::RtclRw11Cpu::M_wtcpu().
|
static |
Definition at line 55 of file RtclCmdBase.hpp.
Referenced by Retro::RtclProxyBase::ClassCmdConfig(), DispatchCmd(), Retro::RtclRlinkPort::DoRawRblk(), Retro::RtclRlinkPort::DoRawRead(), Retro::RtclRlinkPort::DoRawWblk(), Retro::RtclRw11Cpu::GetIAddr(), Retro::RtclRw11Cpu::GetRAddr(), Retro::RtclRw11Unit::M_attach(), Retro::RtclRw11Cpu::M_boot(), Retro::RtclRlinkPort::M_close(), Retro::RtclRw11Cpu::M_cp(), Retro::RtclRlinkPort::M_default(), Retro::RtclRw11Cntl::M_default(), Retro::RtclRw11CntlDiskBase< TC >::M_default(), Retro::RtclRw11CntlStreamBase< TC >::M_default(), Retro::RtclRw11CntlTapeBase< TC >::M_default(), Retro::RtclRw11CntlTermBase< TC >::M_default(), Retro::RtclRw11Cpu::M_default(), Retro::RtclRw11Unit::M_default(), Retro::RtclRw11Cpu::M_deposit(), Retro::RtclRw11Unit::M_detach(), Retro::RtclRlinkPort::M_dump(), Retro::RtclRw11Cntl::M_dump(), Retro::RtclRw11Cpu::M_dump(), Retro::RtclRw11Unit::M_dump(), Retro::RtclRw11Virt::M_dump(), Retro::RtclRlinkPort::M_errcnt(), Retro::RtclRw11Cpu::M_examine(), Retro::RtclRw11Cpu::M_imap(), Retro::RtclRw11Cpu::M_ldabs(), Retro::RtclRw11Cpu::M_ldasm(), Retro::RtclRlinkPort::M_log(), Retro::RtclRw11Cpu::M_lsmem(), Retro::RtclRlinkPort::M_open(), Retro::RtclRw11Cntl::M_probe(), Retro::RtclRlinkPort::M_rawrblk(), Retro::RtclRlinkPort::M_rawread(), Retro::RtclRlinkPort::M_rawwblk(), Retro::RtclRw11Cpu::M_rmap(), Retro::RtclRw11Cpu::M_show(), Retro::RtclRw11Cntl::M_start(), Retro::RtclRlinkPort::M_stats(), Retro::RtclRw11Cntl::M_stats(), Retro::RtclRw11Cpu::M_stats(), Retro::RtclRw11Virt::M_stats(), and Retro::RtclRw11Cpu::M_wtcpu().
|
protected |
map for named methods
Definition at line 62 of file RtclCmdBase.hpp.
Referenced by AddMeth(), DelMeth(), DispatchCmd(), M_info(), and TstMeth().