00001
00002
00003 #ifndef GDCMCOMMON_H
00004 #define GDCMCOMMON_H
00005
00006
00007 #define GDCM_DEBUG -1
00008
00009
00010
00011 #ifdef _MSC_VER
00012
00013
00014 #pragma warning ( disable : 4251 )
00015
00016
00017 #pragma warning ( disable : 4786 )
00018
00019 #pragma warning ( disable : 4503 )
00020
00021
00022 #pragma warning ( disable : 4290 )
00023
00024 #pragma warning ( disable : 4018 )
00025
00026
00027 #pragma warning ( disable : 4284 )
00028 #endif //_MSC_VER
00029
00030
00031
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
00081
00082
00083
00084 #endif