Mercurial > hg > orthanc
comparison OrthancServer/ServerContext.cpp @ 1778:776573e592da
create media refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 13 Nov 2015 13:12:21 +0100 |
parents | 53e045b5a8ec |
children | 9ed9458aa44f |
comparison
equal
deleted
inserted
replaced
1777:0f5c416969dc | 1778:776573e592da |
---|---|
405 area_.Read(result, attachment.GetUuid(), content); | 405 area_.Read(result, attachment.GetUuid(), content); |
406 } | 406 } |
407 } | 407 } |
408 | 408 |
409 | 409 |
410 void ServerContext::ReadFile(std::string& result, | |
411 const FileInfo& file) | |
412 { | |
413 StorageAccessor accessor(area_); | |
414 accessor.Read(result, file); | |
415 } | |
416 | |
417 | |
410 IDynamicObject* ServerContext::DicomCacheProvider::Provide(const std::string& instancePublicId) | 418 IDynamicObject* ServerContext::DicomCacheProvider::Provide(const std::string& instancePublicId) |
411 { | 419 { |
412 std::string content; | 420 std::string content; |
413 context_.ReadFile(content, instancePublicId, FileContentType_Dicom); | 421 context_.ReadFile(content, instancePublicId, FileContentType_Dicom); |
414 return new ParsedDicomFile(content); | 422 return new ParsedDicomFile(content); |