Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Loaders/DicomResourcesLoader.h @ 1571:85e117739eca
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 21 Sep 2020 17:46:39 +0200 |
parents | 244ad1e4e76a |
children | 4fb8fdf03314 |
comparison
equal
deleted
inserted
replaced
1570:9a04f42098a3 | 1571:85e117739eca |
---|---|
91 Orthanc::ResourceType level, | 91 Orthanc::ResourceType level, |
92 const std::string& id, | 92 const std::string& id, |
93 boost::shared_ptr<unsigned int> remainingCommands, | 93 boost::shared_ptr<unsigned int> remainingCommands, |
94 boost::shared_ptr<Orthanc::IDynamicObject> userPayload); | 94 boost::shared_ptr<Orthanc::IDynamicObject> userPayload); |
95 | 95 |
96 DicomResourcesLoader(ILoadersContext& context) : | 96 explicit DicomResourcesLoader(ILoadersContext& context) : |
97 context_(context) | 97 context_(context) |
98 { | 98 { |
99 } | 99 } |
100 | 100 |
101 ILoadersContext& context_; | 101 ILoadersContext& context_; |
151 | 151 |
152 | 152 |
153 class Factory : public ILoaderFactory | 153 class Factory : public ILoaderFactory |
154 { | 154 { |
155 public: | 155 public: |
156 virtual boost::shared_ptr<IObserver> Create(ILoadersContext::ILock& stone) | 156 virtual boost::shared_ptr<IObserver> Create(ILoadersContext::ILock& stone) ORTHANC_OVERRIDE |
157 { | 157 { |
158 return DicomResourcesLoader::Create(stone); | 158 return DicomResourcesLoader::Create(stone); |
159 } | 159 } |
160 }; | 160 }; |
161 | 161 |
162 | 162 |
163 static boost::shared_ptr<DicomResourcesLoader> Create(ILoadersContext::ILock& stone); | 163 static boost::shared_ptr<DicomResourcesLoader> Create(const ILoadersContext::ILock& stone); |
164 | 164 |
165 void ScheduleGetDicomWeb(boost::shared_ptr<LoadedDicomResources> target, | 165 void ScheduleGetDicomWeb(boost::shared_ptr<LoadedDicomResources> target, |
166 int priority, | 166 int priority, |
167 const DicomSource& source, | 167 const DicomSource& source, |
168 const std::string& uri, | 168 const std::string& uri, |