2024-06-27 10:56:50 +08:00
|
|
|
|
#pragma once
|
2024-03-19 17:45:12 +08:00
|
|
|
|
#include <string>
|
|
|
|
|
#include <vector>
|
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 SkyWritingCfg
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
SkyWritingCfg();
|
|
|
|
|
~SkyWritingCfg();
|
|
|
|
|
void GetUpdateSql(int cno,vector<string>& ups);
|
2024-06-27 10:56:50 +08:00
|
|
|
|
void SetSkyWritingCfg(stream::SkyWritingCfg* cp);
|
2024-03-19 17:45:12 +08:00
|
|
|
|
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;
|
|
|
|
|
};
|
|
|
|
|
|