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
34 //#if defined __STDC_LIMIT_MACROS
38 //#error hehrehhehehehe2
40 #define guint16 uint16_t
41 #define guint32 uint32_t
42 #define gint16 int16_t
43 #define gint32 int32_t
45 typedef unsigned short guint16;
46 typedef unsigned int guint32;
49 #define UINT32_MAX (4294967295U)
50 #endif //HAVE_NO_STDINT_H
54 typedef unsigned short guint16;
55 typedef unsigned int guint32;
58 #define UINT32_MAX (4294967295U)
62 #define GDCM_EXPORT __declspec( dllexport )
63 #define getcwd _getcwd
68 // ifdef for old gcc / broken compiler
69 #ifdef GDCM_NO_ANSI_STRING_STREAM
71 # define ostringstream ostrstream
77 // Centralize information about the gdcm dictionary in only one file:
79 # define PUB_DICT_PATH "../Dicts/"
81 #define PUB_DICT_NAME "DicomV3Dict"
82 #define PUB_DICT_FILENAME "dicomV3.dic"
83 #define DICT_ELEM "DicomDir.dic"
84 #define DICT_TS "dicomTS.dic"
85 #define DICT_VR "dicomVR.dic"
89 const std::string GDCM_UNFOUND = "gdcm::Unfound";
91 typedef std::string TagKey;
92 typedef std::string TagName;
96 ExplicitVR, // gdcmDicomDir is in this case
102 //-----------------------------------------------------------------------------