eis/inc/dao/LimitsMag.h

96 lines
3.6 KiB
C
Raw Normal View History

/*********************************************************************
*
* : LimitsMag.h
*
* : Shanghai Baosight Software Co., Ltd.
*
* :
* :
* :
*
*
* 1.0 2010-09-02 echo_li
*
*********************************************************************/
#ifndef _LIMITS_MAG_H
#define _LIMITS_MAG_H
#include <base/TypeCheck.h>
#include <log4cplus/LOG.h>
#include "dbinc/T_LOV_LIMIT.h"
using namespace log4cplus;
/*********************************************************************
* : //TODO请补充类名称
* : Shanghai Baosight Software Co., Ltd.
* :
* :
* :
*
* 1.0 2010-09-02 echo_li
*
*********************************************************************/
class LimitsMag{
public:
LimitsMag();
/**********************************************************************
* :
* CheckNumberLimit
* short 0 Limit表中的报警等级
* :
* limitName: const char *
* value: float
* type: const char *
*
*
* 1.0 2010-09-02 echo_li
*
**********************************************************************/
short CheckNumberLimit( const char *limitName, float value, const char * type = "L3");
/**********************************************************************
* :
* CheckCharAvailable
* short 0 Limit表中的报警等级
* :
* limitName: const char *
* value: const char *
* type: const char *
*
*
* 1.0 2010-09-02 echo_li
*
**********************************************************************/
short CheckCharAvailable( const char *limitName, const char* input, const char* type = "L3");
short CheckEnumeChar( const char *assemb, const char* input);
/**********************************************************************
* : ,
* CheckNumberLimit
* short 0 Limit表中的报警等级
* :
* limitName: const char *
* value: float *
* type: const char *
*
*
* 1.0 2010-09-02 echo_li
*
**********************************************************************/
short ApplyNumberLimit( const char *limitName, float *value, const char* type = "L3");
private:
short Limit2( const char *input, const char *assemb);
public:
virtual ~LimitsMag();
private:
T_LOV_LIMIT *mp_plantLimits;
char *dbMessage;
};
#endif //Endif _LIMITS_MAG_H