GrpcPrint/PrintS/Config/bean/PowerCompensate.h
2024-03-19 17:45:12 +08:00

37 lines
773 B
C++

#pragma once
#include <string>
#include <vector>
using namespace std;
class PowerCompensate
{
public:
PowerCompensate();
~PowerCompensate();
static void Generate(int cno,vector<string>& ins);
public:
int m_cno;
unsigned short m_percent;
float m_value;
float m_value_min;
float m_value_max;
public:
static const string TABLE_NAME;
static const string FIELD_CNO;
static const string FIELD_PERCENT;
static const string FIELD_VALUE;
static const string FIELD_VALUE_MIN;
static const string FIELD_VALUE_MAX;
};
bool PowerCompensateLess(const PowerCompensate * m1, const PowerCompensate * m2);
class PowerCompensateCfg {
public:
PowerCompensateCfg();
~PowerCompensateCfg();
float CalcPowerCompensate(float power);
public:
vector<PowerCompensate*> m_pcs;
};