00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef WDATAHANDLERENUMS_H
00026 #define WDATAHANDLERENUMS_H
00027
00028 #include <stdint.h>
00029
00030
00031
00032
00033
00034
00035 enum dataType
00036 {
00037 W_DT_NONE = 0,
00038 W_DT_UNKNOWN = 0,
00039 W_DT_BINARY = 1,
00040 W_DT_UNSIGNED_CHAR = 2,
00041 W_DT_SIGNED_SHORT = 4,
00042 W_DT_SIGNED_INT = 8,
00043 W_DT_FLOAT = 16,
00044 W_DT_COMPLEX = 32,
00045 W_DT_DOUBLE = 64,
00046 W_DT_RGB = 128,
00047 W_DT_ALL = 255,
00048 W_DT_INT8 = 256,
00049 W_DT_UINT16 = 512,
00050 W_DT_UINT8 = 2,
00051 W_DT_INT16 = 4,
00052 W_DT_UINT32 = 768,
00053 W_DT_INT64 = 1024,
00054 W_DT_UINT64 = 1280,
00055 W_DT_FLOAT128 = 1536,
00056 W_DT_COMPLEX128 = 1792,
00057 W_DT_COMPLEX256 = 2048,
00058 W_DT_RGBA32 = 2304
00059 };
00060
00061
00062
00063
00064 template< typename T >
00065 struct DataType
00066 {
00067 };
00068
00069
00070
00071
00072
00073
00074 template< int rtType >
00075 struct DataTypeRT
00076 {
00077 };
00078
00079
00080
00081
00082 template<>
00083 struct DataType< int8_t >
00084 {
00085
00086 static dataType const type = W_DT_INT8;
00087 };
00088
00089
00090
00091
00092 template<>
00093 struct DataTypeRT< W_DT_INT8 >
00094 {
00095
00096 typedef int8_t type;
00097 };
00098
00099
00100
00101
00102 template<>
00103 struct DataType< uint8_t >
00104 {
00105
00106 static dataType const type = W_DT_UINT8;
00107 };
00108
00109
00110
00111
00112 template<>
00113 struct DataTypeRT< W_DT_UINT8 >
00114 {
00115
00116 typedef uint8_t type;
00117 };
00118
00119
00120
00121
00122 template<>
00123 struct DataType< int16_t >
00124 {
00125
00126 static dataType const type = W_DT_INT16;
00127 };
00128
00129
00130
00131
00132 template<>
00133 struct DataTypeRT< W_DT_INT16 >
00134 {
00135
00136 typedef int16_t type;
00137 };
00138
00139
00140
00141
00142 template<>
00143 struct DataType< uint16_t >
00144 {
00145
00146 static dataType const type = W_DT_UINT16;
00147 };
00148
00149
00150
00151
00152 template<>
00153 struct DataTypeRT< W_DT_UINT16 >
00154 {
00155
00156 typedef uint16_t type;
00157 };
00158
00159
00160
00161
00162 template<>
00163 struct DataType< int32_t >
00164 {
00165
00166 static dataType const type = W_DT_SIGNED_INT;
00167 };
00168
00169
00170
00171
00172 template<>
00173 struct DataTypeRT< W_DT_SIGNED_INT >
00174 {
00175
00176 typedef int32_t type;
00177 };
00178
00179
00180
00181
00182 template<>
00183 struct DataType< uint32_t >
00184 {
00185
00186 static dataType const type = W_DT_UINT32;
00187 };
00188
00189
00190
00191
00192 template<>
00193 struct DataTypeRT< W_DT_UINT32 >
00194 {
00195
00196 typedef uint32_t type;
00197 };
00198
00199
00200
00201
00202 template<>
00203 struct DataType< int64_t >
00204 {
00205
00206 static dataType const type = W_DT_INT64;
00207 };
00208
00209
00210
00211
00212 template<>
00213 struct DataTypeRT< W_DT_INT64 >
00214 {
00215
00216 typedef int64_t type;
00217 };
00218
00219
00220
00221
00222 template<>
00223 struct DataType< uint64_t >
00224 {
00225
00226 static dataType const type = W_DT_UINT64;
00227 };
00228
00229
00230
00231
00232 template<>
00233 struct DataTypeRT< W_DT_UINT64 >
00234 {
00235
00236 typedef uint64_t type;
00237 };
00238
00239
00240
00241
00242 template<>
00243 struct DataType< float >
00244 {
00245
00246 static dataType const type = W_DT_FLOAT;
00247 };
00248
00249
00250
00251
00252 template<>
00253 struct DataTypeRT< W_DT_FLOAT >
00254 {
00255
00256 typedef float type;
00257 };
00258
00259
00260
00261
00262 template<>
00263 struct DataType< double >
00264 {
00265
00266 static dataType const type = W_DT_DOUBLE;
00267 };
00268
00269
00270
00271
00272 template<>
00273 struct DataTypeRT< W_DT_DOUBLE >
00274 {
00275
00276 typedef double type;
00277 };
00278
00279 enum qformOrientation
00280 {
00281 Left_to_Right,
00282 Posterior_to_Anterior,
00283 Inferior_to_Superior
00284 };
00285
00286
00287
00288
00289
00290 enum DataSetType
00291 {
00292 W_DATASET_NONE = 0,
00293 W_DATASET_SINGLE = 1,
00294 W_DATASET_SPHERICALHARMONICS = 2
00295 };
00296
00297
00298
00299
00300
00301
00302
00303 #endif // WDATAHANDLERENUMS_H