2 //-----------------------------------------------------------------------------
6 #include "gdcmConfigure.h"
8 //-----------------------------------------------------------------------------
9 //This is needed when compiling in debug mode
11 // 'identifier' : class 'type' needs to have dll-interface to be used by
12 // clients of class 'type2'
13 #pragma warning ( disable : 4251 )
14 // 'identifier' : identifier was truncated to 'number' characters in the
16 #pragma warning ( disable : 4786 )
17 //'identifier' : decorated name length exceeded, name was truncated
18 #pragma warning ( disable : 4503 )
19 // C++ exception specification ignored except to indicate a
20 // function is not __declspec(nothrow)
21 #pragma warning ( disable : 4290 )
22 // signed/unsigned mismatch
23 #pragma warning ( disable : 4018 )
24 // return type for 'identifier' is '' (ie; not a UDT or reference to UDT. Will
25 // produce errors if applied using infix notation
26 #pragma warning ( disable : 4284 )
27 // 'type' : forcing value to bool 'true' or 'false' (performance warning)
28 // //#pragma warning ( disable : 4800 )
31 //-----------------------------------------------------------------------------
33 #ifndef HAVE_NO_STDINT_H
35 #define guint16 uint16_t
36 #define guint32 uint32_t
37 #define gint16 int16_t
38 #define gint32 int32_t
40 typedef unsigned short guint16;
41 typedef unsigned int guint32;
44 #define UINT32_MAX (4294967295U)
45 #endif //HAVE_NO_STDINT_H
49 typedef unsigned short guint16;
50 typedef unsigned int guint32;
53 #define UINT32_MAX (4294967295U)
57 #define GDCM_EXPORT __declspec( dllexport )
58 #define getcwd _getcwd
63 // ifdef for old gcc / broken compiler
64 #ifdef GDCM_NO_ANSI_STRING_STREAM
66 # define ostringstream ostrstream
72 // Centralize information about the gdcm dictionary in only one file:
74 # define PUB_DICT_PATH "../Dicts/"
76 #define PUB_DICT_NAME "DicomV3Dict"
77 #define PUB_DICT_FILENAME "dicomV3.dic"
78 #define DICT_ELEM "DicomDir.dic"
79 #define DICT_TS "dicomTS.dic"
80 #define DICT_VR "dicomVR.dic"
84 const std::string GDCM_UNFOUND = "gdcm::Unfound";
86 typedef std::string TagKey;
87 typedef std::string TagName;
91 gdcmExplicitVR, // gdcmDicomDir is in this case
97 //-----------------------------------------------------------------------------