1 /*=========================================================================
4 Module: $RCSfile: gdcmCommon.h,v $
6 Date: $Date: 2004/09/09 17:49:24 $
7 Version: $Revision: 1.30 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.htm for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
22 #include "gdcmConfigure.h"
24 //-----------------------------------------------------------------------------
25 //This is needed when compiling in debug mode
27 // 'identifier' : class 'type' needs to have dll-interface to be used by
28 // clients of class 'type2'
29 #pragma warning ( disable : 4251 )
30 // 'identifier' : identifier was truncated to 'number' characters in the
32 #pragma warning ( disable : 4786 )
33 //'identifier' : decorated name length exceeded, name was truncated
34 #pragma warning ( disable : 4503 )
35 // C++ exception specification ignored except to indicate a
36 // function is not __declspec(nothrow)
37 #pragma warning ( disable : 4290 )
38 // signed/unsigned mismatch
39 #pragma warning ( disable : 4018 )
40 // return type for 'identifier' is '' (ie; not a UDT or reference to UDT. Will
41 // produce errors if applied using infix notation
42 #pragma warning ( disable : 4284 )
43 // 'type' : forcing value to bool 'true' or 'false' (performance warning)
44 // //#pragma warning ( disable : 4800 )
47 //-----------------------------------------------------------------------------
49 #ifndef HAVE_NO_STDINT_H
50 #include <stdint.h> // For uint8_t uint16_t and uint32_t
52 typedef unsigned char uint8_t;
53 typedef unsigned short uint16_t;
54 typedef unsigned int uint32_t;
55 #define UINT32_MAX (4294967295U)
56 #endif //HAVE_NO_STDINT_H
60 typedef unsigned char uint8_t;
61 typedef unsigned short uint16_t;
62 typedef unsigned int uint32_t;
63 #define UINT32_MAX (4294967295U)
67 #define GDCM_EXPORT __declspec( dllexport )
68 #define getcwd _getcwd
73 // ifdef for old gcc / broken compiler
74 #ifdef GDCM_NO_ANSI_STRING_STREAM
76 # define ostringstream ostrstream
82 // Centralize information about the gdcm dictionary in only one file:
84 # define PUB_DICT_PATH "../Dicts/"
86 #define PUB_DICT_NAME "DicomV3Dict"
87 #define PUB_DICT_FILENAME "dicomV3.dic"
88 #define DICT_ELEM "DicomDir.dic"
89 #define DICT_TS "dicomTS.dic"
90 #define DICT_VR "dicomVR.dic"
94 const std::string GDCM_UNFOUND = "gdcm::Unfound"; /// MEMORY LEAK
95 const std::string GDCM_BINLOADED = "gdcm::Binary data loaded";
96 const std::string GDCM_NOTLOADED = "gdcm::NotLoaded";
97 const std::string GDCM_UNREAD = "gdcm::UnRead";
99 typedef std::string gdcmTagKey;
100 typedef std::string TagName;
104 gdcmExplicitVR, // gdcmDicomDir is in this case
110 //-----------------------------------------------------------------------------