GrpcPrint/PrintS/log/ScannerStatus.h
2024-03-19 17:45:12 +08:00

57 lines
1.6 KiB
C++

#pragma once
#include <time.h>
#include <string>
#include "../external/SQLiteCpp/SQLiteCpp.h"
using namespace std;
class ScannerStatus
{
public:
ScannerStatus();
~ScannerStatus();
static void CreateIfNoExist(SQLite::Database* db);
public:
int m_ScanId;
time_t m_InsertTime;
long m_JobId;
unsigned int m_LayerIndex;
float m_ScanTempX;
float m_ScanTempY;
float m_ScanServoTempX;
float m_ScanServoTempY;
float m_ActualPositionX; //真实位置
float m_SetPositionX; //设值位置
float m_PositionErrorX; //位置误差
float m_ActualPositionY; //真实位置
float m_SetPositionY; //设值位置
float m_PositionErrorY; //位置误差
int m_LowStateX;
int m_LowStateY;
int m_HighStateX;
int m_HighStateY;
public:
static const string SCAN_TABLE_NAME;
static const string SCAN_FIELD_ID;
static const string SCAN_FIELD_SCAN_ID;
static const string SCAN_FIELD_INSERT_TIME;
static const string SCAN_FIELD_JOB_ID;
static const string SCAN_FIELD_LAYER_INDEX;
static const string SCAN_FIELD_SCAN_TEMP_X;
static const string SCAN_FIELD_SCAN_TEMP_Y;
static const string SCAN_FIELD_SERVO_TEMP_X;
static const string SCAN_FIELD_SERVO_TEMP_Y;
static const string SCAN_FIELD_ACTUAL_POSITION_X;
static const string SCAN_FIELD_SET_POSITION_X;
static const string SCAN_FIELD_POSITION_ERROR_X;
static const string SCAN_FIELD_ACTUAL_POSITION_Y;
static const string SCAN_FIELD_SET_POSITION_Y;
static const string SCAN_FIELD_POSITION_ERROR_Y;
static const string SCAN_FIELD_LOW_STATE_X;
static const string SCAN_FIELD_LOW_STATE_Y;
static const string SCAN_FIELD_HIGH_STATE_X;
static const string SCAN_FIELD_HIGH_STATE_Y;
};