Mercurial > hg > orthanc
comparison OrthancServer/ServerEnumerations.h @ 3956:6e14f2da7c7e
integration transcoding->mainline
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 20 May 2020 16:42:44 +0200 |
parents | e6606d3ec892 |
children |
comparison
equal
deleted
inserted
replaced
3892:fe0e4ef52a72 | 3956:6e14f2da7c7e |
---|---|
88 FindStorageAccessMode_DatabaseOnly, | 88 FindStorageAccessMode_DatabaseOnly, |
89 FindStorageAccessMode_DiskOnAnswer, | 89 FindStorageAccessMode_DiskOnAnswer, |
90 FindStorageAccessMode_DiskOnLookupAndAnswer | 90 FindStorageAccessMode_DiskOnLookupAndAnswer |
91 }; | 91 }; |
92 | 92 |
93 enum StoreInstanceMode | |
94 { | |
95 StoreInstanceMode_Default, | |
96 StoreInstanceMode_OverwriteDuplicate, | |
97 StoreInstanceMode_IgnoreDuplicate | |
98 }; | |
99 | |
93 | 100 |
94 /** | 101 /** |
95 * WARNING: Do not change the explicit values in the enumerations | 102 * WARNING: Do not change the explicit values in the enumerations |
96 * below this point. This would result in incompatible databases | 103 * below this point. This would result in incompatible databases |
97 * between versions of Orthanc! | 104 * between versions of Orthanc! |
166 // The changes below this point are not logged into the database | 173 // The changes below this point are not logged into the database |
167 ChangeType_Deleted = 4096, | 174 ChangeType_Deleted = 4096, |
168 ChangeType_NewChildInstance = 4097 | 175 ChangeType_NewChildInstance = 4097 |
169 }; | 176 }; |
170 | 177 |
178 enum BuiltinDecoderTranscoderOrder | |
179 { | |
180 BuiltinDecoderTranscoderOrder_Before, | |
181 BuiltinDecoderTranscoderOrder_After, | |
182 BuiltinDecoderTranscoderOrder_Disabled | |
183 }; | |
184 | |
171 | 185 |
172 | 186 |
173 void InitializeServerEnumerations(); | 187 void InitializeServerEnumerations(); |
174 | 188 |
175 void RegisterUserMetadata(int metadata, | 189 void RegisterUserMetadata(int metadata, |
185 | 199 |
186 FileContentType StringToContentType(const std::string& str); | 200 FileContentType StringToContentType(const std::string& str); |
187 | 201 |
188 FindStorageAccessMode StringToFindStorageAccessMode(const std::string& str); | 202 FindStorageAccessMode StringToFindStorageAccessMode(const std::string& str); |
189 | 203 |
204 BuiltinDecoderTranscoderOrder StringToBuiltinDecoderTranscoderOrder(const std::string& str); | |
205 | |
190 std::string EnumerationToString(FileContentType type); | 206 std::string EnumerationToString(FileContentType type); |
191 | 207 |
192 std::string GetFileContentMime(FileContentType type); | 208 std::string GetFileContentMime(FileContentType type); |
193 | 209 |
194 std::string GetBasePath(ResourceType type, | 210 std::string GetBasePath(ResourceType type, |