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

FIXME_docs. More...

#include <RtclProxyBase.hpp>

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

Public Member Functions

 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

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.
 

Static Protected Member Functions

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.
 

Protected Attributes

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
 

Detailed Description

FIXME_docs.

Definition at line 36 of file RtclProxyBase.hpp.

Constructor & Destructor Documentation

◆ RtclProxyBase() [1/2]

Retro::RtclProxyBase::RtclProxyBase ( const std::string &  type = std::string())
explicit

FIXME_docs.

Definition at line 44 of file RtclProxyBase.cpp.

◆ RtclProxyBase() [2/2]

Retro::RtclProxyBase::RtclProxyBase ( const std::string &  type,
Tcl_Interp *  interp,
const char *  name 
)

FIXME_docs.

Definition at line 54 of file RtclProxyBase.cpp.

References CreateObjectCmd().

◆ ~RtclProxyBase()

Retro::RtclProxyBase::~RtclProxyBase ( )
virtual

Destructor.

Definition at line 66 of file RtclProxyBase.cpp.

References Retro::RtclContext::Find(), fInterp, and Retro::RtclContext::UnRegisterProxy().

Member Function Documentation

◆ ClassCmdConfig()

int Retro::RtclProxyBase::ClassCmdConfig ( RtclArgs args)
virtual

FIXME_docs.

Reimplemented in Retro::RtclRlinkServer, and Retro::RtclRw11.

Definition at line 74 of file RtclProxyBase.cpp.

References Retro::RtclArgs::AllDone(), Retro::RtclCmdBase::kERR, and Retro::RtclCmdBase::kOK.

◆ Type()

const std::string & Retro::RtclProxyBase::Type ( ) const
inline

FIXME_docs.

Definition at line 22 of file RtclProxyBase.ipp.

References fType.

Referenced by Retro::RtclClassBase::TclClassCmd().

◆ Token()

Tcl_Command Retro::RtclProxyBase::Token ( ) const
inline

FIXME_docs.

Definition at line 30 of file RtclProxyBase.ipp.

References fCmdToken.

◆ CommandName()

◆ SetType()

void Retro::RtclProxyBase::SetType ( const std::string &  type)
inlineprotected

FIXME_docs.

Definition at line 38 of file RtclProxyBase.ipp.

References fType.

◆ CreateObjectCmd()

◆ TclObjectCmd()

int Retro::RtclProxyBase::TclObjectCmd ( Tcl_Interp *  interp,
int  objc,
Tcl_Obj *const  objv[] 
)
protected

FIXME_docs.

Definition at line 107 of file RtclProxyBase.cpp.

References Retro::RtclCmdBase::DispatchCmd().

◆ ThunkTclObjectCmd()

int Retro::RtclProxyBase::ThunkTclObjectCmd ( ClientData  cdata,
Tcl_Interp *  interp,
int  objc,
Tcl_Obj *const  objv[] 
)
staticprotected

FIXME_docs.

Definition at line 117 of file RtclProxyBase.cpp.

References Retro::Rtcl::AppendResultNewLines().

Referenced by CreateObjectCmd().

◆ ThunkTclCmdDeleteProc()

void Retro::RtclProxyBase::ThunkTclCmdDeleteProc ( ClientData  cdata)
staticprotected

FIXME_docs.

Definition at line 139 of file RtclProxyBase.cpp.

References ThunkTclExitProc().

Referenced by CreateObjectCmd().

◆ ThunkTclExitProc()

void Retro::RtclProxyBase::ThunkTclExitProc ( ClientData  cdata)
staticprotected

FIXME_docs.

Definition at line 150 of file RtclProxyBase.cpp.

Referenced by CreateObjectCmd(), and ThunkTclCmdDeleteProc().

Member Data Documentation

◆ fType

std::string Retro::RtclProxyBase::fType
protected

proxied type name

Definition at line 64 of file RtclProxyBase.hpp.

Referenced by SetType(), and Type().

◆ fInterp

Tcl_Interp* Retro::RtclProxyBase::fInterp
protected

tcl interpreter

Definition at line 65 of file RtclProxyBase.hpp.

Referenced by CommandName(), CreateObjectCmd(), and ~RtclProxyBase().

◆ fCmdToken

Tcl_Command Retro::RtclProxyBase::fCmdToken
protected

cmd token for object command

Definition at line 66 of file RtclProxyBase.hpp.

Referenced by CommandName(), CreateObjectCmd(), and Token().


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