diff OrthancFramework/Sources/JobsEngine/SetOfCommandsJob.h @ 4300:b30a8de92ad9

abi continued
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 05 Nov 2020 19:33:18 +0100
parents 2007ab69ac16
children 44b53a2c0a13
line wrap: on
line diff
--- a/OrthancFramework/Sources/JobsEngine/SetOfCommandsJob.h	Thu Nov 05 18:24:50 2020 +0100
+++ b/OrthancFramework/Sources/JobsEngine/SetOfCommandsJob.h	Thu Nov 05 19:33:18 2020 +0100
@@ -36,9 +36,7 @@
     class ICommand : public boost::noncopyable
     {
     public:
-      virtual ~ICommand()
-      {
-      }
+      virtual ~ICommand();
 
       virtual bool Execute(const std::string& jobId) = 0;
 
@@ -48,9 +46,7 @@
     class ICommandUnserializer : public boost::noncopyable
     {
     public:
-      virtual ~ICommandUnserializer()
-      {
-      }
+      virtual ~ICommandUnserializer();
       
       virtual ICommand* Unserialize(const Json::Value& source) const = 0;
     };
@@ -70,15 +66,9 @@
 
     virtual ~SetOfCommandsJob();
 
-    size_t GetPosition() const
-    {
-      return position_;
-    }
+    size_t GetPosition() const;
 
-    void SetDescription(const std::string& description)
-    {
-      description_ = description;
-    }
+    void SetDescription(const std::string& description);
 
     const std::string& GetDescription() const
     {
@@ -87,33 +77,21 @@
 
     void Reserve(size_t size);
 
-    size_t GetCommandsCount() const
-    {
-      return commands_.size();
-    }
+    size_t GetCommandsCount() const;
 
     void AddCommand(ICommand* command);  // Takes ownership
 
-    bool IsPermissive() const
-    {
-      return permissive_;
-    }
+    bool IsPermissive() const;
 
     void SetPermissive(bool permissive);
 
     virtual void Reset() ORTHANC_OVERRIDE;
     
-    virtual void Start() ORTHANC_OVERRIDE
-    {
-      started_ = true;
-    }
+    virtual void Start() ORTHANC_OVERRIDE;
     
     virtual float GetProgress() ORTHANC_OVERRIDE;
 
-    bool IsStarted() const
-    {
-      return started_;
-    }
+    bool IsStarted() const;
 
     const ICommand& GetCommand(size_t index) const;
       
@@ -125,9 +103,6 @@
 
     virtual bool GetOutput(std::string& output,
                            MimeType& mime,
-                           const std::string& key) ORTHANC_OVERRIDE
-    {
-      return false;
-    }
+                           const std::string& key) ORTHANC_OVERRIDE;
   };
 }