81 lines
2.0 KiB
C++
81 lines
2.0 KiB
C++
#pragma once
|
|
#include <string>
|
|
#include "../external/SQLiteCpp/SQLiteCpp.h"
|
|
#include <vector>
|
|
|
|
using namespace std;
|
|
class AxisLog
|
|
{
|
|
public:
|
|
AxisLog();
|
|
AxisLog(int64_t jobid, int64_t layerindex, int ct);
|
|
~AxisLog();
|
|
static void CreateIfNoExist(SQLite::Database* db);
|
|
|
|
public:
|
|
int64_t m_Id;
|
|
int64_t m_JobId;
|
|
uint32_t m_LayerIndex;
|
|
int m_CoverType;
|
|
float m_PreMoldPos;
|
|
float m_PreLinearEncoderPos;
|
|
float m_PreLoadPos;
|
|
float m_PreArmPos;
|
|
float m_PreSupplyPos;
|
|
float m_AftMoldPos;
|
|
float m_AftLinearEncoderPos;
|
|
float m_AftLoadPos;
|
|
float m_AftArmPos;
|
|
float m_AftSupplyPos;
|
|
uint32_t m_MoldDataCount;
|
|
uint32_t m_LoadDataCount;
|
|
uint32_t m_ArmDataCount;
|
|
uint32_t m_SupplyDataCount;
|
|
|
|
float* m_MoldData;
|
|
float* m_LoadData;
|
|
float* m_ArmData;
|
|
float* m_SupplyData;
|
|
|
|
public:
|
|
static const string AL_TABLE_NAME;
|
|
static const string AL_FIELD_ID;
|
|
static const string AL_FIELD_JOB_ID;
|
|
static const string AL_FIELD_LAYER_INDEX;
|
|
static const string AL_FIELD_COVER_TYPE;
|
|
static const string AL_FIELD_PRE_MOLD_POS;
|
|
static const string AL_FIELD_PRE_LINEAR_ENCODER_POS;
|
|
static const string AL_FIELD_PRE_LOAD_POS;
|
|
static const string AL_FIELD_PRE_ARM_POS;
|
|
static const string AL_FIELD_PRE_SUPPLY_POS;
|
|
static const string AL_FIELD_AFT_MOLD_POS;
|
|
static const string AL_FIELD_AFT_LINEAR_ENCODER_POS;
|
|
static const string AL_FIELD_AFT_LOAD_POS;
|
|
static const string AL_FIELD_AFT_ARM_POS;
|
|
static const string AL_FIELD_AFT_SUPPLY_POS;
|
|
static const string AL_FIELD_MOLD_DATA_COUNT;
|
|
static const string AL_FIELD_LOAD_DATA_COUNT;
|
|
static const string AL_FIELD_ARM_DATA_COUNT;
|
|
static const string AL_FIELD_SUPPLY_DATA_COUNT;
|
|
static const string AL_FIELD_MOLD_DATA;
|
|
static const string AL_FIELD_LOAD_DATA;
|
|
static const string AL_FIELD_ARM_DATA;
|
|
static const string AL_FIELD_SUPPLY_DATA;
|
|
};
|
|
|
|
class AxisLoadAssist {
|
|
public:
|
|
AxisLoadAssist(uint32_t* dataCount, float** data, SQLite::Column* datacolumn)
|
|
:m_DataCount(dataCount)
|
|
,m_Data(data)
|
|
,m_Column(datacolumn)
|
|
{
|
|
|
|
}
|
|
~AxisLoadAssist() {}
|
|
|
|
public:
|
|
uint32_t* m_DataCount;
|
|
float** m_Data;
|
|
SQLite::Column* m_Column;
|
|
}; |