#pragma once #include #include using namespace std; // //#include "TmplMould.tlh" //#include "TmplMould.tli" #include "DIOS.Dev.MouldDefine.hpp" #pragma warning (disable:4244) // warning C4244: “初始化”: 从“double”转换到“float”,可能丢失数据 namespace DIOS::Dev::Detail { namespace UIClient { static const char* DeviceDriverType = "{18FDF176-DECE-445F-A52C-A14BDD3AC2C1}"; static const char* DAPUnitType = "{123492D6-A546-4ACF-8EF1-2CCAA9EA974E}"; namespace AttrKey { static const char* ERA = "ERA";//总错误数 static const char* RSI = "RSI";//查询系统状态信息 static const char* RMV = "RMV";//查询模块版本信息 static const char* CFM = "CFM";//查询配置文件操作 static const char* BRM = "BRM";//BackupRestore static const char* PLS = "PLS";//PMS登录状态 static const char* UDO = "UDO";//Undo功能操作 static const char* SHS = "SHS";//切换到服务模式 static const char* STM = "STM";//当前工作模式,目前无用 static const char* SDF = "SDF";//当前界面切换 static const char* SOP = "SOP";//当前选中的view名 static const char* SCREENLOCK = "SCREENLOCK";//当前发生器锁屏状态 1锁屏,0解锁 static const char* SDN = "SDN";//关机 static const char* AUTOCONFIG = "AUTOCONFIG";//AutoConfig static const char* WS2FD = "WS2FD";//设置所需要的探测器序列号的工作位 一般来自于Siemens的PMS的查询 static const char* AUDITMESSAGE = "AUDITMESSAGE";//设置来自设备端的Audit Message,并非单指PMS } namespace ActionKey { //模拟测试热容量 static const char* SetHET = "SetHET"; //设置检查名称是否正确 static const char* SetSHO = "SetSHO"; //设置软件状态 static const char* SetSTA = "SetSTA"; //设置当前view名称到TUI static const char* SetPIM = "SetPIM"; //设置系统信息 static const char* SetSSI = "SetSSI"; //设置组件版本信息 static const char* SetSMV = "SetSMV"; //设置处理配置文件结果 static const char* SetCFM = "SetCFM"; //设置backup结果 static const char* SetBRM = "SetBRM"; //检查最后错误数目 static const char* SetERA = "SetERA"; //锁屏功能设置 static const char* SetScreenLockState = "SetScreenLockState"; //设置探测器序列号 static const char* SetFDSerialNumber = "SetFDSN"; //设置SetUIDoing Action static const char* SetUIDoing = "SetUIDoing"; } class ERAMould :public IntMould { using super = IntMould; public: ERAMould( int initialvalue, int lower, int upper, int accuracy) :super( AttrKey::ERA, initialvalue, lower, upper, accuracy) {} ~ERAMould() {} }; class RSIMould :public IntMould { using super = IntMould; public: RSIMould( int initialvalue, int lower, int upper, int accuracy) :super( AttrKey::RSI, initialvalue, lower, upper, accuracy) {} ~RSIMould() {} }; class RMVMould :public IntMould { using super = IntMould; public: RMVMould(int initialvalue, int lower, int upper, int accuracy) :super(AttrKey::RMV, initialvalue, lower, upper, accuracy) {} ~RMVMould() {} }; class CFMMould :public IntMould { using super = IntMould; public: CFMMould(int initialvalue, int lower, int upper, int accuracy) :super(AttrKey::CFM, initialvalue, lower, upper, accuracy) {} ~CFMMould() {} }; class BRMMould :public IntMould { using super = IntMould; public: BRMMould(int initialvalue, int lower, int upper, int accuracy) :super(AttrKey::BRM, initialvalue, lower, upper, accuracy) {} ~BRMMould() {} }; class PLSMould :public IntMould { using super = IntMould; public: PLSMould(int initialvalue, int lower, int upper, int accuracy) :super(AttrKey::PLS, initialvalue, lower, upper, accuracy) {} ~PLSMould() {} }; class UDOMould :public IntMould { using super = IntMould; public: UDOMould(int initialvalue, int lower, int upper, int accuracy) :super(AttrKey::UDO, initialvalue, lower, upper, accuracy) {} ~UDOMould() {} }; class SHSMould :public IntMould { using super = IntMould; public: SHSMould(int initialvalue, int lower, int upper, int accuracy) :super(AttrKey::SHS, initialvalue, lower, upper, accuracy) {} ~SHSMould() {} }; class STMMould :public IntMould { using super = IntMould; public: STMMould(int initialvalue, int lower, int upper, int accuracy) :super(AttrKey::STM, initialvalue, lower, upper, accuracy) {} ~STMMould() {} }; class SDFMould :public IntMould { using super = IntMould; public: SDFMould(int initialvalue, int lower, int upper, int accuracy) :super(AttrKey::SDF, initialvalue, lower, upper, accuracy) {} ~SDFMould() {} }; class SCREENLOCKMould :public IntMould { using super = IntMould; public: SCREENLOCKMould(int initialvalue, int lower, int upper, int accuracy) :super(AttrKey::SCREENLOCK, initialvalue, lower, upper, accuracy) {} ~SCREENLOCKMould() {} }; class SOPMould :public StringMould { using super = StringMould; public: SOPMould(std::string initialvalue) :super(AttrKey::SOP, initialvalue) { } ~SOPMould() { } }; class SDNMould :public StringMould { using super = StringMould; public: SDNMould(std::string initialvalue) :super(AttrKey::SDN, initialvalue) { } ~SDNMould() { } }; class AUTOCONFIGMould :public IntMould { using super = IntMould; public: AUTOCONFIGMould(int initialvalue, int lower, int upper, int accuracy) :super(AttrKey::AUTOCONFIG, initialvalue, lower, upper, accuracy) {} ~AUTOCONFIGMould() {} }; class WS2FDMould :public IntMould { using super = IntMould; public: WS2FDMould(int initialvalue, int lower, int upper, int accuracy) :super(AttrKey::WS2FD, initialvalue, lower, upper, accuracy) {} ~WS2FDMould() {} }; class AUDITMSGMould :public StringMould { using super = StringMould; public: AUDITMSGMould(std::string initialvalue) :super(AttrKey::AUDITMESSAGE, initialvalue) { } ~AUDITMSGMould() { } }; } }