41 lines
793 B
C++
41 lines
793 B
C++
#pragma once
|
|
#include <string>
|
|
#include <windows.h>
|
|
#include <Vector>
|
|
using namespace std;
|
|
|
|
class TimePowerCompensate
|
|
{
|
|
public:
|
|
TimePowerCompensate();
|
|
~TimePowerCompensate();
|
|
|
|
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;
|
|
}; |