55 lines
1.1 KiB
C++
55 lines
1.1 KiB
C++
#pragma once
|
|
#include <string>
|
|
#include "../external/SQLiteCpp/SQLiteCpp.h"
|
|
#include <vector>
|
|
|
|
using namespace std;
|
|
class InfraredTempLog
|
|
{
|
|
public:
|
|
struct ITPair {
|
|
int Pid;
|
|
float PreCover;
|
|
float AftCover;
|
|
float WaitMax;
|
|
float PrintMax;
|
|
float m_DifTemp;
|
|
float m_PowerAdjustValue;
|
|
|
|
ITPair() {
|
|
Pid = 0;
|
|
PreCover=0.0f;
|
|
AftCover = 0.0f;
|
|
WaitMax = 0.0f;
|
|
PrintMax = 0.0f;
|
|
m_DifTemp = 0.0f;
|
|
m_PowerAdjustValue = 0.0f;
|
|
}
|
|
};
|
|
|
|
InfraredTempLog();
|
|
~InfraredTempLog();
|
|
static void CreateIfNoExist(SQLite::Database* db);
|
|
public:
|
|
int64_t m_Id;
|
|
int64_t m_JobId;
|
|
uint32_t m_LayerIndex;
|
|
int m_PartCount;
|
|
time_t m_PreInsertTime;
|
|
time_t m_AftInserTime;
|
|
time_t m_FinishedTime;
|
|
vector<ITPair> m_Temps;
|
|
|
|
public:
|
|
static const string IT_TABLE_NAME;
|
|
static const string IT_FIELD_ID;
|
|
static const string IT_FIELD_PRE_INSERT_TIME;
|
|
static const string IT_FIELD_AFT_INSERT_TIME;
|
|
static const string IT_FIELD_FINISHED_TIME;
|
|
static const string IT_FIELD_JOB_ID;
|
|
static const string IT_FIELD_LAYER_INDEX;
|
|
static const string IT_FIELD_PART_COUNT;
|
|
static const string IT_FIELD_TEMP_DATA;
|
|
};
|
|
|