53 lines
1.1 KiB
C
53 lines
1.1 KiB
C
|
#pragma once
|
||
|
#include <string>
|
||
|
#include <vector>
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
class SkyWritingCfg
|
||
|
{
|
||
|
public:
|
||
|
SkyWritingCfg();
|
||
|
~SkyWritingCfg();
|
||
|
void GetUpdateSql(int cno,vector<string>& ups);
|
||
|
|
||
|
public:
|
||
|
bool m_IsEnable;
|
||
|
double m_Timelag;
|
||
|
double m_TimelagMin;
|
||
|
double m_TimelagMax;
|
||
|
long m_LaserOnShift;
|
||
|
long m_LaserOnShiftMin;
|
||
|
long m_LaserOnShiftMax;
|
||
|
unsigned int m_Nprev;
|
||
|
unsigned int m_NprevMin;
|
||
|
unsigned int m_NprevMax;
|
||
|
unsigned int m_Npost;
|
||
|
unsigned int m_NpostMin;
|
||
|
unsigned int m_NpostMax;
|
||
|
int m_Mode;
|
||
|
double m_Limite;
|
||
|
double m_LimiteMin;
|
||
|
double m_LimiteMax;
|
||
|
public:
|
||
|
static string CONFIG_NAME;
|
||
|
static string FIELD_IS_ENABLE;
|
||
|
static string FIELD_TIMELAG;
|
||
|
static string FIELD_TIMELAG_MIN;
|
||
|
static string FIELD_TIMELAG_MAX;
|
||
|
static string FIELD_LASER_ON_SHIFT;
|
||
|
static string FIELD_LASER_ON_SHIFT_MIN;
|
||
|
static string FIELD_LASER_ON_SHIFT_MAX;
|
||
|
static string FIELD_NPREV;
|
||
|
static string FIELD_NPREV_MIN;
|
||
|
static string FIELD_NPREV_MAX;
|
||
|
static string FIELD_NPOST;
|
||
|
static string FIELD_NPOST_MIN;
|
||
|
static string FIELD_NPOST_MAX;
|
||
|
static string FIELD_MODE;
|
||
|
static string FIELD_LIMITE;
|
||
|
static string FIELD_LIMITE_MIN;
|
||
|
static string FIELD_LIMITE_MAX;
|
||
|
};
|
||
|
|