Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

CtrlCSignalStrategy Class Reference

#include <CtrlCSignalStrategy.h>

Inheritance diagram for CtrlCSignalStrategy:

SignalStrategy List of all members.

Detailed Description

Implements a SignalStrategy for Control-C.

A default implementation of a SignalStrategy for Control-C. This SignalStrategy will call SysHook::shutdown. You must register it with the SignalController in your main-line.

Author:
Author
knoxy
Version:
Revision
1.3
Date:
Date
2004/11/12 03:53:19


Public Member Functions

 CtrlCSignalStrategy ()
virtual ~CtrlCSignalStrategy ()
virtual int handle_strategy (int sig, siginfo_t *info, void *context, SysHook &app_hook)


Constructor & Destructor Documentation

CtrlCSignalStrategy::CtrlCSignalStrategy  ) 
 

ctor

virtual CtrlCSignalStrategy::~CtrlCSignalStrategy  )  [virtual]
 

dtor


Member Function Documentation

virtual int CtrlCSignalStrategy::handle_strategy int  sig,
siginfo_t *  info,
void *  context,
SysHook app_hook
[virtual]
 

Implements the SignalStrategy contract

A SignalStrategy is registered with the SignalController to handle a specific signal. The parameters passed to the SignalController by the system with the signal are passed to the SignalStrategy.

Parameters:
sig - The signal received
info - The siginfo_t structure passed by the system
context - Additional information passed by the system
app_hook - The SysHook accessor to system resources like the POA and ORB (be careful).

Implements SignalStrategy.


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