00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef OFCAST_H
00030 #define OFCAST_H
00031
00032 #include "dcmtk/config/osconfig.h"
00033
00034 #ifdef HAVE_CONST_CAST
00035 #define OFconst_cast(x,y) (const_cast< x >(y))
00036 #else
00037 #define OFconst_cast(x,y) ((x)(y))
00038 #endif
00039
00040 #ifdef HAVE_DYNAMIC_CAST
00041 #define OFdynamic_cast(x,y) (dynamic_cast< x >(y))
00042 #else
00043 #define OFdynamic_cast(x,y) ((x)(y))
00044 #endif
00045
00046 #ifdef HAVE_REINTERPRET_CAST
00047 #define OFreinterpret_cast(x,y) (reinterpret_cast< x >(y))
00048 #else
00049 #define OFreinterpret_cast(x,y) ((x)(y))
00050 #endif
00051
00052 #ifdef HAVE_STATIC_CAST
00053 #define OFstatic_cast(x,y) (static_cast< x >(y))
00054 #else
00055 #define OFstatic_cast(x,y) ((x)(y))
00056 #endif
00057
00058 #endif
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074