eis/TestProject/DCR/DCR.h

41 lines
808 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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