52 lines
1.5 KiB
C++
52 lines
1.5 KiB
C++
#pragma once
|
|
#include <string>
|
|
#include <time.h>
|
|
#include "../external/SQLiteCpp/SQLiteCpp.h"
|
|
|
|
using namespace std;
|
|
class LayerStatus
|
|
{
|
|
public:
|
|
LayerStatus();
|
|
~LayerStatus();
|
|
static void CreateIfNoExist(SQLite::Database* db);
|
|
|
|
public:
|
|
long m_Id;
|
|
time_t m_InsertTitme;
|
|
long m_JobId;
|
|
string m_JobName;
|
|
int m_LayerIndex;
|
|
unsigned int m_SpendSecond;
|
|
double m_MoldMainPos;
|
|
double m_MoldSlavePos;
|
|
float m_PrintOxygen1; //²ÕÄÚÑõº¬Á¿1
|
|
float m_PrintOxygen2; //²ÕÄÚÑõº¬Á¿2
|
|
float m_PrintTemp; //²ÕÄÚζÈ
|
|
float m_PrintHumidity; //²ÖÄÚʪ¶È
|
|
float m_PrintPressure; //²ÕÄÚѹÁ¦
|
|
float m_FanFrequency; //·ç»úƵÂÊ
|
|
float m_PlateTemp; //»ù°åζÈ
|
|
float m_WindRate; // ·çËÙ
|
|
float m_WaterTemp; //Ë®ÎÂ
|
|
|
|
public:
|
|
static const string STATUS_TABLE_NAME;
|
|
static const string STATUS_FIELD_ID;
|
|
static const string STATUS_FIELD_INSERT_TIME;
|
|
static const string STATUS_FIELD_JOB_ID;
|
|
static const string STATUS_FIELD_LAYER_INDEX;
|
|
static const string STATUS_FIELD_SPEND_SECOND;
|
|
static const string STATUS_FIELD_MOLD_MAIN_POS;
|
|
static const string STATUS_FIELD_MOLD_SLAVE_POS;
|
|
static const string STATUS_FIELD_PRINT_OXYGEN1;
|
|
static const string STATUS_FIELD_PRINT_OXYGEN2;
|
|
static const string STATUS_FIELD_PRINT_TEMP;
|
|
static const string STATUS_FIELD_PRINT_HUMIDITY;
|
|
static const string STATUS_FIELD_PRINT_PRESSURE;
|
|
static const string STATUS_FIELD_FAN_FREQUENCY;
|
|
static const string STATUS_FIELD_PLATE_TEMP;
|
|
static const string STATUS_FIELD_WIND_RATE;
|
|
static const string STATUS_FIELD_WATER_TEMP;
|
|
};
|