41 lines
808 B
C
41 lines
808 B
C
|
|
#pragma once
|
|||
|
|
#include <TestProject/DCR/DCR_icei.h>
|
|||
|
|
#include <glob/ConnectionMag.h>
|
|||
|
|
#include <log4cplus/LOG.h>
|
|||
|
|
#include <pace/Component.h>
|
|||
|
|
#include <pace/pace.h>
|
|||
|
|
#include <iostream>
|
|||
|
|
#include <memory>
|
|||
|
|
#include <string>
|
|||
|
|
|
|||
|
|
using namespace std;
|
|||
|
|
|
|||
|
|
namespace baosight {
|
|||
|
|
/**
|
|||
|
|
* @brief 负载程序的启动和初始变量信息的加载
|
|||
|
|
*/
|
|||
|
|
class DCR : public Component {
|
|||
|
|
public:
|
|||
|
|
/**
|
|||
|
|
* @brief Construct a new DCR object
|
|||
|
|
*/
|
|||
|
|
DCR();
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* @brief Destroy the DCR object
|
|||
|
|
*/
|
|||
|
|
virtual ~DCR();
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* @brief 启动进程
|
|||
|
|
* @return int
|
|||
|
|
*/
|
|||
|
|
virtual int start();
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
std::shared_ptr<ConnectionMag> con_mag_; ///< DB2连接管理器,邹师傅的模块需要
|
|||
|
|
MessageICEPtr DCR_server; ///< Ice通信模块
|
|||
|
|
std::unique_ptr<LOG> logger_;
|
|||
|
|
};
|
|||
|
|
}; // namespace baosight
|