diff Framework/Oracle/GenericOracleRunner.cpp @ 1128:8e3763d1736a broker

removing CustomOracleCommand
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 05 Nov 2019 22:39:25 +0100
parents a8bf81756839
children 87fbeb823375
line wrap: on
line diff
--- a/Framework/Oracle/GenericOracleRunner.cpp	Tue Nov 05 19:01:57 2019 +0100
+++ b/Framework/Oracle/GenericOracleRunner.cpp	Tue Nov 05 22:39:25 2019 +0100
@@ -25,7 +25,6 @@
 #  error The macro ORTHANC_ENABLE_DCMTK must be defined
 #endif
 
-#include "CustomOracleCommand.h"
 #include "GetOrthancImageCommand.h"
 #include "GetOrthancWebViewerJpegCommand.h"
 #include "HttpCommand.h"
@@ -214,7 +213,7 @@
 
 
   static IMessage* Execute(const std::string& root,
-                           const ReadFileCommand& command)
+                           ReadFileCommand& command)
   {
     std::string path = GetPath(root, command.GetPath());
 
@@ -348,11 +347,8 @@
         case IOracleCommand::Type_GetOrthancWebViewerJpeg:
           return Execute(orthanc_, dynamic_cast<const GetOrthancWebViewerJpegCommand&>(command));
 
-        case IOracleCommand::Type_Custom:
-          return dynamic_cast<CustomOracleCommand&>(command).Execute(*this);
-
         case IOracleCommand::Type_ReadFile:
-          return Execute(rootDirectory_, dynamic_cast<const ReadFileCommand&>(command));
+          return Execute(rootDirectory_, dynamic_cast<ReadFileCommand&>(command));
 
         case IOracleCommand::Type_ParseDicomFile:
 #if ORTHANC_ENABLE_DCMTK == 1