109 lines
2.4 KiB
C++
109 lines
2.4 KiB
C++
#pragma once
|
||
#include <string>
|
||
#include <vector>
|
||
#include <map>
|
||
|
||
using namespace std;
|
||
|
||
class MachineCfg
|
||
{
|
||
public:
|
||
enum PrintStrategy {
|
||
DATA = 0, //¸ù¾ÝScanField
|
||
DATA_SEQ, //data order
|
||
DATA_SEQ_OPT,
|
||
|
||
};
|
||
|
||
enum ScanType{
|
||
RTC4 = 0,
|
||
RTC5,
|
||
RTC6_ETH
|
||
};
|
||
|
||
enum SupplyMachineVersion {
|
||
VERSION_1_0 = 0,
|
||
VERSION_2_1,
|
||
VERSION_2_2
|
||
};
|
||
|
||
MachineCfg();
|
||
~MachineCfg();
|
||
void GetUpdateSql(vector<string>& ups);
|
||
|
||
bool IsDataStrategy() {
|
||
return true;
|
||
}
|
||
|
||
bool IsDataSeqStragegy() {
|
||
if (m_PrintStrategy == DATA_SEQ || m_PrintStrategy == DATA_SEQ_OPT) {
|
||
return true;
|
||
}
|
||
else return false;
|
||
}
|
||
|
||
public:
|
||
string m_serial;
|
||
string m_Name;
|
||
int m_language;
|
||
string m_I18NLang;
|
||
int m_MachineType;
|
||
int m_ScanControl;
|
||
bool m_IsIntelli;
|
||
int m_PulifierType;
|
||
float m_fontSize;
|
||
float m_fontScale;
|
||
time_t m_lastStartTime;
|
||
time_t m_lastShutdownTime;
|
||
string m_LockPassword;
|
||
float m_LockAlpha;
|
||
int m_LockIdleTime;
|
||
time_t m_ExpriedTime;
|
||
string m_ConnectPassword;
|
||
string m_Location;
|
||
int m_PlatformShape;
|
||
bool m_SupportNonEncMagic;
|
||
int m_PrintStrategy;
|
||
int m_PlatformLength;
|
||
int m_PlatformWidth;
|
||
int m_IOVersion;
|
||
int m_SupplyMachineVersion;
|
||
string m_MachineCode;
|
||
char m_MachineCodeAss[64];
|
||
public:
|
||
static const string TABLE_NAME;
|
||
static const string FIELD_CODE;
|
||
static const string FIELD_VALUE;
|
||
|
||
static const string CODE_SERIAL;
|
||
static const string CODE_NAME;
|
||
static const string CODE_LANGUAGE;
|
||
static const string CODE_MACHINE_TYPE;
|
||
static const string CODE_SCAN_CONTROL;
|
||
static const string CODE_PULIFIER_TYPE;
|
||
static const string CODE_LAST_START_TIME;
|
||
static const string CODE_LAST_SHUTDOWN_TIME;
|
||
static const string CODE_FONT_SIZE;
|
||
static const string CODE_FONT_SCALE;
|
||
static const string CODE_LOCK_PASSWORD;
|
||
static const string CODE_LOCK_ALPHA;
|
||
static const string CODE_LOCK_IDLE_TIME;
|
||
static const string CODE_EXPIRED_TIME;
|
||
static const string CODE_HEATING_ENABLE;
|
||
//static const string CODE_IS_REMOTE_CONNECT;
|
||
static const string CODE_CONNECT_PASSWORD;
|
||
static const string CODE_LOCATION;
|
||
static const string CODE_SHAPE;
|
||
static const string CODE_SUPPORT_NON_ENC_MAGIC;
|
||
static const string CODE_PRINT_STRATEGY;
|
||
static const string CODE_PLATFORM_LENGTH;
|
||
static const string CODE_PLATFORM_WIDTH;
|
||
static const string CODE_IS_INTELLI;
|
||
static const string CODE_IO_VERSION;
|
||
static const string CODE_SUPPLY_MACHINE_VERSION;
|
||
static const string CODE_MACHINE_CODE;
|
||
static const string CODE_I18N_LANG;
|
||
static map<int, vector<string>> m_CodeMap;
|
||
};
|
||
|