40 lines
744 B
C
40 lines
744 B
C
|
|
#pragma once
|
||
|
|
#include <TestProject/CronTab/CronTab_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 CronTab : public Component {
|
||
|
|
public:
|
||
|
|
/**
|
||
|
|
* @brief Construct a new CronTab object
|
||
|
|
*/
|
||
|
|
CronTab();
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @brief Destroy the CronTab object
|
||
|
|
*/
|
||
|
|
virtual ~CronTab();
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @brief 启动进程
|
||
|
|
* @return int
|
||
|
|
*/
|
||
|
|
virtual int start();
|
||
|
|
|
||
|
|
private:
|
||
|
|
MessageICEPtr CronTab_server; ///< Ice通信模块
|
||
|
|
std::unique_ptr<LOG> logger_;
|
||
|
|
};
|
||
|
|
}; // namespace baosight
|