Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerEnumerations.h @ 5829:963945d780d6 find-refactoring tip
tools/find ResponseContent
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Mon, 07 Oct 2024 18:10:08 +0200 |
parents | 8a8756b2dd0b |
children |
comparison
equal
deleted
inserted
replaced
5828:7030fa489669 | 5829:963945d780d6 |
---|---|
119 ConstraintType_GreaterOrEqual, | 119 ConstraintType_GreaterOrEqual, |
120 ConstraintType_Wildcard, | 120 ConstraintType_Wildcard, |
121 ConstraintType_List | 121 ConstraintType_List |
122 }; | 122 }; |
123 | 123 |
124 enum ResponseContentFlags | |
125 { | |
126 ResponseContentFlags_ID = (1 << 0), | |
127 ResponseContentFlags_MainDicomTags = (1 << 1), | |
128 ResponseContentFlags_MetadataLegacy = (1 << 2), // when "Expand": true -> all metadata are included at root level | |
129 ResponseContentFlags_AttachmentsLegacy = (1 << 3), // when "Expand": true -> include attachments info at instance level | |
130 ResponseContentFlags_Metadata = (1 << 4), // all metadata are listed in a "Metadata" field | |
131 ResponseContentFlags_Attachments = (1 << 5), // all attachments are listed in a "Attachments" field | |
132 ResponseContentFlags_Status = (1 << 6), | |
133 ResponseContentFlags_Parent = (1 << 7), | |
134 ResponseContentFlags_Children = (1 << 8), | |
135 ResponseContentFlags_Labels = (1 << 9), | |
136 ResponseContentFlags_IsStable = (1 << 10), | |
137 | |
138 // Some predefined combinations | |
139 ResponseContentFlags_Default = (ResponseContentFlags_ID | | |
140 ResponseContentFlags_MainDicomTags | | |
141 ResponseContentFlags_MetadataLegacy | | |
142 ResponseContentFlags_AttachmentsLegacy | | |
143 ResponseContentFlags_Status | | |
144 ResponseContentFlags_Parent | | |
145 ResponseContentFlags_Children | | |
146 ResponseContentFlags_Labels | | |
147 ResponseContentFlags_IsStable) // equivalent to "Expand": true | |
148 }; | |
124 | 149 |
125 /** | 150 /** |
126 * WARNING: Do not change the explicit values in the enumerations | 151 * WARNING: Do not change the explicit values in the enumerations |
127 * below this point. This would result in incompatible databases | 152 * below this point. This would result in incompatible databases |
128 * between versions of Orthanc! | 153 * between versions of Orthanc! |
248 | 273 |
249 BuiltinDecoderTranscoderOrder StringToBuiltinDecoderTranscoderOrder(const std::string& str); | 274 BuiltinDecoderTranscoderOrder StringToBuiltinDecoderTranscoderOrder(const std::string& str); |
250 | 275 |
251 Verbosity StringToVerbosity(const std::string& str); | 276 Verbosity StringToVerbosity(const std::string& str); |
252 | 277 |
278 ResponseContentFlags StringToResponseContent(const std::string& str); | |
279 | |
253 std::string EnumerationToString(FileContentType type); | 280 std::string EnumerationToString(FileContentType type); |
254 | 281 |
255 std::string GetFileContentMime(FileContentType type); | 282 std::string GetFileContentMime(FileContentType type); |
256 | 283 |
257 std::string GetBasePath(ResourceType type, | 284 std::string GetBasePath(ResourceType type, |