comparison Framework/Oracle/GenericOracleRunner.h @ 1129:c3d4adf8bc70 broker

removing IOracleRunner abstraction
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 05 Nov 2019 22:45:27 +0100
parents 3308ef083297
children 87fbeb823375
comparison
equal deleted inserted replaced
1128:8e3763d1736a 1129:c3d4adf8bc70
19 **/ 19 **/
20 20
21 21
22 #pragma once 22 #pragma once
23 23
24 #include "IOracleRunner.h"
25
26 #if !defined(ORTHANC_ENABLE_DCMTK) 24 #if !defined(ORTHANC_ENABLE_DCMTK)
27 # error The macro ORTHANC_ENABLE_DCMTK must be defined 25 # error The macro ORTHANC_ENABLE_DCMTK must be defined
28 #endif 26 #endif
29 27
30 #if ORTHANC_ENABLE_DCMTK == 1 28 #if ORTHANC_ENABLE_DCMTK == 1
31 # include "../Toolbox/ParsedDicomFileCache.h" 29 # include "../Toolbox/ParsedDicomFileCache.h"
32 #endif 30 #endif
33 31
32 #include "IOracleCommand.h"
34 33
35 #include <Core/Enumerations.h> // For ORTHANC_OVERRIDE 34 #include <Core/Enumerations.h> // For ORTHANC_OVERRIDE
36 #include <Core/WebServiceParameters.h> 35 #include <Core/WebServiceParameters.h>
37 36
38 namespace OrthancStone 37 namespace OrthancStone
39 { 38 {
40 class GenericOracleRunner : public IOracleRunner 39 class GenericOracleRunner : public boost::noncopyable
41 { 40 {
42 private: 41 private:
43 Orthanc::WebServiceParameters orthanc_; 42 Orthanc::WebServiceParameters orthanc_;
44 std::string rootDirectory_; 43 std::string rootDirectory_;
45 44
78 { 77 {
79 dicomCache_ = cache; 78 dicomCache_ = cache;
80 } 79 }
81 #endif 80 #endif
82 81
83 virtual IMessage* Run(IOracleCommand& command) ORTHANC_OVERRIDE; 82 IMessage* Run(IOracleCommand& command);
84 }; 83 };
85 } 84 }