50 lines
1.2 KiB
C
50 lines
1.2 KiB
C
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <TestProject/RNG/Generator.h>
|
|||
|
|
#include <common/L2Event.h>
|
|||
|
|
#include <dao/DbStandardDBAX.h>
|
|||
|
|
#include <log4cplus/LOG.h>
|
|||
|
|
#include <proxy/MessageICE.h>
|
|||
|
|
#include <memory>
|
|||
|
|
#include <string>
|
|||
|
|
#include <thread>
|
|||
|
|
#include <utility>
|
|||
|
|
namespace baosight {
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* @brief Ice接口类实现,其中包含了对不同电文的调用
|
|||
|
|
*/
|
|||
|
|
class RNGICEI : virtual public MessageICE {
|
|||
|
|
public:
|
|||
|
|
/**
|
|||
|
|
* @brief Construct a new Eqp Alg I C E I object
|
|||
|
|
*/
|
|||
|
|
RNGICEI();
|
|||
|
|
virtual ~RNGICEI();
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* @brief 简单数据调用接口
|
|||
|
|
*/
|
|||
|
|
virtual void SendDataShort(::Ice::Int, const ::Ice::ByteSeq&, ::Ice::Int,
|
|||
|
|
const Ice::Current&);
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* @brief 复杂数据调用接口
|
|||
|
|
*/
|
|||
|
|
virtual void SendDataLong(::Ice::Int, const ::Ice::ByteSeq&, ::Ice::Int,
|
|||
|
|
const ::std::string&, const ::std::string&,
|
|||
|
|
const ::std::string&, const Ice::Current&);
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* @brief 定时器调用接口
|
|||
|
|
*/
|
|||
|
|
virtual void TimeNotify(::Ice::Int, const ::Ice::ByteSeq&,
|
|||
|
|
const Ice::Current&);
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
std::unique_ptr<LOG> logger_; ///< 本地logger
|
|||
|
|
Generator generator_;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace baosight
|