boostjsonobject.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef BOOSTJSONOBJECT_H
  2. #define BOOSTJSONOBJECT_H
  3. #include "display_struct.h"
  4. #include <boost/property_tree/ptree.hpp>
  5. #include <boost/property_tree/json_parser.hpp>
  6. #include "../../VTK/widget/slicedisplaywidget.h"
  7. #include <string>
  8. #include <vector>
  9. #include <QMap>
  10. #include <QString>
  11. #include <sstream>
  12. #include <iostream>
  13. #include <QDebug>
  14. class boostJsonObject
  15. {
  16. public:
  17. boostJsonObject();
  18. ~boostJsonObject();
  19. void FromJson(std::string msg);
  20. boostJsonObject* operator=(boostJsonObject* object);
  21. std::string ToJson(std::string type,QMap<QString,std::string> map_);
  22. void FromParamJson(std::string);
  23. std::string ToJson_updateslice(QMap<int,SliceDisplayWidget*>);
  24. public:
  25. std::string usrId;
  26. std::string solverConfigid;
  27. std::string proId;
  28. std::string paramJson;
  29. std::string filePath;
  30. std::string fileType;
  31. std::string fileName;
  32. std::string action;
  33. contourDisplay_struct* cd_struct;//contour
  34. contourDisplay_struct* ld_struct;//line
  35. vectorDisplay_struct* vc_struct;//vector
  36. solidsurfaceDisplay_struct* sf_struct;//solidsurface
  37. sliceDisplay_struct* sd_struct;//slice
  38. vector<sliceDisplay_struct*> vec_sd_struct;
  39. streamDisplay_struct* sm_struct;//stream
  40. };
  41. #endif // BOOSTJSONOBJECT_H