comparison OrthancServer/ServerEnumerations.h @ 2382:7284093111b0

big reorganization to cleanly separate framework vs. server
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 29 Aug 2017 21:17:35 +0200
parents 3ab96768d144
children 878b59270859
comparison
equal deleted inserted replaced
2381:b8969010b534 2382:7284093111b0
54 StoreStatus_AlreadyStored, 54 StoreStatus_AlreadyStored,
55 StoreStatus_Failure, 55 StoreStatus_Failure,
56 StoreStatus_FilteredOut // Removed by NewInstanceFilter 56 StoreStatus_FilteredOut // Removed by NewInstanceFilter
57 }; 57 };
58 58
59 enum ModalityManufacturer
60 {
61 ModalityManufacturer_Generic,
62 ModalityManufacturer_GenericNoWildcardInDates,
63 ModalityManufacturer_GenericNoUniversalWildcard,
64 ModalityManufacturer_StoreScp,
65 ModalityManufacturer_ClearCanvas,
66 ModalityManufacturer_Dcm4Chee,
67 ModalityManufacturer_Vitrea
68 };
69
70 enum DicomRequestType
71 {
72 DicomRequestType_Echo,
73 DicomRequestType_Find,
74 DicomRequestType_Get,
75 DicomRequestType_Move,
76 DicomRequestType_Store
77 };
78
79 enum DicomReplaceMode
80 {
81 DicomReplaceMode_InsertIfAbsent,
82 DicomReplaceMode_ThrowIfAbsent,
83 DicomReplaceMode_IgnoreIfAbsent
84 };
85
86 enum TransferSyntax
87 {
88 TransferSyntax_Deflated,
89 TransferSyntax_Jpeg,
90 TransferSyntax_Jpeg2000,
91 TransferSyntax_JpegLossless,
92 TransferSyntax_Jpip,
93 TransferSyntax_Mpeg2,
94 TransferSyntax_Rle
95 };
96
97 enum DicomToJsonFormat
98 {
99 DicomToJsonFormat_Full,
100 DicomToJsonFormat_Short,
101 DicomToJsonFormat_Human
102 };
103
104 enum DicomToJsonFlags
105 {
106 DicomToJsonFlags_IncludeBinary = (1 << 0),
107 DicomToJsonFlags_IncludePrivateTags = (1 << 1),
108 DicomToJsonFlags_IncludeUnknownTags = (1 << 2),
109 DicomToJsonFlags_IncludePixelData = (1 << 3),
110 DicomToJsonFlags_ConvertBinaryToAscii = (1 << 4),
111 DicomToJsonFlags_ConvertBinaryToNull = (1 << 5),
112
113 // Some predefined combinations
114 DicomToJsonFlags_None = 0,
115 DicomToJsonFlags_Default = (DicomToJsonFlags_IncludeBinary |
116 DicomToJsonFlags_IncludePixelData |
117 DicomToJsonFlags_IncludePrivateTags |
118 DicomToJsonFlags_IncludeUnknownTags |
119 DicomToJsonFlags_ConvertBinaryToNull)
120 };
121
122 enum DicomFromJsonFlags
123 {
124 DicomFromJsonFlags_DecodeDataUriScheme = (1 << 0),
125 DicomFromJsonFlags_GenerateIdentifiers = (1 << 1)
126 };
127
128 enum IdentifierConstraintType 59 enum IdentifierConstraintType
129 { 60 {
130 IdentifierConstraintType_Equal, 61 IdentifierConstraintType_Equal,
131 IdentifierConstraintType_SmallerOrEqual, 62 IdentifierConstraintType_SmallerOrEqual,
132 IdentifierConstraintType_GreaterOrEqual, 63 IdentifierConstraintType_GreaterOrEqual,
133 IdentifierConstraintType_Wildcard /* Case sensitive, "*" or "?" are the only allowed wildcards */ 64 IdentifierConstraintType_Wildcard /* Case sensitive, "*" or "?" are the only allowed wildcards */
134 };
135
136 enum DicomVersion
137 {
138 DicomVersion_2008,
139 DicomVersion_2017c
140 }; 65 };
141 66
142 67
143 /** 68 /**
144 * WARNING: Do not change the explicit values in the enumerations 69 * WARNING: Do not change the explicit values in the enumerations
226 151
227 const char* EnumerationToString(StoreStatus status); 152 const char* EnumerationToString(StoreStatus status);
228 153
229 const char* EnumerationToString(ChangeType type); 154 const char* EnumerationToString(ChangeType type);
230 155
231 const char* EnumerationToString(ModalityManufacturer manufacturer);
232
233 const char* EnumerationToString(DicomRequestType type);
234
235 const char* EnumerationToString(TransferSyntax syntax);
236
237 const char* EnumerationToString(DicomVersion version);
238
239 ModalityManufacturer StringToModalityManufacturer(const std::string& manufacturer);
240
241 DicomVersion StringToDicomVersion(const std::string& version);
242
243 bool IsUserMetadata(MetadataType type); 156 bool IsUserMetadata(MetadataType type);
244 } 157 }