#pragma once #include #include #include using namespace std; class MachineCfg { public: enum PrintStrategy { DATA = 0, //根据ScanField DATA_SEQ_OPT, Mass_Production_Strategy }; enum ScanType { RTC4 = 0, RTC5, RTC6_ETH }; enum SupplyMachineVersion { VERSION_1_0 = 0, VERSION_2_1, VERSION_2_2 }; MachineCfg(); ~MachineCfg(); void GetUpdateSql(vector& ups); bool IsDataStrategy() { return true; } bool IsDataSeqStragegy() { if (m_PrintStrategy == DATA_SEQ_OPT) { return true; } else return false; } bool IsMassStrategy() { if (m_PrintStrategy == Mass_Production_Strategy) { return true; } else return false; } public: string m_serial; string m_Name; int m_language; 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; bool m_UseTouchScreen; 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_USE_TOUCH_SCREEN; static const string CODE_MACHINE_CODE; static map> m_CodeMap; };