50 lines
1.3 KiB
C++
50 lines
1.3 KiB
C++
#pragma once
|
|
#include <time.h>
|
|
#include <string>
|
|
#include "../external/SQLiteCpp/SQLiteCpp.h"
|
|
|
|
using namespace std;
|
|
|
|
class FocusStatus
|
|
{
|
|
public:
|
|
FocusStatus();
|
|
~FocusStatus();
|
|
static void CreateIfNoExist(SQLite::Database* db);
|
|
|
|
public:
|
|
int m_ScanId;
|
|
time_t m_InsertTime;
|
|
long m_JobId;
|
|
unsigned int m_LayerIndex;
|
|
float m_ScanServoTemp;
|
|
float m_PDSupplyVoltage; //PD供电电压
|
|
float m_DSPCoreSupplyVoltage; //DSP核心供电电压
|
|
float m_DSPIOVoltage; //DSP输入输出电压
|
|
float m_AnalogSectionVoltage; //模拟区电压
|
|
float m_ADConverterSupplyVoltage; //AD转换供电电压
|
|
float m_PDSupplyCurrent; //PD供电电流
|
|
int m_LowState;
|
|
int m_HighState;
|
|
int m_StopEven;
|
|
|
|
public:
|
|
static const string TABLE_NAME;
|
|
static const string FIELD_ID;
|
|
static const string FIELD_SCAN_ID;
|
|
static const string FIELD_INSERT_TIME;
|
|
static const string FIELD_JOB_ID;
|
|
static const string FIELD_LAYER_INDEX;
|
|
static const string FIELD_SCAN_SERVO_TEMP;
|
|
static const string FIELD_PD_SUPPLY_VOLTAGE;
|
|
static const string FIELD_DSP_CORE_SUPPLY_VOLTAGE;
|
|
static const string FIELD_DSP_IO_VOLTAGE;
|
|
static const string FIELD_ANALOG_SECTION_VOLTAGE;
|
|
static const string FIELD_AD_CONVERTER_SUPPLY_VOLTAGE;
|
|
static const string FIELD_PD_SUPPLY_CURRENT;
|
|
static const string FIELD_LOW_STATE;
|
|
static const string FIELD_HIGH_STATE;
|
|
static const string FIELD_STOP_ENEN;
|
|
};
|
|
|