]> Creatis software - gdcm.git/blob - src/gdcmCommon.h
src/*.cxx removed pragma thingies to src/gdcmCommon.h
[gdcm.git] / src / gdcmCommon.h
1 //gdcmCommon.h
2
3 #ifndef GDCMCOMMON_H
4 #define GDCMCOMMON_H
5
6 //This is needed when compiling in debug mode
7 #ifdef _MSC_VER
8 // 'identifier' : class 'type' needs to have dll-interface to be used by
9 // clients of class 'type2'
10 #pragma warning ( disable : 4251 )
11 // 'identifier' : identifier was truncated to 'number' characters in the
12 // debug information
13 #pragma warning ( disable : 4786 )
14 //'identifier' : decorated name length exceeded, name was truncated
15 #pragma warning ( disable : 4503 )
16 #endif //_MSC_VER
17
18 #ifdef __GNUC__
19 #include <stdint.h>
20 #define guint16 uint16_t
21 #define guint32 uint32_t
22 #define gint16  int16_t
23 #define gint32  int32_t
24 #endif
25
26 #ifdef _MSC_VER 
27 typedef  unsigned short guint16;
28 typedef  unsigned int   guint32;
29 typedef  short          gint16;
30 typedef  int            gint32;
31 #define UINT32_MAX    (4294967295U)
32 #endif
33
34 #ifdef _MSC_VER
35 #define GDCM_EXPORT __declspec( dllexport )
36 #else
37 #define GDCM_EXPORT
38 #endif
39
40 #include <string>
41
42 const std::string GDCM_UNFOUND = "gdcm::Unfound";
43
44 typedef std::string TagKey;
45 typedef std::string TagName;
46
47 enum FileType {
48       Unknown = 0,
49       ExplicitVR,
50       ImplicitVR,
51       ACR,
52       ACR_LIBIDO
53 };
54
55
56 #endif