GrpcPrint/PrintS/Config/bean/TimePowerCompensate.h

42 lines
887 B
C
Raw Normal View History

2024-06-27 10:56:50 +08:00
#pragma once
2024-03-19 17:45:12 +08:00
#include <string>
#include <windows.h>
#include <Vector>
2024-06-27 10:56:50 +08:00
#include "../protobuf/stream.pb.h"
2024-03-19 17:45:12 +08:00
using namespace std;
class TimePowerCompensate
{
public:
TimePowerCompensate();
~TimePowerCompensate();
2024-06-27 10:56:50 +08:00
void SetTimePowerComp(stream::TimePowerCompensate* cp);
2024-03-19 17:45:12 +08:00
public:
int m_ID;
int m_Cno;
unsigned int m_StartMinute;
unsigned int m_EndMinute;
float m_Compensate;
public:
static const string TABLE_NAME;
static const string FIELD_ID;
static const string FIELD_CNO;
static const string FIELD_START_MINUTE;
static const string FIELD_END_MINUTE;
static const string FIELD_COMPENSATE;
};
bool TimePowerCompensateLess(const TimePowerCompensate * m1, const TimePowerCompensate * m2);
class TimePowerCompensateCfg
{
public:
TimePowerCompensateCfg();
~TimePowerCompensateCfg();
public:
CRITICAL_SECTION m_CS;
vector<TimePowerCompensate*> m_TimePowerCompensates;
};