diff OrthancFramework/Sources/JobsEngine/SetOfInstancesJob.cpp @ 4304:50b0c69b653a

continued abi
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 06 Nov 2020 16:33:52 +0100
parents 2007ab69ac16
children d9473bd5ed43
line wrap: on
line diff
--- a/OrthancFramework/Sources/JobsEngine/SetOfInstancesJob.cpp	Fri Nov 06 15:37:30 2020 +0100
+++ b/OrthancFramework/Sources/JobsEngine/SetOfInstancesJob.cpp	Fri Nov 06 16:33:52 2020 +0100
@@ -127,7 +127,13 @@
   {
   }
 
-    
+
+  void SetOfInstancesJob::AddParentResource(const std::string &resource)
+  {
+    parentResources_.insert(resource);
+  }
+
+
   void SetOfInstancesJob::AddInstance(const std::string& instance)
   {
     AddCommand(new InstanceCommand(*this, instance));
@@ -167,10 +173,25 @@
     }
   }
 
+  bool SetOfInstancesJob::HasTrailingStep() const
+  {
+    return hasTrailingStep_;
+  }
+
+  const std::set<std::string> &SetOfInstancesJob::GetFailedInstances() const
+  {
+    return failedInstances_;
+  }
+
+  bool SetOfInstancesJob::IsFailedInstance(const std::string &instance) const
+  {
+    return failedInstances_.find(instance) != failedInstances_.end();
+  }
+
 
   void SetOfInstancesJob::Start()
   {
-    SetOfCommandsJob::Start();    
+    SetOfCommandsJob::Start();
   }
 
 
@@ -236,6 +257,4 @@
       hasTrailingStep_ = false;
     }
   }
-  
-
 }