Mercurial > hg > orthanc-stone
comparison Framework/Oracle/GenericOracleRunner.h @ 1104:98cdfe5768a4 broker
ReadFileCommand
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 26 Oct 2019 16:43:08 +0200 |
parents | 17660df24c36 |
children | a8bf81756839 |
comparison
equal
deleted
inserted
replaced
1103:f7759637cdfb | 1104:98cdfe5768a4 |
---|---|
29 namespace OrthancStone | 29 namespace OrthancStone |
30 { | 30 { |
31 class GenericOracleRunner : public IOracleRunner | 31 class GenericOracleRunner : public IOracleRunner |
32 { | 32 { |
33 private: | 33 private: |
34 const Orthanc::WebServiceParameters& orthanc_; | 34 Orthanc::WebServiceParameters orthanc_; |
35 std::string rootDirectory_; | |
35 | 36 |
36 public: | 37 public: |
37 GenericOracleRunner(const Orthanc::WebServiceParameters& orthanc) : | 38 GenericOracleRunner() : |
38 orthanc_(orthanc) | 39 rootDirectory_(".") |
39 { | 40 { |
41 } | |
42 | |
43 void SetOrthanc(const Orthanc::WebServiceParameters& orthanc) | |
44 { | |
45 orthanc_ = orthanc; | |
46 } | |
47 | |
48 const Orthanc::WebServiceParameters& GetOrthanc() const | |
49 { | |
50 return orthanc_; | |
51 } | |
52 | |
53 void SetRootDirectory(const std::string& rootDirectory) | |
54 { | |
55 rootDirectory_ = rootDirectory; | |
56 } | |
57 | |
58 const std::string GetRootDirectory() const | |
59 { | |
60 return rootDirectory_; | |
40 } | 61 } |
41 | 62 |
42 virtual IMessage* Run(IOracleCommand& command) ORTHANC_OVERRIDE; | 63 virtual IMessage* Run(IOracleCommand& command) ORTHANC_OVERRIDE; |
43 }; | 64 }; |
44 } | 65 } |