1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- #ifndef _HELLO_IMP_H_
- #define _HELLO_IMP_H_
- #include "Hello.h"
- #include <map>
- #include <string>
- #include <vector>
- using namespace std;
- using namespace tars;
- using namespace Test;
- /////////////////////////////////////////////////////////////////////////
- class HelloImp : public Hello {
- public:
- /**
- * 构造函数
- */
- HelloImp();
- public:
- /**
- * 对象初始化
- */
- virtual void initialize();
- /**
- * 对象销毁
- */
- virtual void destroy();
- public:
- int testTrans(int index, const string &s, string &r, CurrentPtr current);
- int testSyncTrans(int index, const string &s, string &r, CurrentPtr current);
- int testHello(int index, const string &s, string &r, CurrentPtr current);
- int testPid(string &r, CurrentPtr current);
- int testTimeout(int timeout, CurrentPtr current);
- virtual tars::Int32 testDyeing(const std::string & strIn,std::string &strOut, CurrentPtr current);
- virtual tars::Int32 testDyeingTrans(CurrentPtr current);
- virtual bool testCoro(const std::string& sIn, std::string &sOut, CurrentPtr current);
- virtual int testConHash(std::string &sOut, CurrentPtr current);
- virtual int testPushRegister(const string &msg, CurrentPtr current);
- protected:
- HelloPrx _helloPrx;
- };
- ///////////////////////////////////////////////////////////////////////////////
- #endif
|