#pragma once #include #include #include #include #include "../protobuf/stream.pb.h" using namespace std; class FixPointCfg { public: FixPointCfg(); ~FixPointCfg(); string GetUpdateSql(); void SetFixPointCfg(stream::FixPointData* sp); public: int m_Id; int m_Cno; float m_PointX; float m_PointY; unsigned int m_Duration; public: static const string TABLE_NAME; static const string FIELD_ID; static const string FIELD_CNO; static const string FIELD_POINT_X; static const string FIELD_POINT_Y; static const string FIELD_DURATION; }; class FixPointWrapper { public: FixPointWrapper() { } ~FixPointWrapper() { } //void Lock() { EnterCriticalSection(&m_CS); } //void Unlock() { LeaveCriticalSection(&m_CS); } public: list m_Cfgs; CRITICAL_SECTION m_CS; };