28 lines
531 B
C
28 lines
531 B
C
|
|
#ifndef _H_ALGORITHM_LOOP_LEN_H
|
||
|
|
#define _H_ALGORITHM_LOOP_LEN_H
|
||
|
|
|
||
|
|
#include <eqpalg/AlgCommonDefine.h>
|
||
|
|
#include <eqpalg/AlgorithmBase.h>
|
||
|
|
#include <zcus/IHDBTools.h>
|
||
|
|
#include <string>
|
||
|
|
#include <iostream>
|
||
|
|
#include <iomanip>
|
||
|
|
|
||
|
|
class AlgLoopLen:virtual public AlgorithmBase
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
AlgLoopLen(const string name,const Json::Value rulejson, const string ruleid);
|
||
|
|
|
||
|
|
virtual ~AlgLoopLen();
|
||
|
|
|
||
|
|
public:
|
||
|
|
|
||
|
|
virtual int Reload();
|
||
|
|
virtual int calculate(string& outjson);
|
||
|
|
|
||
|
|
private:
|
||
|
|
time_t m_start;
|
||
|
|
double looplen_start;
|
||
|
|
};
|
||
|
|
#endif
|