2026-05-09 11:23:45 +08:00
|
|
|
|
#pragma once
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @file eqpalg/eqpalg.h
|
|
|
|
|
|
* @brief 程序的主入口,相当于main
|
|
|
|
|
|
* @author Cat (null.null.null@qq.com)
|
|
|
|
|
|
* @version 0.1
|
|
|
|
|
|
* @date 2021-09-17
|
|
|
|
|
|
*
|
|
|
|
|
|
* Copyright: Baosight Co. Ltd.
|
|
|
|
|
|
* DO NOT COPY/USE WITHOUT PERMISSION
|
|
|
|
|
|
*
|
|
|
|
|
|
*/
|
|
|
|
|
|
#include <eqpalg/eqpalg_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 eqpalg : public Component {
|
|
|
|
|
|
public:
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @brief Construct a new eqpalg object
|
|
|
|
|
|
*/
|
|
|
|
|
|
eqpalg();
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @brief Destroy the eqpalg object
|
|
|
|
|
|
*/
|
|
|
|
|
|
virtual ~eqpalg();
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @brief 启动进程
|
|
|
|
|
|
* @return int
|
|
|
|
|
|
*/
|
|
|
|
|
|
virtual int start();
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
2026-05-09 13:30:09 +08:00
|
|
|
|
MessageICEPtr eqpalg_server;
|
|
|
|
|
|
std::shared_ptr<ConnectionMag> con_mag_;
|
|
|
|
|
|
std::unique_ptr<LOG> logger_;
|
|
|
|
|
|
};
|
2026-05-09 11:23:45 +08:00
|
|
|
|
};
|