2024-06-27 10:56:50 +08:00
|
|
|
|
#pragma once
|
2024-03-19 17:45:12 +08:00
|
|
|
|
#include <windows.h>
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <vector>
|
|
|
|
|
#include <list>
|
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 FixPointCfg
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
FixPointCfg();
|
|
|
|
|
~FixPointCfg();
|
|
|
|
|
string GetUpdateSql();
|
2024-06-27 10:56:50 +08:00
|
|
|
|
void SetFixPointCfg(stream::FixPointData* sp);
|
2024-03-19 17:45:12 +08:00
|
|
|
|
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<FixPointCfg*> m_Cfgs;
|
|
|
|
|
CRITICAL_SECTION m_CS;
|
|
|
|
|
};
|