dgns_gtbaseparam.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. //
  2. // Created by lloyd on 2020/10/14.
  3. //
  4. #ifndef GTCVR_DGNS_GTBASEPARAM_H
  5. #define GTCVR_DGNS_GTBASEPARAM_H
  6. #include "vector"
  7. class dgns_gtbaseparam {
  8. public:
  9. /**
  10. * Constructure
  11. */
  12. dgns_gtbaseparam();
  13. public:
  14. std::string id;
  15. std::string createtime;
  16. std::string recivetime;
  17. std::string wellname;
  18. std::vector<std::vector<double>> sgt;
  19. double s_max;
  20. double s_min;
  21. double l_max;
  22. double l_min;
  23. //载荷中线值
  24. double l_mid;
  25. //功图第一拐点载荷
  26. double l_fistdownturnpoint;
  27. //计算出来的冲程
  28. double s;
  29. //读过来的冲程 一手源数据
  30. double s_pre;
  31. //冲次
  32. double n;
  33. // 载荷差值
  34. double l;
  35. double s_effect;
  36. double area;
  37. //上行载荷均值
  38. double upload;
  39. //下行载荷均值
  40. double download;
  41. //0: not legal ;1: in legal ;default:-1
  42. int islegal;
  43. std::string remark;
  44. int sgtpointnum;
  45. //对应[ s_max ]的在array中的 index
  46. int s_max_point_location;
  47. //对应[ s_min ]的在array中的 index
  48. int s_min_point_location;
  49. //对应[ l_max ]的在array中的 index
  50. int l_max_point_location;
  51. //对应[ l_min ]的在array中的 index
  52. int l_min_point_location;
  53. /*-----------------------------------*/
  54. public:
  55. /**
  56. * trans gt formate str to obj
  57. * @param sgt
  58. * @return
  59. */
  60. std::vector<std::vector<double>> gt_trans_strtoarray(std::string sgt);
  61. std::string gt_trans_arraytostr(std::vector<std::vector<double>> sgt);
  62. };
  63. #endif //GTCVR_DGNS_GTBASEPARAM_H