52 lines
980 B
C
52 lines
980 B
C
|
|
#pragma once
|
|||
|
|
/**
|
|||
|
|
* @file RICS.h
|
|||
|
|
* @brief 数据保存
|
|||
|
|
* @author your name (you@domain.com)
|
|||
|
|
* @version 0.1
|
|||
|
|
* @date 2025-09-26
|
|||
|
|
*
|
|||
|
|
* Copyright: Baosight Co. Ltd.
|
|||
|
|
* DO NOT COPY/USE WITHOUT PERMISSION
|
|||
|
|
*
|
|||
|
|
*/
|
|||
|
|
#include <RICS/RICS_icei.h>
|
|||
|
|
#include <glob/ConnectionMag.h>
|
|||
|
|
#include <iostream>
|
|||
|
|
#include <log4cplus/LOG.h>
|
|||
|
|
#include <memory>
|
|||
|
|
#include <pace/Component.h>
|
|||
|
|
#include <pace/pace.h>
|
|||
|
|
#include <string>
|
|||
|
|
|
|||
|
|
using namespace std;
|
|||
|
|
|
|||
|
|
namespace baosight {
|
|||
|
|
/**
|
|||
|
|
* @brief 负载程序的启动和初始变量信息的加载
|
|||
|
|
*/
|
|||
|
|
class RICS : public Component {
|
|||
|
|
public:
|
|||
|
|
/**
|
|||
|
|
* @brief Construct a new RICS object
|
|||
|
|
*/
|
|||
|
|
RICS();
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* @brief Destroy the RICS object
|
|||
|
|
*/
|
|||
|
|
virtual ~RICS();
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* @brief 启动进程
|
|||
|
|
* @return int
|
|||
|
|
*/
|
|||
|
|
virtual int start();
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
MessageICEPtr RICS_server; ///< Ice通信模块
|
|||
|
|
std::unique_ptr<LOG> logger_;
|
|||
|
|
std::shared_ptr<ConnectionMag> con_mag_; ///< DB2连接管理器,邹师傅的模块需要
|
|||
|
|
};
|
|||
|
|
}; // namespace baosight
|