38 lines
682 B
C++
38 lines
682 B
C++
/**
|
|
* @file AlgExpRunStatic.h
|
|
* @brief
|
|
* @author Cat (null.null.null@qq.com)
|
|
* @version 0.1
|
|
* @date 2021-03-09
|
|
*
|
|
* Company: Baosight Co. Ltd.
|
|
* DO NOT COPY/USE WITHOUT PERMISSION
|
|
*
|
|
*/
|
|
#pragma once
|
|
|
|
#include <eqpalg/algs/AlgExp.h>
|
|
#include <mix_cc/db2.h>
|
|
|
|
class AlgExpRunStatic : public AlgExp {
|
|
private:
|
|
int prev_running_state;
|
|
std::string prev_start_time;
|
|
|
|
public:
|
|
AlgExpRunStatic(const string &name, const Json::Value &rulejson,
|
|
const string &ruleId);
|
|
~AlgExpRunStatic();
|
|
|
|
public:
|
|
mix_cc::DBCom db_com_;
|
|
|
|
bool IsRunning();
|
|
|
|
int StorageToDB(int action);
|
|
|
|
Json::Value exec_mon();
|
|
|
|
int mon_proc(string &outjson, HD3Record *hdRec);
|
|
};
|