WinServer.h 612 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef _WinServer_H_
  2. #define _WinServer_H_
  3. #include <iostream>
  4. #include "servant/Application.h"
  5. using namespace tars;
  6. class WinServer : public Application, public TC_Thread
  7. {
  8. public:
  9. /**
  10. * 析构函数
  11. **/
  12. virtual ~WinServer();
  13. /**
  14. * 服务初始化
  15. **/
  16. virtual void initialize();
  17. /**
  18. * 服务销毁
  19. **/
  20. virtual void destroyApp();
  21. bool cmdAdd(const string& command, const string& params, string& result);
  22. bool delTarsViewVersion(const string& command, const string& params, string& result);
  23. protected:
  24. virtual void run();
  25. };
  26. ////////////////////////////////////////////
  27. #endif