comparison OrthancServer/ServerIndex.h @ 3187:4bbadcd03966

refactoring retrieval of metadata from database
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 04 Feb 2019 12:06:19 +0100
parents 8ea7c4546c3a
children 94f4a18a79cc
comparison
equal deleted inserted replaced
3184:5d1f5984dc41 3187:4bbadcd03966
82 82
83 void MainDicomTagsToJson(Json::Value& result, 83 void MainDicomTagsToJson(Json::Value& result,
84 int64_t resourceId, 84 int64_t resourceId,
85 ResourceType resourceType); 85 ResourceType resourceType);
86 86
87 SeriesStatus GetSeriesStatus(int64_t id);
88
89 bool IsRecyclingNeeded(uint64_t instanceSize); 87 bool IsRecyclingNeeded(uint64_t instanceSize);
90 88
91 void Recycle(uint64_t instanceSize, 89 void Recycle(uint64_t instanceSize,
92 const std::string& newPatientId); 90 const std::string& newPatientId);
93 91
94 void StandaloneRecycling(); 92 void StandaloneRecycling();
95 93
96 void MarkAsUnstable(int64_t id, 94 void MarkAsUnstable(int64_t id,
97 Orthanc::ResourceType type, 95 Orthanc::ResourceType type,
98 const std::string& publicId); 96 const std::string& publicId);
99
100 bool GetMetadataAsInteger(int64_t& result,
101 int64_t id,
102 MetadataType type);
103 97
104 void LogChange(int64_t internalId, 98 void LogChange(int64_t internalId,
105 ChangeType changeType, 99 ChangeType changeType,
106 ResourceType resourceType, 100 ResourceType resourceType,
107 const std::string& publicId); 101 const std::string& publicId);
209 const std::string& value); 203 const std::string& value);
210 204
211 void DeleteMetadata(const std::string& publicId, 205 void DeleteMetadata(const std::string& publicId,
212 MetadataType type); 206 MetadataType type);
213 207
208 void GetAllMetadata(std::map<MetadataType, std::string>& target,
209 const std::string& publicId);
210
214 bool LookupMetadata(std::string& target, 211 bool LookupMetadata(std::string& target,
215 const std::string& publicId, 212 const std::string& publicId,
216 MetadataType type); 213 MetadataType type);
217
218 void ListAvailableMetadata(std::list<MetadataType>& target,
219 const std::string& publicId);
220
221 bool GetMetadata(Json::Value& target,
222 const std::string& publicId);
223 214
224 void ListAvailableAttachments(std::list<FileContentType>& target, 215 void ListAvailableAttachments(std::list<FileContentType>& target,
225 const std::string& publicId, 216 const std::string& publicId,
226 ResourceType expectedType); 217 ResourceType expectedType);
227 218