GrpcPrint/PrintS/Config/bean/FixPointCfg.h
2024-03-19 17:45:12 +08:00

40 lines
744 B
C++

#pragma once
#include <windows.h>
#include <string>
#include <vector>
#include <list>
using namespace std;
class FixPointCfg
{
public:
FixPointCfg();
~FixPointCfg();
string GetUpdateSql();
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;
};