]> Creatis software - gdcm.git/blob - src/gdcmCommon.h
fonction UpdateGroupLengthNew (utilisant une HTable)
[gdcm.git] / src / gdcmCommon.h
1 //gdcmCommon.h
2
3 #ifndef GDCMCOMMON_H
4 #define GDCMCOMMON_H
5
6 #ifdef __GNUC__
7 #include <stdint.h>
8 #define guint16 uint16_t
9 #define guint32 uint32_t
10 #define gint16  int16_t
11 #define gint32  int32_t
12 #endif
13
14 #ifdef _MSC_VER 
15 typedef  unsigned short guint16;
16 typedef  unsigned int   guint32;
17 typedef  short          gint16;
18 typedef  int            gint32;
19 #define UINT32_MAX    (4294967295U)
20 #endif
21
22 #ifdef _MSC_VER
23 #define GDCM_EXPORT __declspec( dllexport )
24 #else
25 #define GDCM_EXPORT
26 #endif
27
28 #include <string>
29 #ifdef _MSC_VER
30 using namespace std;  // string type lives in the std namespace on VC++
31 #endif
32
33 typedef string TagKey;
34 typedef string TagName;
35
36 enum FileType {
37       Unknown = 0,
38       ExplicitVR,
39       ImplicitVR,
40       ACR,
41       ACR_LIBIDO
42 };
43
44
45 #endif