Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
231:8098448bd827 | 232:5368bbe813cf |
---|---|
33 | 33 |
34 #include <string> | 34 #include <string> |
35 | 35 |
36 namespace Orthanc | 36 namespace Orthanc |
37 { | 37 { |
38 enum GlobalProperty | |
39 { | |
40 GlobalProperty_FlushSleep = 1 | |
41 }; | |
42 | |
43 enum SeriesStatus | 38 enum SeriesStatus |
44 { | 39 { |
45 SeriesStatus_Complete, | 40 SeriesStatus_Complete, |
46 SeriesStatus_Missing, | 41 SeriesStatus_Missing, |
47 SeriesStatus_Inconsistent, | 42 SeriesStatus_Inconsistent, |
53 StoreStatus_Success, | 48 StoreStatus_Success, |
54 StoreStatus_AlreadyStored, | 49 StoreStatus_AlreadyStored, |
55 StoreStatus_Failure | 50 StoreStatus_Failure |
56 }; | 51 }; |
57 | 52 |
53 | |
54 /** | |
55 * WARNING: Do not change the explicit values in the enumerations | |
56 * below this point. This would result in incompatible databases | |
57 * between versions of Orthanc! | |
58 **/ | |
59 | |
60 enum GlobalProperty | |
61 { | |
62 GlobalProperty_FlushSleep = 1 | |
63 }; | |
64 | |
58 enum ResourceType | 65 enum ResourceType |
59 { | 66 { |
60 ResourceType_Patient = 1, | 67 ResourceType_Patient = 1, |
61 ResourceType_Study = 2, | 68 ResourceType_Study = 2, |
62 ResourceType_Series = 3, | 69 ResourceType_Series = 3, |
63 ResourceType_Instance = 4 | 70 ResourceType_Instance = 4 |
64 }; | 71 }; |
65 | 72 |
66 enum MetadataType | 73 enum MetadataType |
67 { | 74 { |
68 MetadataType_Instance_IndexInSeries = 2, | 75 MetadataType_Instance_IndexInSeries = 1, |
69 MetadataType_Instance_ReceptionDate = 4, | 76 MetadataType_Instance_ReceptionDate = 2, |
70 MetadataType_Instance_RemoteAet = 1, | 77 MetadataType_Instance_RemoteAet = 3, |
71 MetadataType_Series_ExpectedNumberOfInstances = 3 | 78 MetadataType_Series_ExpectedNumberOfInstances = 4 |
72 }; | 79 }; |
73 | 80 |
74 enum ChangeType | 81 enum ChangeType |
75 { | 82 { |
76 ChangeType_CompletedSeries = 1, | 83 ChangeType_CompletedSeries = 1, |
77 ChangeType_NewInstance = 3, | 84 ChangeType_NewInstance = 2, |
78 ChangeType_NewPatient = 4, | 85 ChangeType_NewPatient = 3, |
79 ChangeType_NewSeries = 2, | 86 ChangeType_NewSeries = 4, |
80 ChangeType_NewStudy = 5 | 87 ChangeType_NewStudy = 5 |
81 }; | 88 }; |
82 | 89 |
83 enum AttachedFileType | 90 std::string GetBasePath(ResourceType type, |
84 { | 91 const std::string& publicId); |
85 AttachedFileType_Dicom = 1, | |
86 AttachedFileType_Json = 2 | |
87 }; | |
88 | 92 |
89 const char* ToString(ResourceType type); | 93 const char* ToString(ResourceType type); |
90 | |
91 std::string GetBasePath(ResourceType type, | |
92 const std::string& publicId); | |
93 | 94 |
94 const char* ToString(SeriesStatus status); | 95 const char* ToString(SeriesStatus status); |
95 | 96 |
96 const char* ToString(StoreStatus status); | 97 const char* ToString(StoreStatus status); |
97 | 98 |