OFFIS DCMTK  Version 3.6.0
ofcast.h
1 /*
2  *
3  * Copyright (C) 2003-2010, OFFIS e.V.
4  * All rights reserved. See COPYRIGHT file for details.
5  *
6  * This software and supporting documentation were developed by
7  *
8  * OFFIS e.V.
9  * R&D Division Health
10  * Escherweg 2
11  * D-26121 Oldenburg, Germany
12  *
13  *
14  * Module: ofstd
15  *
16  * Author: Marco Eichelberg
17  *
18  * Purpose: Portable macros for new-style typecasts
19  *
20  * Last Update: $Author: joergr $
21  * Update Date: $Date: 2010-10-14 13:15:50 $
22  * CVS/RCS Revision: $Revision: 1.3 $
23  * Status: $State: Exp $
24  *
25  * CVS/RCS Log at end of file
26  *
27  */
28 
29 #ifndef OFCAST_H
30 #define OFCAST_H
31 
32 #include "dcmtk/config/osconfig.h"
33 
34 #ifdef HAVE_CONST_CAST
35 #define OFconst_cast(x,y) (const_cast< x >(y))
36 #else
37 #define OFconst_cast(x,y) ((x)(y))
38 #endif
39 
40 #ifdef HAVE_DYNAMIC_CAST
41 #define OFdynamic_cast(x,y) (dynamic_cast< x >(y))
42 #else
43 #define OFdynamic_cast(x,y) ((x)(y))
44 #endif
45 
46 #ifdef HAVE_REINTERPRET_CAST
47 #define OFreinterpret_cast(x,y) (reinterpret_cast< x >(y))
48 #else
49 #define OFreinterpret_cast(x,y) ((x)(y))
50 #endif
51 
52 #ifdef HAVE_STATIC_CAST
53 #define OFstatic_cast(x,y) (static_cast< x >(y))
54 #else
55 #define OFstatic_cast(x,y) ((x)(y))
56 #endif
57 
58 #endif
59 
60 /*
61  * CVS/RCS Log:
62  * $Log: ofcast.h,v $
63  * Revision 1.3 2010-10-14 13:15:50 joergr
64  * Updated copyright header. Added reference to COPYRIGHT file.
65  *
66  * Revision 1.2 2005/12/08 16:05:47 meichel
67  * Changed include path schema for all DCMTK header files
68  *
69  * Revision 1.1 2003/07/09 12:26:02 meichel
70  * Added new header file ofcast.h which defines portable macros
71  * for new-style typecast operators
72  *
73  *
74  */


Generated on Thu Dec 20 2012 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.2