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

FIXME_docs. More...

#include <RtclSignalAction.hpp>

Collaboration diagram for Retro::RtclSignalAction:
[legend]

Public Member Functions

bool SetAction (int signum, Tcl_Obj *pobj, RerrMsg &emsg)
 FIXME_docs.
 
bool GetAction (int signum, Tcl_Obj *&pobj, RerrMsg &emsg)
 FIXME_docs.
 
bool ClearAction (int signum, RerrMsg &emsg)
 FIXME_docs.
 

Static Public Member Functions

static bool Init (Tcl_Interp *interp, RerrMsg &emsg)
 FIXME_docs.
 
static RtclSignalActionObj ()
 FIXME_docs.
 

Protected Member Functions

bool ValidSignal (int signum, RerrMsg &emsg)
 FIXME_docs.
 
void TclChannelHandler (int mask)
 FIXME_docs.
 

Static Protected Member Functions

static void SignalHandler (int signum)
 FIXME_docs.
 
static void ThunkTclChannelHandler (ClientData cdata, int mask)
 FIXME_docs.
 
static void ThunkTclExitProc (ClientData cdata)
 FIXME_docs.
 

Protected Attributes

Tcl_Interp * fpInterp
 Tcl interpreter used.
 
int fFdPipeRead
 attn pipe read fd
 
int fFdPipeWrite
 attn pipe write fd
 
Tcl_Channel fShuttleChn
 Tcl channel.
 
bool fActionSet [32]
 true if SetAction() done
 
RtclOPtr fpScript [32]
 action scripts
 
struct sigaction fOldAction [32]
 original sigaction
 

Private Member Functions

 RtclSignalAction (Tcl_Interp *interp)
 constructor
 
 ~RtclSignalAction ()
 Destructor.
 

Static Private Attributes

static RtclSignalActionfpObj = nullptr
 pointer to singleton
 

Detailed Description

FIXME_docs.

Definition at line 28 of file RtclSignalAction.hpp.

Constructor & Destructor Documentation

◆ RtclSignalAction()

Retro::RtclSignalAction::RtclSignalAction ( Tcl_Interp *  interp)
private

constructor

Definition at line 211 of file RtclSignalAction.cpp.

References fFdPipeRead, fFdPipeWrite, fShuttleChn, and ThunkTclChannelHandler().

◆ ~RtclSignalAction()

Retro::RtclSignalAction::~RtclSignalAction ( )
private

Destructor.

Definition at line 243 of file RtclSignalAction.cpp.

References ClearAction(), and fActionSet.

Member Function Documentation

◆ Init()

bool Retro::RtclSignalAction::Init ( Tcl_Interp *  interp,
RerrMsg emsg 
)
static

FIXME_docs.

Definition at line 43 of file RtclSignalAction.cpp.

References fpObj, Retro::RerrMsg::Init(), and ThunkTclExitProc().

Referenced by Retro::RtclSystem::SignalAction().

◆ Obj()

RtclSignalAction * Retro::RtclSignalAction::Obj ( )
static

FIXME_docs.

Definition at line 66 of file RtclSignalAction.cpp.

References fpObj.

Referenced by Retro::RtclSystem::SignalAction().

◆ SetAction()

bool Retro::RtclSignalAction::SetAction ( int  signum,
Tcl_Obj *  pobj,
RerrMsg emsg 
)

◆ GetAction()

bool Retro::RtclSignalAction::GetAction ( int  signum,
Tcl_Obj *&  pobj,
RerrMsg emsg 
)

FIXME_docs.

Definition at line 97 of file RtclSignalAction.cpp.

References fActionSet, fpScript, Retro::RerrMsg::Init(), and ValidSignal().

Referenced by Retro::RtclSystem::SignalAction().

◆ ClearAction()

bool Retro::RtclSignalAction::ClearAction ( int  signum,
RerrMsg emsg 
)

◆ ValidSignal()

bool Retro::RtclSignalAction::ValidSignal ( int  signum,
RerrMsg emsg 
)
protected

FIXME_docs.

Definition at line 133 of file RtclSignalAction.cpp.

References Retro::RerrMsg::Init().

Referenced by ClearAction(), GetAction(), and SetAction().

◆ TclChannelHandler()

void Retro::RtclSignalAction::TclChannelHandler ( int  mask)
protected

FIXME_docs.

Definition at line 154 of file RtclSignalAction.cpp.

References fpInterp, fpScript, and fShuttleChn.

Referenced by ThunkTclChannelHandler().

◆ SignalHandler()

void Retro::RtclSignalAction::SignalHandler ( int  signum)
staticprotected

FIXME_docs.

Definition at line 175 of file RtclSignalAction.cpp.

References fFdPipeWrite, and fpObj.

Referenced by SetAction().

◆ ThunkTclChannelHandler()

void Retro::RtclSignalAction::ThunkTclChannelHandler ( ClientData  cdata,
int  mask 
)
staticprotected

FIXME_docs.

Definition at line 192 of file RtclSignalAction.cpp.

References fpObj, and TclChannelHandler().

Referenced by RtclSignalAction().

◆ ThunkTclExitProc()

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

FIXME_docs.

Definition at line 201 of file RtclSignalAction.cpp.

References fpObj.

Referenced by Init().

Member Data Documentation

◆ fpInterp

Tcl_Interp* Retro::RtclSignalAction::fpInterp
protected

Tcl interpreter used.

Definition at line 50 of file RtclSignalAction.hpp.

Referenced by TclChannelHandler().

◆ fFdPipeRead

int Retro::RtclSignalAction::fFdPipeRead
protected

attn pipe read fd

Definition at line 51 of file RtclSignalAction.hpp.

Referenced by RtclSignalAction().

◆ fFdPipeWrite

int Retro::RtclSignalAction::fFdPipeWrite
protected

attn pipe write fd

Definition at line 52 of file RtclSignalAction.hpp.

Referenced by RtclSignalAction(), and SignalHandler().

◆ fShuttleChn

Tcl_Channel Retro::RtclSignalAction::fShuttleChn
protected

Tcl channel.

Definition at line 53 of file RtclSignalAction.hpp.

Referenced by RtclSignalAction(), and TclChannelHandler().

◆ fActionSet

bool Retro::RtclSignalAction::fActionSet[32]
protected

true if SetAction() done

Definition at line 54 of file RtclSignalAction.hpp.

Referenced by ClearAction(), GetAction(), SetAction(), and ~RtclSignalAction().

◆ fpScript

RtclOPtr Retro::RtclSignalAction::fpScript[32]
protected

action scripts

Definition at line 55 of file RtclSignalAction.hpp.

Referenced by ClearAction(), GetAction(), SetAction(), and TclChannelHandler().

◆ fOldAction

struct sigaction Retro::RtclSignalAction::fOldAction[32]
protected

original sigaction

Definition at line 56 of file RtclSignalAction.hpp.

Referenced by ClearAction(), and SetAction().

◆ fpObj

RtclSignalAction * Retro::RtclSignalAction::fpObj = nullptr
staticprivate

pointer to singleton

Definition at line 59 of file RtclSignalAction.hpp.

Referenced by Init(), Obj(), SignalHandler(), ThunkTclChannelHandler(), and ThunkTclExitProc().


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