📄 sbillingplayermanager.h
字号:
///////////////////////////////////////////////////////////////////////////////// filename : SBillingPlayerManager.h///////////////////////////////////////////////////////////////////////////////#ifndef __SBILLING_PLAYER_MANAGER__#define __SBILLING_PLAYER_MANAGER__// include files#include "Types.h"#include "Exception.h"#include "Thread.h"#include "Socket.h"#include "Mutex.h"#include "CBillingInfo.h"#include "PayUser.h"class SBillingPlayer;/////////////////////////////////////////////////////// class SBillingPlayerManager//// 吝惫 呼傅 辑滚客 烹脚阑 傈淬窍绰 静饭靛/////////////////////////////////////////////////////class SBillingPlayerManager : public Thread{public: SBillingPlayerManager() throw ( Error ); ~SBillingPlayerManager() throw ( Error );public: void init() throw ( Error ) {} void stop() throw ( Error ); void run() throw (); // 呼傅 包访 菩哦 焊郴扁 窃荐 bool sendLogin( PayUser* pPayUser, int i ) throw ( ProtocolException, Error ); void sendIntervalValidation( int i ) throw ( ProtocolException, Error ); bool sendMinusPoint( PayUser* pPayUser, int i ) throw ( ProtocolException, Error ); void sendMinusMinute( PayUser* pPayUser, int i ) throw ( ProtocolException, Error ); void sendLogout( PayUser* pPayUser, int i ) throw ( ProtocolException, Error ); int getVersionNumber() const throw(); int getMinusIntervalInt() const throw (); string getMinusInterval() const throw ();private: SBillingPlayer** m_pSBillingPlayer; int m_SBillingPlayers; mutable Mutex* m_Mutex;};// global variable declarationextern SBillingPlayerManager* g_pSBillingPlayerManager;#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -