w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Retro::RtclRlinkConnect Class Reference

FIXME_docs. More...

#include <RtclRlinkConnect.hpp>

Inheritance diagram for Retro::RtclRlinkConnect:
[legend]
Collaboration diagram for Retro::RtclRlinkConnect:
[legend]

Public Member Functions

 RtclRlinkConnect (Tcl_Interp *interp, const char *name)
 Default constructor.
 
 ~RtclRlinkConnect ()
 Destructor.
 
- Public Member Functions inherited from Retro::RtclProxyOwned< RlinkConnect >
 RtclProxyOwned ()
 Default constructor.
 
 RtclProxyOwned (const std::string &type)
 FIXME_docs.
 
 RtclProxyOwned (const std::string &type, Tcl_Interp *interp, const char *name, RlinkConnect *pobj=nullptr)
 FIXME_docs.
 
 ~RtclProxyOwned ()
 FIXME_docs.
 
RlinkConnectObj ()
 FIXME_docs.
 
const std::shared_ptr< RlinkConnect > & ObjSPtr ()
 FIXME_docs.
 
- Public Member Functions inherited from Retro::RtclProxyBase
 RtclProxyBase (const std::string &type=std::string())
 FIXME_docs.
 
 RtclProxyBase (const std::string &type, Tcl_Interp *interp, const char *name)
 FIXME_docs.
 
virtual ~RtclProxyBase ()
 Destructor.
 
virtual int ClassCmdConfig (RtclArgs &args)
 FIXME_docs.
 
const std::string & Type () const
 FIXME_docs.
 
Tcl_Command Token () const
 FIXME_docs.
 
std::string CommandName () const
 FIXME_docs.
 
- Public Member Functions inherited from Retro::RtclCmdBase
 RtclCmdBase ()
 FIXME_docs.
 
virtual ~RtclCmdBase ()
 Destructor.
 
 RtclCmdBase (const RtclCmdBase &)=delete
 
RtclCmdBaseoperator= (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.
 

Protected Member Functions

int M_open (RtclArgs &args)
 FIXME_docs.
 
int M_close (RtclArgs &args)
 FIXME_docs.
 
int M_init (RtclArgs &args)
 FIXME_docs.
 
int M_exec (RtclArgs &args)
 FIXME_docs.
 
int M_amap (RtclArgs &args)
 FIXME_docs.
 
int M_errcnt (RtclArgs &args)
 FIXME_docs.
 
int M_wtlam (RtclArgs &args)
 FIXME_docs.
 
int M_oob (RtclArgs &args)
 FIXME_docs.
 
int M_rawread (RtclArgs &args)
 FIXME_docs.
 
int M_rawrblk (RtclArgs &args)
 FIXME_docs.
 
int M_rawwblk (RtclArgs &args)
 FIXME_docs.
 
int M_stats (RtclArgs &args)
 FIXME_docs.
 
int M_log (RtclArgs &args)
 FIXME_docs.
 
int M_print (RtclArgs &args)
 FIXME_docs.
 
int M_dump (RtclArgs &args)
 FIXME_docs.
 
int M_get (RtclArgs &args)
 FIXME_docs.
 
int M_set (RtclArgs &args)
 FIXME_docs.
 
int M_default (RtclArgs &args)
 FIXME_docs.
 
bool GetAddr (RtclArgs &args, uint16_t &addr)
 FIXME_docs.
 
bool GetVarName (RtclArgs &args, const char *argname, size_t nind, std::vector< std::string > &varname)
 FIXME_docs.
 
bool ConfigBase (RtclArgs &args, uint32_t &base)
 FIXME_docs.
 
bool ClistNonEmpty (RtclArgs &args, const RlinkCommandList &clist)
 FIXME_docs.
 
- Protected Member Functions inherited from Retro::RtclProxyBase
void SetType (const std::string &type)
 FIXME_docs.
 
void CreateObjectCmd (Tcl_Interp *interp, const char *name)
 FIXME_docs.
 
int TclObjectCmd (Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
 FIXME_docs.
 
- Protected Member Functions inherited from Retro::RtclCmdBase
bool GetArgsDump (RtclArgs &args, int &detail)
 FIXME_docs.
 
int M_info (RtclArgs &args)
 FIXME_docs.
 

Protected Attributes

RtclOPtr fCmdnameObj [8]
 
RtclGetList fGets
 
RtclSetList fSets
 
- Protected Attributes inherited from Retro::RtclProxyOwned< RlinkConnect >
std::shared_ptr< RlinkConnectfspObj
 sptr to managed object
 
- Protected Attributes inherited from Retro::RtclProxyBase
std::string fType
 proxied type name
 
Tcl_Interp * fInterp
 tcl interpreter
 
Tcl_Command fCmdToken
 cmd token for object command
 
- Protected Attributes inherited from Retro::RtclCmdBase
mmap_t fMethMap
 map for named methods
 

Additional Inherited Members

- Public Types inherited from Retro::RtclCmdBase
typedef std::function< int(RtclArgs &)> methfo_t
 
typedef std::map< std::string, methfo_tmmap_t
 
typedef mmap_t::iterator mmap_it_t
 
typedef mmap_t::const_iterator mmap_cit_t
 
- Static Public Attributes inherited from Retro::RtclCmdBase
static const int kOK = TCL_OK
 
static const int kERR = TCL_ERROR
 
- Static Protected Member Functions inherited from Retro::RtclProxyBase
static int ThunkTclObjectCmd (ClientData cdata, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
 FIXME_docs.
 
static void ThunkTclCmdDeleteProc (ClientData cdata)
 FIXME_docs.
 
static void ThunkTclExitProc (ClientData cdata)
 FIXME_docs.
 

Detailed Description

FIXME_docs.

Definition at line 36 of file RtclRlinkConnect.hpp.

Constructor & Destructor Documentation

◆ RtclRlinkConnect()

Retro::RtclRlinkConnect::RtclRlinkConnect ( Tcl_Interp *  interp,
const char *  name 
)

Default constructor.

Definition at line 82 of file RtclRlinkConnect.cpp.

References Retro::RtclGetList::Add(), Retro::RtclSetList::Add(), Retro::RtclCmdBase::AddMeth(), Retro::RlinkConnect::BlockSizeMax(), Retro::RlinkConnect::BlockSizePrudent(), Retro::RlinkCommand::CommandName(), Retro::RlinkConnect::Context(), Retro::RlinkConnect::DumpLevel(), fCmdnameObj, fGets, fSets, Retro::RlinkConnect::HasRbmon(), Retro::RlinkConnect::LinkInitDone(), Retro::RlinkConnect::LogBaseAddr(), Retro::RlinkConnect::LogBaseData(), Retro::RlinkConnect::LogBaseStat(), Retro::RlinkConnect::LogFileName(), M_amap(), M_close(), M_default(), M_dump(), M_errcnt(), M_exec(), M_get(), M_init(), M_log(), M_oob(), M_open(), M_print(), M_rawrblk(), M_rawread(), M_rawwblk(), M_set(), M_stats(), M_wtlam(), Retro::RtclProxyOwned< RlinkConnect >::Obj(), Retro::RlinkConnect::PrintLevel(), Retro::RlinkConnect::RbufSize(), Retro::RlinkConnect::SetDumpLevel(), Retro::RlinkConnect::SetLogBaseAddr(), Retro::RlinkConnect::SetLogBaseData(), Retro::RlinkConnect::SetLogBaseStat(), Retro::RlinkConnect::SetLogFileName(), Retro::RlinkConnect::SetPrintLevel(), Retro::RlinkContext::SetStatusMask(), Retro::RlinkContext::SetStatusValue(), Retro::RlinkConnect::SetTimeout(), Retro::RlinkConnect::SetTraceLevel(), Retro::RlinkContext::StatusIsChecked(), Retro::RlinkContext::StatusMask(), Retro::RlinkContext::StatusValue(), Retro::RlinkConnect::SysId(), Retro::RlinkConnect::Timeout(), Retro::RlinkConnect::TraceLevel(), and Retro::RlinkConnect::UsrAcc().

◆ ~RtclRlinkConnect()

Retro::RtclRlinkConnect::~RtclRlinkConnect ( )

Destructor.

Definition at line 167 of file RtclRlinkConnect.cpp.

Member Function Documentation

◆ M_open()

◆ M_close()

int Retro::RtclRlinkConnect::M_close ( RtclArgs args)
protected

◆ M_init()

int Retro::RtclRlinkConnect::M_init ( RtclArgs args)
protected

◆ M_exec()

int Retro::RtclRlinkConnect::M_exec ( RtclArgs args)
protected

FIXME_docs.

Definition at line 217 of file RtclRlinkConnect.cpp.

References Retro::RlinkCommandList::AddAttn(), Retro::RlinkCommandList::AddInit(), Retro::RlinkCommandList::AddLabo(), Retro::RlinkCommandList::AddRblk(), Retro::RlinkCommandList::AddRreg(), Retro::RlinkCommandList::AddWblk(), Retro::RlinkCommandList::AddWreg(), Retro::RtclArgs::AllDone(), Retro::RlinkCommand::Block(), Retro::RlinkCommand::BlockDone(), ClistNonEmpty(), Retro::RlinkCommand::Command(), Retro::RlinkCommand::Data(), Retro::RlinkCommandList::Dump(), fCmdnameObj, Retro::RlinkCommand::Flags(), GetAddr(), Retro::RtclArgs::GetArg(), GetVarName(), Retro::RtclArgs::Interp(), Retro::RlinkCommand::kCmdAttn, Retro::RlinkCommand::kCmdLabo, Retro::RlinkCommand::kCmdRblk, Retro::RlinkCommand::kCmdRreg, Retro::RlinkCommand::kCmdWblk, Retro::kERR, Retro::kOK, Retro::RlinkCommand::kStat_M_RbErr, Retro::RlinkCommand::kStat_M_RbNak, Retro::RlinkCommand::kStat_M_RbTout, Retro::Rtcl::NewLinesObj(), Retro::Rtcl::NewListIntObj(), Retro::RtclArgs::NextOpt(), Retro::RtclProxyOwned< RlinkConnect >::Obj(), Retro::RlinkCommandList::Print(), Retro::RtclArgs::Quit(), Retro::RlinkCommand::Request(), Retro::RlinkCommandList::SetLastExpectBlock(), Retro::RlinkCommandList::SetLastExpectData(), Retro::RlinkCommandList::SetLastExpectDone(), Retro::RlinkCommandList::SetLastExpectStatus(), Retro::Rtcl::SetVar(), Retro::Rtcl::SetVarOrResult(), Retro::RlinkCommandList::Size(), and Retro::RlinkCommand::Status().

Referenced by RtclRlinkConnect().

◆ M_amap()

◆ M_errcnt()

◆ M_wtlam()

◆ M_oob()

◆ M_rawread()

int Retro::RtclRlinkConnect::M_rawread ( RtclArgs args)
protected

◆ M_rawrblk()

int Retro::RtclRlinkConnect::M_rawrblk ( RtclArgs args)
protected

◆ M_rawwblk()

int Retro::RtclRlinkConnect::M_rawwblk ( RtclArgs args)
protected

◆ M_stats()

int Retro::RtclRlinkConnect::M_stats ( RtclArgs args)
protected

◆ M_log()

◆ M_print()

int Retro::RtclRlinkConnect::M_print ( RtclArgs args)
protected

◆ M_dump()

◆ M_get()

int Retro::RtclRlinkConnect::M_get ( RtclArgs args)
protected

FIXME_docs.

Definition at line 779 of file RtclRlinkConnect.cpp.

References fGets, Retro::RtclGetList::M_get(), and Retro::RtclProxyOwned< RlinkConnect >::Obj().

Referenced by RtclRlinkConnect().

◆ M_set()

int Retro::RtclRlinkConnect::M_set ( RtclArgs args)
protected

FIXME_docs.

Definition at line 789 of file RtclRlinkConnect.cpp.

References fSets, Retro::RtclSetList::M_set(), and Retro::RtclProxyOwned< RlinkConnect >::Obj().

Referenced by RtclRlinkConnect().

◆ M_default()

◆ GetAddr()

bool Retro::RtclRlinkConnect::GetAddr ( RtclArgs args,
uint16_t &  addr 
)
protected

◆ GetVarName()

bool Retro::RtclRlinkConnect::GetVarName ( RtclArgs args,
const char *  argname,
size_t  nind,
std::vector< std::string > &  varname 
)
protected

FIXME_docs.

Definition at line 852 of file RtclRlinkConnect.cpp.

References Retro::RtclArgs::AppendResult(), and Retro::RtclArgs::GetArg().

Referenced by M_exec().

◆ ConfigBase()

bool Retro::RtclRlinkConnect::ConfigBase ( RtclArgs args,
uint32_t &  base 
)
protected

◆ ClistNonEmpty()

bool Retro::RtclRlinkConnect::ClistNonEmpty ( RtclArgs args,
const RlinkCommandList clist 
)
protected

FIXME_docs.

Definition at line 891 of file RtclRlinkConnect.cpp.

References Retro::RtclArgs::AppendResult(), and Retro::RlinkCommandList::Size().

Referenced by M_exec().

Member Data Documentation

◆ fCmdnameObj

RtclOPtr Retro::RtclRlinkConnect::fCmdnameObj[8]
protected

Definition at line 69 of file RtclRlinkConnect.hpp.

Referenced by M_exec(), and RtclRlinkConnect().

◆ fGets

RtclGetList Retro::RtclRlinkConnect::fGets
protected

Definition at line 70 of file RtclRlinkConnect.hpp.

Referenced by M_get(), and RtclRlinkConnect().

◆ fSets

RtclSetList Retro::RtclRlinkConnect::fSets
protected

Definition at line 71 of file RtclRlinkConnect.hpp.

Referenced by M_set(), and RtclRlinkConnect().


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