comparison OrthancServer/ServerContext.h @ 2409:e4045b3c9772

ignore-length argument if retrieving DICOM tags
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 27 Sep 2017 17:36:13 +0200
parents 7284093111b0
children 878b59270859
comparison
equal deleted inserted replaced
2408:26a0cc24d48d 2409:e4045b3c9772
104 typedef std::list<ServerListener> ServerListeners; 104 typedef std::list<ServerListener> ServerListeners;
105 105
106 106
107 static void ChangeThread(ServerContext* that); 107 static void ChangeThread(ServerContext* that);
108 108
109 void ReadDicomAsJsonInternal(std::string& result,
110 const std::string& instancePublicId);
109 111
110 ServerIndex index_; 112 ServerIndex index_;
111 IStorageArea& area_; 113 IStorageArea& area_;
112 114
113 bool compressionEnabled_; 115 bool compressionEnabled_;
191 void ChangeAttachmentCompression(const std::string& resourceId, 193 void ChangeAttachmentCompression(const std::string& resourceId,
192 FileContentType attachmentType, 194 FileContentType attachmentType,
193 CompressionType compression); 195 CompressionType compression);
194 196
195 void ReadDicomAsJson(std::string& result, 197 void ReadDicomAsJson(std::string& result,
196 const std::string& instancePublicId); 198 const std::string& instancePublicId,
199 const std::set<DicomTag>& ignoreTagLength);
197 200
198 void ReadDicomAsJson(Json::Value& result, 201 void ReadDicomAsJson(Json::Value& result,
199 const std::string& instancePublicId); 202 const std::string& instancePublicId,
203 const std::set<DicomTag>& ignoreTagLength);
204
205 void ReadDicomAsJson(std::string& result,
206 const std::string& instancePublicId)
207 {
208 std::set<DicomTag> ignoreTagLength;
209 ReadDicomAsJson(result, instancePublicId, ignoreTagLength);
210 }
211
212 void ReadDicomAsJson(Json::Value& result,
213 const std::string& instancePublicId)
214 {
215 std::set<DicomTag> ignoreTagLength;
216 ReadDicomAsJson(result, instancePublicId, ignoreTagLength);
217 }
200 218
201 void ReadDicom(std::string& dicom, 219 void ReadDicom(std::string& dicom,
202 const std::string& instancePublicId) 220 const std::string& instancePublicId)
203 { 221 {
204 ReadAttachment(dicom, instancePublicId, FileContentType_Dicom, true); 222 ReadAttachment(dicom, instancePublicId, FileContentType_Dicom, true);