wartimergenericevent.h

来自「ftpserver very good sample」· C头文件 代码 · 共 87 行

H
87
字号
/** */#ifndef WAR_TIMER_GENERIC_EVENT_H#define WAR_TIMER_GENERIC_EVENT_H/* SYSTEM INCLUDES *//* PROJECT INCLUDES */#ifndef WAR_TIMER_EVENT_H#   include "WarTimerEvent.h"#endif/* LOCAL INCLUDES *//* FORWARD REFERENCES */#ifdef __cplusplusextern "C" {#endif/****************** BEGIN OLD STYLE C spesific ********//****************** END OLD STYLE C spesific **********/#ifdef __cplusplus }#endif/****************** BEGIN C++ spesific ****************/#ifdef __cplusplustemplate <class classT, class ptrT = WarPtrWrapper<classT> >class WarTimerGenericEvent : public WarTimerEvent{public:    // LIFECYCLE    typedef ptrT origin_ptr_t;        /**    * Default constructor.    */    WarTimerGenericEvent(        classT *originPtr,        const WarTime& timerWhen,        TimerTypeE timerType = TIMER_ONCE,         const timer_delay_t timerDelayMs = 0,        const bool IsFast = false)        : WarTimerEvent(timerWhen, timerType, timerDelayMs, IsFast),        mOriginPtr(originPtr)    {    }        // OPERATORS    // OPERATIONS                           // ACCESS    // INQUIRY    protected:    origin_ptr_t mOriginPtr;    virtual void OnTimer()    {        mOriginPtr->OnTimer();    }private:};/* INLINE METHODS *//* EXTERNAL REFERENCES */#endif /* __cplusplus *//****************** END C++ spesific ******************/#endif  /* WAR_TIMER_GENERIC_EVENT_H_ */

⌨️ 快捷键说明

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