dgns_gtcvrparam.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. //
  2. // Created by lloyd on 2020/10/14.
  3. //
  4. #ifndef GTCVR_DGNS_GTCVRPARAM_H
  5. #define GTCVR_DGNS_GTCVRPARAM_H
  6. #include "string"
  7. class dgns_gtcvrparam {
  8. public:
  9. int paramid;
  10. std::string paramitemname;
  11. std::string paramcontent;
  12. //杆断类参数
  13. class paramrodbreaktype {
  14. public:
  15. paramrodbreaktype();
  16. double DLoadWave;
  17. double GTAreaWave;
  18. double SimilarOfBZT;
  19. double DLoadDown3;
  20. double case3_param1;
  21. double case3_param2;
  22. double case3_param3;
  23. double case3_param4;
  24. double case3_param5;
  25. double case1_param1;
  26. };
  27. //生产变化参数
  28. class paramworksyschange{
  29. public:
  30. paramworksyschange();
  31. double param1;
  32. double param2;
  33. };
  34. //出砂诊断参数
  35. class paramoutsandorvibration{
  36. public:
  37. paramoutsandorvibration();
  38. int WaveCrest_MinNum;
  39. int WaveTrough_MinNum;
  40. double AmplitudeMin;
  41. double SD_Vibration;
  42. double SD_Sand;
  43. };
  44. enum parammodelkind{
  45. paramrodbreaktype_,
  46. paramworksyschange_,
  47. paramoutsandorvibration_,
  48. };
  49. /*template<class T>
  50. void getparam(T paramobj);
  51. void getparam(std::string paramcodename);*/
  52. void *getParam(parammodelkind mk);
  53. std::string allParamToJsonTranslate();
  54. };
  55. #endif //GTCVR_DGNS_GTCVRPARAM_H