diff 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
line wrap: on
line diff
--- a/Core/JobsEngine/JobStatus.h	Thu Jun 07 17:47:41 2018 +0200
+++ b/Core/JobsEngine/JobStatus.h	Thu Jun 07 18:18:02 2018 +0200
@@ -45,6 +45,7 @@
     std::string    jobType_;
     Json::Value    publicContent_;
     Json::Value    serialized_;
+    bool           hasSerialized_;
 
   public:
     JobStatus();
@@ -77,9 +78,11 @@
       return publicContent_;
     }
 
-    const Json::Value& GetSerialized() const
+    const Json::Value& GetSerialized() const;
+
+    bool HasSerialized() const
     {
-      return serialized_;
+      return hasSerialized_;
     }
   };
 }