HelloImp.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #ifndef _HELLO_IMP_H_
  2. #define _HELLO_IMP_H_
  3. #include "Hello.h"
  4. #include <map>
  5. #include <string>
  6. #include <vector>
  7. using namespace std;
  8. using namespace tars;
  9. using namespace Test;
  10. /////////////////////////////////////////////////////////////////////////
  11. class HelloImp : public Hello {
  12. public:
  13. /**
  14. * 构造函数
  15. */
  16. HelloImp();
  17. public:
  18. /**
  19. * 对象初始化
  20. */
  21. virtual void initialize();
  22. /**
  23. * 对象销毁
  24. */
  25. virtual void destroy();
  26. public:
  27. int testTrans(int index, const string &s, string &r, CurrentPtr current);
  28. int testSyncTrans(int index, const string &s, string &r, CurrentPtr current);
  29. int testHello(int index, const string &s, string &r, CurrentPtr current);
  30. int testPid(string &r, CurrentPtr current);
  31. int testTimeout(int timeout, CurrentPtr current);
  32. virtual tars::Int32 testDyeing(const std::string & strIn,std::string &strOut, CurrentPtr current);
  33. virtual tars::Int32 testDyeingTrans(CurrentPtr current);
  34. virtual bool testCoro(const std::string& sIn, std::string &sOut, CurrentPtr current);
  35. virtual int testConHash(std::string &sOut, CurrentPtr current);
  36. virtual int testPushRegister(const string &msg, CurrentPtr current);
  37. protected:
  38. HelloPrx _helloPrx;
  39. };
  40. ///////////////////////////////////////////////////////////////////////////////
  41. #endif