eis/inc/eqpalg/algs/AlgExpAction.h

44 lines
1007 B
C
Raw Normal View History

/******************************************************************************************************************
* Action instruction algorithm
*
* arg[0] action expression
* arg[1] feedback expression
* arg[2] expression of judgment result
*
* 1.0 2020-12-17 zoufuzhou
******************************************************************************************************************/
#ifndef _H_ALGORITHM_EXPRESSION_ACTION_H
#define _H_ALGORITHM_EXPRESSION_ACTION_H
#include <eqpalg/AlgCommonDefine.h>
#include <eqpalg/algs/AlgExp.h>
#include <string>
#include <iostream>
#include <iomanip>
class AlgExpAction:virtual public AlgExp
{
public:
AlgExpAction(const string& name,const Json::Value& rulejson, const string& ruleid,IHDBTools* ihdb);
virtual ~AlgExpAction();
public:
virtual int Reload();
virtual int calculate(string& outjson);
private:
int calculate_once(string& outjson);
private:
MathExpression* mp_expact;
MathExpression* mp_expfbk;
};
#endif