57 lines
1.6 KiB
C
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; //<2F><>ʵλ<CAB5><CEBB>
|
|||
|
float m_SetPositionX; //<2F><>ֵλ<D6B5><CEBB>
|
|||
|
float m_PositionErrorX; //λ<><CEBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
float m_ActualPositionY; //<2F><>ʵλ<CAB5><CEBB>
|
|||
|
float m_SetPositionY; //<2F><>ֵλ<D6B5><CEBB>
|
|||
|
float m_PositionErrorY; //λ<><CEBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
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;
|
|||
|
};
|
|||
|
|