oftypes.h

00001 /*
00002  *
00003  *  Copyright (C) 1997-2005, OFFIS
00004  *
00005  *  This software and supporting documentation were developed by
00006  *
00007  *    Kuratorium OFFIS e.V.
00008  *    Healthcare Information and Communication Systems
00009  *    Escherweg 2
00010  *    D-26121 Oldenburg, Germany
00011  *
00012  *  THIS SOFTWARE IS MADE AVAILABLE,  AS IS,  AND OFFIS MAKES NO  WARRANTY
00013  *  REGARDING  THE  SOFTWARE,  ITS  PERFORMANCE,  ITS  MERCHANTABILITY  OR
00014  *  FITNESS FOR ANY PARTICULAR USE, FREEDOM FROM ANY COMPUTER DISEASES  OR
00015  *  ITS CONFORMITY TO ANY SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND
00016  *  PERFORMANCE OF THE SOFTWARE IS WITH THE USER.
00017  *
00018  *  Module:  ofstd
00019  *
00020  *  Author:  Andreas Barth
00021  *
00022  *  Purpose:
00023  *      Defines some C++ standard types that are not consistently 
00024  *      supported by all C++ Compilers
00025  *
00026  *  Last Update:      $Author: meichel $
00027  *  Update Date:      $Date: 2005/12/08 16:06:11 $
00028  *  Source File:      $Source: /share/dicom/cvs-depot/dcmtk/ofstd/include/dcmtk/ofstd/oftypes.h,v $
00029  *  CVS/RCS Revision: $Revision: 1.7 $
00030  *  Status:           $State: Exp $
00031  *
00032  *  CVS/RCS Log at end of file
00033  *
00034  */
00035 
00036 #ifndef OFTYPES_H
00037 #define OFTYPES_H
00038 
00039 #include "dcmtk/config/osconfig.h"    /* make sure OS specific configuration is included first */
00040 
00041 
00042 #ifdef __CHAR_UNSIGNED__
00043 typedef signed char     Sint8;
00044 #else 
00045 typedef char            Sint8;
00046 #endif
00047 
00048 typedef unsigned char   Uint8;
00049 
00050 #if SIZEOF_LONG == 8
00051 typedef signed int      Sint32;
00052 typedef unsigned int    Uint32;
00053 #else
00054 typedef signed long     Sint32;
00055 typedef unsigned long   Uint32;
00056 #endif
00057 
00058 typedef signed short    Sint16;
00059 typedef unsigned short  Uint16;
00060 
00061 typedef float           Float32;    /* 32 Bit Floating Point Single */
00062 typedef double          Float64;    /* 64 Bit Floating Point Double */
00063 
00064 
00065 // Definition of type OFBool
00066 
00067 #ifdef HAVE_CXX_BOOL
00068 
00069 #define OFBool bool
00070 #define OFTrue true
00071 #define OFFalse false
00072 
00073 #else
00074 
00079 typedef int OFBool;
00080 
00081 #ifndef OFTrue 
00082 #define OFTrue (1)
00083 #endif
00084 
00085 #ifndef OFFalse 
00086 #define OFFalse (0)
00087 #endif
00088 
00089 #endif
00090 #endif
00091 
00092 /*
00093  * CVS/RCS Log:
00094  * $Log: oftypes.h,v $
00095  * Revision 1.7  2005/12/08 16:06:11  meichel
00096  * Changed include path schema for all DCMTK header files
00097  *
00098  * Revision 1.6  2002/07/10 11:45:26  meichel
00099  * Moved definitions for Uint8, Sint8 ... Float64 from dcmdata to ofstd
00100  *   since these types are not DICOM specific
00101  *
00102  * Revision 1.5  2001/06/01 15:51:36  meichel
00103  * Updated copyright header
00104  *
00105  * Revision 1.4  2000/10/10 12:01:22  meichel
00106  * Created/updated doc++ comments
00107  *
00108  * Revision 1.3  2000/03/08 16:36:03  meichel
00109  * Updated copyright header.
00110  *
00111  * Revision 1.2  1998/11/27 12:42:53  joergr
00112  * Added copyright message to source files and changed CVS header.
00113  *
00114  * Revision 1.1  1997/07/02 11:51:16  andreas
00115  * - Preliminary release of the OFFIS Standard Library.
00116  *   In the future this library shall contain a subset of the
00117  *   ANSI C++ Library (Version 3) that works on a lot of different
00118  *   compilers. Additionally this library shall include classes and
00119  *   functions that are often used. All classes and functions begin
00120  *   with OF... This library is independent of the DICOM development and
00121  *   shall contain no DICOM specific stuff.
00122  *
00123  */
00124 


Generated on 20 Dec 2005 for OFFIS DCMTK Version 3.5.4 by Doxygen 1.4.5