diff OrthancServer/ServerEnumerations.h @ 232:5368bbe813cf

refactoring of attachments
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 30 Nov 2012 14:22:27 +0100
parents e7432706b354
children f23318b11b39
line wrap: on
line diff
--- a/OrthancServer/ServerEnumerations.h	Fri Nov 30 12:18:44 2012 +0100
+++ b/OrthancServer/ServerEnumerations.h	Fri Nov 30 14:22:27 2012 +0100
@@ -35,11 +35,6 @@
 
 namespace Orthanc
 {
-  enum GlobalProperty
-  {
-    GlobalProperty_FlushSleep = 1
-  };
-
   enum SeriesStatus
   {
     SeriesStatus_Complete,
@@ -55,6 +50,18 @@
     StoreStatus_Failure
   };
 
+
+  /**
+   * WARNING: Do not change the explicit values in the enumerations
+   * below this point. This would result in incompatible databases
+   * between versions of Orthanc!
+   **/
+
+  enum GlobalProperty
+  {
+    GlobalProperty_FlushSleep = 1
+  };
+
   enum ResourceType
   {
     ResourceType_Patient = 1,
@@ -65,32 +72,26 @@
 
   enum MetadataType
   {
-    MetadataType_Instance_IndexInSeries = 2,
-    MetadataType_Instance_ReceptionDate = 4,
-    MetadataType_Instance_RemoteAet = 1,
-    MetadataType_Series_ExpectedNumberOfInstances = 3
+    MetadataType_Instance_IndexInSeries = 1,
+    MetadataType_Instance_ReceptionDate = 2,
+    MetadataType_Instance_RemoteAet = 3,
+    MetadataType_Series_ExpectedNumberOfInstances = 4
   };
 
   enum ChangeType
   {
     ChangeType_CompletedSeries = 1,
-    ChangeType_NewInstance = 3,
-    ChangeType_NewPatient = 4,
-    ChangeType_NewSeries = 2,
+    ChangeType_NewInstance = 2,
+    ChangeType_NewPatient = 3,
+    ChangeType_NewSeries = 4,
     ChangeType_NewStudy = 5
   };
 
-  enum AttachedFileType
-  {
-    AttachedFileType_Dicom = 1,
-    AttachedFileType_Json = 2
-  };
+  std::string GetBasePath(ResourceType type,
+                          const std::string& publicId);
 
   const char* ToString(ResourceType type);
 
-  std::string GetBasePath(ResourceType type,
-                          const std::string& publicId);
-
   const char* ToString(SeriesStatus status);
 
   const char* ToString(StoreStatus status);