1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #ifndef BOOSTJSONOBJECT_H
- #define BOOSTJSONOBJECT_H
- #include "display_struct.h"
- #include <boost/property_tree/ptree.hpp>
- #include <boost/property_tree/json_parser.hpp>
- #include "../../VTK/widget/slicedisplaywidget.h"
- #include <string>
- #include <vector>
- #include <QMap>
- #include <QString>
- #include <sstream>
- #include <iostream>
- #include <QDebug>
- class boostJsonObject
- {
- public:
- boostJsonObject();
- ~boostJsonObject();
- void FromJson(std::string msg);
- boostJsonObject* operator=(boostJsonObject* object);
- std::string ToJson(std::string type,QMap<QString,std::string> map_);
- void FromParamJson(std::string);
- std::string ToJson_updateslice(QMap<int,SliceDisplayWidget*>);
- public:
- std::string usrId;
- std::string solverConfigid;
- std::string proId;
- std::string paramJson;
- std::string filePath;
- std::string fileType;
- std::string fileName;
- std::string action;
- contourDisplay_struct* cd_struct;//contour
- contourDisplay_struct* ld_struct;//line
- vectorDisplay_struct* vc_struct;//vector
- solidsurfaceDisplay_struct* sf_struct;//solidsurface
- sliceDisplay_struct* sd_struct;//slice
- vector<sliceDisplay_struct*> vec_sd_struct;
- streamDisplay_struct* sm_struct;//stream
- };
- #endif // BOOSTJSONOBJECT_H
|