28 lines
560 B
C
28 lines
560 B
C
|
|
#ifndef _H_ALGORITHM_WASTE_GAS_H
|
||
|
|
#define _H_ALGORITHM_WASTE_GAS_H
|
||
|
|
|
||
|
|
#include <eqpalg/AlgCommonDefine.h>
|
||
|
|
#include <eqpalg/alg_base.h>
|
||
|
|
#include <zcus/IHDBTools.h>
|
||
|
|
#include <string>
|
||
|
|
#include <iostream>
|
||
|
|
#include <iomanip>
|
||
|
|
|
||
|
|
class AlgWasteGas:virtual public AlgBase
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
AlgWasteGas(const string name,const Json::Value rulejson, const string ruleId);
|
||
|
|
|
||
|
|
virtual ~AlgWasteGas();
|
||
|
|
|
||
|
|
public:
|
||
|
|
|
||
|
|
virtual int init() override;
|
||
|
|
virtual int calculate(string& outjson);
|
||
|
|
|
||
|
|
private:
|
||
|
|
std::shared_ptr<IHDBTools> ihd_tools_;
|
||
|
|
time_t m_start;
|
||
|
|
};
|
||
|
|
#endif
|