Mercurial > hg > orthanc-stone
comparison Framework/Oracle/GenericOracleRunner.cpp @ 1149:2da8b4d6f8c1 broker
renamed ParsedDicomFileCache as ParsedDicomCache
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 15 Nov 2019 12:35:35 +0100 |
parents | 5e164c629923 |
children | 7aad0984d38a |
comparison
equal
deleted
inserted
replaced
1148:5e164c629923 | 1149:2da8b4d6f8c1 |
---|---|
215 else | 215 else |
216 { | 216 { |
217 c = a / b; | 217 c = a / b; |
218 } | 218 } |
219 | 219 |
220 LOG(TRACE) << "Oracle reading file: " << c.string(); | |
221 return c.string(); | 220 return c.string(); |
222 } | 221 } |
223 | 222 |
224 | 223 |
225 static void RunInternal(boost::weak_ptr<IObserver> receiver, | 224 static void RunInternal(boost::weak_ptr<IObserver> receiver, |
226 IMessageEmitter& emitter, | 225 IMessageEmitter& emitter, |
227 const std::string& root, | 226 const std::string& root, |
228 const ReadFileCommand& command) | 227 const ReadFileCommand& command) |
229 { | 228 { |
230 std::string path = GetPath(root, command.GetPath()); | 229 std::string path = GetPath(root, command.GetPath()); |
230 LOG(TRACE) << "Oracle reading file: " << path; | |
231 | 231 |
232 std::string content; | 232 std::string content; |
233 Orthanc::SystemToolbox::ReadFile(content, path, true /* log */); | 233 Orthanc::SystemToolbox::ReadFile(content, path, true /* log */); |
234 | 234 |
235 ReadFileCommand::SuccessMessage message(command, content); | 235 ReadFileCommand::SuccessMessage message(command, content); |
260 { | 260 { |
261 throw Orthanc::OrthancException(Orthanc::ErrorCode_InexistentFile); | 261 throw Orthanc::OrthancException(Orthanc::ErrorCode_InexistentFile); |
262 } | 262 } |
263 | 263 |
264 LOG(TRACE) << "Parsing DICOM file, " | 264 LOG(TRACE) << "Parsing DICOM file, " |
265 << (command.IsPixelDataIncluded() ? "with" : "witout") | 265 << (command.IsPixelDataIncluded() ? "with" : "without") |
266 << " pixel data: " << path; | 266 << " pixel data: " << path; |
267 | 267 |
268 boost::posix_time::ptime start = boost::posix_time::microsec_clock::local_time(); | 268 boost::posix_time::ptime start = boost::posix_time::microsec_clock::local_time(); |
269 | 269 |
270 uint64_t fileSize = Orthanc::SystemToolbox::GetFileSize(path); | 270 uint64_t fileSize = Orthanc::SystemToolbox::GetFileSize(path); |