?? cb.h
字號:
/* -*- C++ -*- */// CB.h,v 1.1 2004/01/01 21:01:00 shuston Exp#if !defined(CB_H)#define CB_H#include "ace/Event_Handler.h"#include "TimerDispatcher.h"// Listing 1 code/ch20class CB : public ACE_Event_Handler{public: CB (); // Set the timer id that is being handled by this instance. void setID (long timerID); // Get the timer id. long getID (void); // Handle the timeout. virtual int handle_timeout(const ACE_Time_Value &tv, const void *arg = 0); virtual int handle_close (ACE_HANDLE handle, ACE_Reactor_Mask close_mask);private: long timerID_; int count_;};// Listing 1#endif /*CB_H*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -