]> Creatis software - gdcm.git/blob - src/gdcmCommon.h
* "gdcm::Unfound" string changed to a constant variable (GDCM_UNFOUND)
[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
30 const std::string GDCM_UNFOUND = "gdcm::Unfound";
31
32 typedef std::string TagKey;
33 typedef std::string TagName;
34
35 enum FileType {
36       Unknown = 0,
37       ExplicitVR,
38       ImplicitVR,
39       ACR,
40       ACR_LIBIDO
41 };
42
43
44 #endif