TarsCloud_TarsCpp/unit-test/server/HelloImp.h
2022-01-01 20:36:03 +08:00

58 lines
1.3 KiB
C++
Executable File

#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);
int testConHash(std::string &sOut, CurrentPtr current);
protected:
HelloPrx _helloPrx;
};
///////////////////////////////////////////////////////////////////////////////
#endif