Logo Search packages:      
Sourcecode: libserial version File versions  Download package

PosixSignalHandler.h

#ifndef _PosixSignalHandler_h_
#define _PosixSignalHandler_h_

/**
 * Gets a method called when the corresponding signal is received.
 * A PosixSignalHandler must be connected to the PosixSignalDispatcher
 * for it to be called.
 */
00009 class PosixSignalHandler
{
public:
    /**
     * This method is called when the specified POSIX signal is 
     * received by the PosixSignalDispatcher that is managing
     * this handler.
     */
    virtual void HandlePosixSignal( int signalNumber ) = 0 ;
     
    /**
     * Destructor is declared virtual as we expect this class to be
     * subclassed. It is also declared pure abstract to make this
     * class a pure abstract class.
     */
    virtual ~PosixSignalHandler() = 0 ;
} ;

inline
00028 PosixSignalHandler::~PosixSignalHandler()
{
    /* empty */
}
#endif // #ifndef _PosixSignalHandler_h_

Generated by  Doxygen 1.6.0   Back to index