Mercurial > hg > orthanc-stone
diff 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 |
line wrap: on
line diff
--- a/Framework/Oracle/GenericOracleRunner.h Sat Oct 26 11:44:38 2019 +0200 +++ b/Framework/Oracle/GenericOracleRunner.h Sat Oct 26 16:43:08 2019 +0200 @@ -31,12 +31,33 @@ class GenericOracleRunner : public IOracleRunner { private: - const Orthanc::WebServiceParameters& orthanc_; + Orthanc::WebServiceParameters orthanc_; + std::string rootDirectory_; public: - GenericOracleRunner(const Orthanc::WebServiceParameters& orthanc) : - orthanc_(orthanc) + GenericOracleRunner() : + rootDirectory_(".") + { + } + + void SetOrthanc(const Orthanc::WebServiceParameters& orthanc) + { + orthanc_ = orthanc; + } + + const Orthanc::WebServiceParameters& GetOrthanc() const { + return orthanc_; + } + + void SetRootDirectory(const std::string& rootDirectory) + { + rootDirectory_ = rootDirectory; + } + + const std::string GetRootDirectory() const + { + return rootDirectory_; } virtual IMessage* Run(IOracleCommand& command) ORTHANC_OVERRIDE;