HelloImp.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. virtual int testPort(CurrentPtr current);
  38. protected:
  39. HelloPrx _helloPrx;
  40. };
  41. ///////////////////////////////////////////////////////////////////////////////
  42. #endif