comparison Core/JobsEngine/JobStatus.h @ 2663:228e2783ce83 jobs

some jobs might not be serializable
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 07 Jun 2018 18:18:02 +0200
parents e1893d31652a
children 4e43e67f8ecf
comparison
equal deleted inserted replaced
2662:47d812308d63 2663:228e2783ce83
43 ErrorCode errorCode_; 43 ErrorCode errorCode_;
44 float progress_; 44 float progress_;
45 std::string jobType_; 45 std::string jobType_;
46 Json::Value publicContent_; 46 Json::Value publicContent_;
47 Json::Value serialized_; 47 Json::Value serialized_;
48 bool hasSerialized_;
48 49
49 public: 50 public:
50 JobStatus(); 51 JobStatus();
51 52
52 JobStatus(ErrorCode code, 53 JobStatus(ErrorCode code,
75 const Json::Value& GetPublicContent() const 76 const Json::Value& GetPublicContent() const
76 { 77 {
77 return publicContent_; 78 return publicContent_;
78 } 79 }
79 80
80 const Json::Value& GetSerialized() const 81 const Json::Value& GetSerialized() const;
82
83 bool HasSerialized() const
81 { 84 {
82 return serialized_; 85 return hasSerialized_;
83 } 86 }
84 }; 87 };
85 } 88 }