UIClient.BasicMoulds.hpp 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. #pragma once
  2. #include <string>
  3. #include <algorithm>
  4. using namespace std;
  5. //
  6. //#include "TmplMould.tlh"
  7. //#include "TmplMould.tli"
  8. #include "DIOS.Dev.MouldDefine.hpp"
  9. #pragma warning (disable:4244) // warning C4244: “初始化”: 从“double”转换到“float”,可能丢失数据
  10. namespace DIOS::Dev::Detail
  11. {
  12. namespace UIClient
  13. {
  14. static const char* DeviceDriverType = "{18FDF176-DECE-445F-A52C-A14BDD3AC2C1}";
  15. static const char* DAPUnitType = "{123492D6-A546-4ACF-8EF1-2CCAA9EA974E}";
  16. namespace AttrKey
  17. {
  18. static const char* ERA = "ERA";//总错误数
  19. static const char* RSI = "RSI";//查询系统状态信息
  20. static const char* RMV = "RMV";//查询模块版本信息
  21. static const char* CFM = "CFM";//查询配置文件操作
  22. static const char* BRM = "BRM";//BackupRestore
  23. static const char* PLS = "PLS";//PMS登录状态
  24. static const char* UDO = "UDO";//Undo功能操作
  25. static const char* SHS = "SHS";//切换到服务模式
  26. static const char* STM = "STM";//当前工作模式,目前无用
  27. static const char* SDF = "SDF";//当前界面切换
  28. static const char* SOP = "SOP";//当前选中的view名
  29. static const char* SCREENLOCK = "SCREENLOCK";//当前发生器锁屏状态 1锁屏,0解锁
  30. static const char* SDN = "SDN";//关机
  31. static const char* AUTOCONFIG = "AUTOCONFIG";//AutoConfig
  32. static const char* WS2FD = "WS2FD";//设置所需要的探测器序列号的工作位 一般来自于Siemens的PMS的查询
  33. static const char* AUDITMESSAGE = "AUDITMESSAGE";//设置来自设备端的Audit Message,并非单指PMS
  34. }
  35. namespace ActionKey
  36. {
  37. //模拟测试热容量
  38. static const char* SetHET = "SetHET";
  39. //设置检查名称是否正确
  40. static const char* SetSHO = "SetSHO";
  41. //设置软件状态
  42. static const char* SetSTA = "SetSTA";
  43. //设置当前view名称到TUI
  44. static const char* SetPIM = "SetPIM";
  45. //设置系统信息
  46. static const char* SetSSI = "SetSSI";
  47. //设置组件版本信息
  48. static const char* SetSMV = "SetSMV";
  49. //设置处理配置文件结果
  50. static const char* SetCFM = "SetCFM";
  51. //设置backup结果
  52. static const char* SetBRM = "SetBRM";
  53. //检查最后错误数目
  54. static const char* SetERA = "SetERA";
  55. //锁屏功能设置
  56. static const char* SetScreenLockState = "SetScreenLockState";
  57. //设置探测器序列号
  58. static const char* SetFDSerialNumber = "SetFDSN";
  59. //设置SetUIDoing Action
  60. static const char* SetUIDoing = "SetUIDoing";
  61. }
  62. class ERAMould :public IntMould
  63. {
  64. using super = IntMould;
  65. public:
  66. ERAMould( int initialvalue, int lower, int upper, int accuracy)
  67. :super( AttrKey::ERA, initialvalue, lower, upper, accuracy)
  68. {}
  69. ~ERAMould() {}
  70. };
  71. class RSIMould :public IntMould
  72. {
  73. using super = IntMould;
  74. public:
  75. RSIMould( int initialvalue, int lower, int upper, int accuracy)
  76. :super( AttrKey::RSI, initialvalue, lower, upper, accuracy)
  77. {}
  78. ~RSIMould() {}
  79. };
  80. class RMVMould :public IntMould
  81. {
  82. using super = IntMould;
  83. public:
  84. RMVMould(int initialvalue, int lower, int upper, int accuracy)
  85. :super(AttrKey::RMV, initialvalue, lower, upper, accuracy)
  86. {}
  87. ~RMVMould() {}
  88. };
  89. class CFMMould :public IntMould
  90. {
  91. using super = IntMould;
  92. public:
  93. CFMMould(int initialvalue, int lower, int upper, int accuracy)
  94. :super(AttrKey::CFM, initialvalue, lower, upper, accuracy)
  95. {}
  96. ~CFMMould() {}
  97. };
  98. class BRMMould :public IntMould
  99. {
  100. using super = IntMould;
  101. public:
  102. BRMMould(int initialvalue, int lower, int upper, int accuracy)
  103. :super(AttrKey::BRM, initialvalue, lower, upper, accuracy)
  104. {}
  105. ~BRMMould() {}
  106. };
  107. class PLSMould :public IntMould
  108. {
  109. using super = IntMould;
  110. public:
  111. PLSMould(int initialvalue, int lower, int upper, int accuracy)
  112. :super(AttrKey::PLS, initialvalue, lower, upper, accuracy)
  113. {}
  114. ~PLSMould() {}
  115. };
  116. class UDOMould :public IntMould
  117. {
  118. using super = IntMould;
  119. public:
  120. UDOMould(int initialvalue, int lower, int upper, int accuracy)
  121. :super(AttrKey::UDO, initialvalue, lower, upper, accuracy)
  122. {}
  123. ~UDOMould() {}
  124. };
  125. class SHSMould :public IntMould
  126. {
  127. using super = IntMould;
  128. public:
  129. SHSMould(int initialvalue, int lower, int upper, int accuracy)
  130. :super(AttrKey::SHS, initialvalue, lower, upper, accuracy)
  131. {}
  132. ~SHSMould() {}
  133. };
  134. class STMMould :public IntMould
  135. {
  136. using super = IntMould;
  137. public:
  138. STMMould(int initialvalue, int lower, int upper, int accuracy)
  139. :super(AttrKey::STM, initialvalue, lower, upper, accuracy)
  140. {}
  141. ~STMMould() {}
  142. };
  143. class SDFMould :public IntMould
  144. {
  145. using super = IntMould;
  146. public:
  147. SDFMould(int initialvalue, int lower, int upper, int accuracy)
  148. :super(AttrKey::SDF, initialvalue, lower, upper, accuracy)
  149. {}
  150. ~SDFMould() {}
  151. };
  152. class SCREENLOCKMould :public IntMould
  153. {
  154. using super = IntMould;
  155. public:
  156. SCREENLOCKMould(int initialvalue, int lower, int upper, int accuracy)
  157. :super(AttrKey::SCREENLOCK, initialvalue, lower, upper, accuracy)
  158. {}
  159. ~SCREENLOCKMould() {}
  160. };
  161. class SOPMould :public StringMould
  162. {
  163. using super = StringMould;
  164. public:
  165. SOPMould(std::string initialvalue)
  166. :super(AttrKey::SOP, initialvalue)
  167. {
  168. }
  169. ~SOPMould()
  170. {
  171. }
  172. };
  173. class SDNMould :public StringMould
  174. {
  175. using super = StringMould;
  176. public:
  177. SDNMould(std::string initialvalue)
  178. :super(AttrKey::SDN, initialvalue)
  179. {
  180. }
  181. ~SDNMould()
  182. {
  183. }
  184. };
  185. class AUTOCONFIGMould :public IntMould
  186. {
  187. using super = IntMould;
  188. public:
  189. AUTOCONFIGMould(int initialvalue, int lower, int upper, int accuracy)
  190. :super(AttrKey::AUTOCONFIG, initialvalue, lower, upper, accuracy)
  191. {}
  192. ~AUTOCONFIGMould() {}
  193. };
  194. class WS2FDMould :public IntMould
  195. {
  196. using super = IntMould;
  197. public:
  198. WS2FDMould(int initialvalue, int lower, int upper, int accuracy)
  199. :super(AttrKey::WS2FD, initialvalue, lower, upper, accuracy)
  200. {}
  201. ~WS2FDMould() {}
  202. };
  203. class AUDITMSGMould :public StringMould
  204. {
  205. using super = StringMould;
  206. public:
  207. AUDITMSGMould(std::string initialvalue)
  208. :super(AttrKey::AUDITMESSAGE, initialvalue)
  209. {
  210. }
  211. ~AUDITMSGMould()
  212. {
  213. }
  214. };
  215. }
  216. }