Mercurial > hg > orthanc
comparison OrthancServer/ServerContext.h @ 697:dd1ce9a2844c
access to attachments
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 05 Feb 2014 16:46:59 +0100 |
parents | c59bc408fb10 |
children | 2929e17f8447 |
comparison
equal
deleted
inserted
replaced
696:4c1860179cc5 | 697:dd1ce9a2844c |
---|---|
116 return Store(resultPublicId, NULL, 0); | 116 return Store(resultPublicId, NULL, 0); |
117 else | 117 else |
118 return Store(resultPublicId, &dicomContent[0], dicomContent.size()); | 118 return Store(resultPublicId, &dicomContent[0], dicomContent.size()); |
119 } | 119 } |
120 | 120 |
121 void AnswerFile(RestApiOutput& output, | 121 void AnswerDicomFile(RestApiOutput& output, |
122 const std::string& instancePublicId, | 122 const std::string& instancePublicId, |
123 FileContentType content); | 123 FileContentType content); |
124 | 124 |
125 void ReadJson(Json::Value& result, | 125 void ReadJson(Json::Value& result, |
126 const std::string& instancePublicId); | 126 const std::string& instancePublicId); |
127 | 127 |
128 // TODO CACHING MECHANISM AT THIS POINT | 128 // TODO CACHING MECHANISM AT THIS POINT |
129 void ReadFile(std::string& result, | 129 void ReadFile(std::string& result, |
130 const std::string& instancePublicId, | 130 const std::string& instancePublicId, |
131 FileContentType content); | 131 FileContentType content, |
132 bool uncompressIfNeeded = true); | |
132 | 133 |
133 // TODO IMPLEMENT MULTITHREADING FOR THIS METHOD | 134 // TODO IMPLEMENT MULTITHREADING FOR THIS METHOD |
134 ParsedDicomFile& GetDicomFile(const std::string& instancePublicId); | 135 ParsedDicomFile& GetDicomFile(const std::string& instancePublicId); |
135 | 136 |
136 LuaContext& GetLuaContext() | 137 LuaContext& GetLuaContext() |