2024-03-19 17:45:12 +08:00
|
|
|
|
#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; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>1
|
|
|
|
|
float m_PrintOxygen2; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2
|
2024-05-22 15:58:54 +08:00
|
|
|
|
float m_PrintTemp; //<2F><><EFBFBD><EFBFBD><EFBFBD>¶<EFBFBD>
|
|
|
|
|
float m_PrintHumidity; //<2F><><EFBFBD><EFBFBD>ʪ<EFBFBD><CAAA>
|
2024-03-19 17:45:12 +08:00
|
|
|
|
float m_PrintPressure; //<2F><><EFBFBD><EFBFBD>ѹ<EFBFBD><D1B9>
|
|
|
|
|
float m_FanFrequency; //<2F><><EFBFBD><EFBFBD>Ƶ<EFBFBD><C6B5>
|
|
|
|
|
float m_PlateTemp; //<2F><><EFBFBD><EFBFBD><EFBFBD>¶<EFBFBD>
|
|
|
|
|
float m_WindRate; // <20><><EFBFBD><EFBFBD>
|
2024-05-22 15:58:54 +08:00
|
|
|
|
float m_WaterTemp; //ˮ<><CBAE>
|
2024-03-19 17:45:12 +08:00
|
|
|
|
|
|
|
|
|
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;
|
2024-05-22 15:58:54 +08:00
|
|
|
|
static const string STATUS_FIELD_PRINT_TEMP;
|
|
|
|
|
static const string STATUS_FIELD_PRINT_HUMIDITY;
|
2024-03-19 17:45:12 +08:00
|
|
|
|
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;
|
2024-05-22 15:58:54 +08:00
|
|
|
|
static const string STATUS_FIELD_WATER_TEMP;
|
2024-03-19 17:45:12 +08:00
|
|
|
|
};
|