posixsignalhandler.h

来自「linux下串口通讯用的类库 c++编写」· C头文件 代码 · 共 33 行

H
33
字号
#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. */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 ;} ;inlinePosixSignalHandler::~PosixSignalHandler(){    /* empty */}#endif // #ifndef _PosixSignalHandler_h_

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?