Main Page | File List | Related Pages

gdcmCommon.h

00001 //gdcmCommon.h
00002 //-----------------------------------------------------------------------------
00003 #ifndef GDCMCOMMON_H
00004 #define GDCMCOMMON_H
00005 
00006 //-----------------------------------------------------------------------------
00007 #define GDCM_DEBUG -1
00008 
00009 //-----------------------------------------------------------------------------
00010 //This is needed when compiling in debug mode
00011 #ifdef _MSC_VER
00012 // 'identifier' : class 'type' needs to have dll-interface to be used by
00013 // clients of class 'type2'
00014 #pragma warning ( disable : 4251 )
00015 // 'identifier' : identifier was truncated to 'number' characters in the
00016 // debug information
00017 #pragma warning ( disable : 4786 )
00018 //'identifier' : decorated name length exceeded, name was truncated
00019 #pragma warning ( disable : 4503 )
00020 // C++ exception specification ignored except to indicate a 
00021 // function is not __declspec(nothrow)
00022 #pragma warning ( disable : 4290 )
00023 // signed/unsigned mismatch
00024 #pragma warning ( disable : 4018 )
00025 // return type for 'identifier' is '' (ie; not a UDT or reference to UDT. Will
00026 // produce errors if applied using infix notation
00027 #pragma warning ( disable : 4284 )
00028 #endif //_MSC_VER
00029 
00030 // Mmmmmm !
00031 // It reminds me the formerly well known LibIDO's idproto.h
00032 
00033 //-----------------------------------------------------------------------------
00034 #ifdef __GNUC__
00035 #ifndef HAVE_NO_STDINT_H
00036 #include <stdint.h>
00037 #define guint16 uint16_t
00038 #define guint32 uint32_t
00039 #define gint16  int16_t
00040 #define gint32  int32_t
00041 #else
00042 typedef  unsigned short guint16;
00043 typedef  unsigned int   guint32;
00044 typedef  short          gint16;
00045 typedef  int            gint32;
00046 #define UINT32_MAX    (4294967295U)
00047 #endif //HAVE_NO_STDINT_H
00048 #endif
00049 
00050 #ifdef _MSC_VER 
00051 typedef  unsigned short guint16;
00052 typedef  unsigned int   guint32;
00053 typedef  short          gint16;
00054 typedef  int            gint32;
00055 #define UINT32_MAX    (4294967295U)
00056 #endif
00057 
00058 #ifdef _MSC_VER
00059 #define GDCM_EXPORT __declspec( dllexport )
00060 #else
00061 #define GDCM_EXPORT
00062 #endif
00063 
00064 #include <string>
00065 
00066 const std::string GDCM_UNFOUND = "gdcm::Unfound";
00067 
00068 typedef std::string TagKey;
00069 typedef std::string TagName;
00070 
00071 enum FileType {
00072       Unknown = 0,
00073       ExplicitVR,
00074       ImplicitVR,
00075       ACR,
00076       ACR_LIBIDO,
00077       DICOMDIR
00078 };
00079 
00080 //For now gdcm is not willing cmake, try to be more quiet
00081 //#cmakedefine GDCM_NO_ANSI_STRING_STREAM
00082 
00083 //-----------------------------------------------------------------------------
00084 #endif

Generated on Mon Feb 14 16:13:43 2005 for gdcm by doxygen 1.3.6