35 lines
660 B
C
35 lines
660 B
C
|
|
|
||
|
|
#ifndef H_zcus_CalcScore_H
|
||
|
|
#define H_zcus_CalcScore_H
|
||
|
|
#include <zlib/MemTable.hpp>
|
||
|
|
#include <zlib/coilDef.h>
|
||
|
|
#include <zlib/MemCachedClient.h>
|
||
|
|
#include <zlib/MemTrk.h>
|
||
|
|
#include <string>
|
||
|
|
#include "T_ALARM_MSG.h"
|
||
|
|
#include "T_SCORE_RULE.h"
|
||
|
|
|
||
|
|
namespace baosight
|
||
|
|
{
|
||
|
|
class CalcScore
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
CalcScore();
|
||
|
|
virtual ~CalcScore();
|
||
|
|
public:
|
||
|
|
int getCoilScore(std::string entId);
|
||
|
|
int getTermScore(std::string term);
|
||
|
|
int setMemScore(string extId,const string& descion,float score);
|
||
|
|
private:
|
||
|
|
T_ALARM_MSG* AlarmMsg;
|
||
|
|
T_SCORE_RULE* ScoreRule;
|
||
|
|
CMemTable<PDO>* pt_pdo;
|
||
|
|
std::string db_where;
|
||
|
|
std::string db_order;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
#endif
|
||
|
|
|
||
|
|
|
||
|
|
|