#pragma once #include #include #include #include "../protobuf/stream.pb.h" using namespace std; class TimePowerCompensate { public: TimePowerCompensate(); ~TimePowerCompensate(); void SetTimePowerComp(stream::TimePowerCompensate* cp); 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 m_TimePowerCompensates; };