Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages

Types.h (Maintainer: Marc Sturm)

Go to the documentation of this file.
00001 // -*- mode: C++; tab-width: 2; -*-
00002 // vi: set ts=2:
00003 //
00004 // --------------------------------------------------------------------------
00005 //                   OpenMS Mass Spectrometry Framework 
00006 // --------------------------------------------------------------------------
00007 //  Copyright (C) 2003-2008 -- Oliver Kohlbacher, Knut Reinert
00008 //
00009 //  This library is free software; you can redistribute it and/or
00010 //  modify it under the terms of the GNU Lesser General Public
00011 //  License as published by the Free Software Foundation; either
00012 //  version 2.1 of the License, or (at your option) any later version.
00013 //
00014 //  This library is distributed in the hope that it will be useful,
00015 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017 //  Lesser General Public License for more details.
00018 //
00019 //  You should have received a copy of the GNU Lesser General Public
00020 //  License along with this library; if not, write to the Free Software
00021 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00022 //
00023 // --------------------------------------------------------------------------
00024 // $Maintainer: Marc Sturm $
00025 // --------------------------------------------------------------------------
00026 
00027 #ifndef OPENMS_CONCEPT_TYPES_H
00028 #define OPENMS_CONCEPT_TYPES_H
00029 
00030 #include <OpenMS/config.h>
00031 
00032 #include <limits.h>
00033 #include <time.h>
00034 
00035 #ifdef OPENMS_HAS_BASETSD_H
00036 #include <basetsd.h>
00037 #endif
00038 
00039 // If possible use the ISO C99-compliant header stdint.h
00040 // to define the portable integer types.
00041 #ifdef OPENMS_HAS_STDINT_H
00042 #include <stdint.h>
00043 #endif
00044 
00045 // Added to avoid warnings with MS Visual Studio .NET
00046 #ifdef OPENMS_COMPILER_MSVC
00047 # pragma warning( disable : 4290 )
00048 #endif
00049 
00050 namespace OpenMS
00051 {
00052   #ifndef OPENMS_HAS_STDINT_H
00053 
00059   typedef OPENMS_INDEX_TYPE Int;
00060 
00066   typedef OPENMS_SIZE_TYPE UInt;
00067 
00075   typedef time_t  Time;
00076 
00084   typedef float Real;
00085 
00093   typedef double DoubleReal;
00094 
00102   typedef unsigned char Byte;
00103 
00112   typedef OPENMS_ULONG64_TYPE PointerSizeUInt;
00113 
00122   typedef OPENMS_LONG64_TYPE PointerSizeInt;
00123 
00131   typedef OPENMS_ULONG64_TYPE UID;
00132 
00140   typedef OPENMS_LONG64_TYPE Offset64Int;
00141   
00142   
00143   #else
00144     // the ISO C99 definitions
00145     typedef int32_t Int; 
00146     typedef uint32_t UInt;
00147     typedef time_t  Time;
00148     typedef unsigned int UInt;    /* Remark: previous "Position" is unkown */
00149     typedef float Real;
00150     typedef double DoubleReal;
00151     typedef uint8_t Byte;
00152     typedef int64_t  PointerSizeInt;
00153     typedef uint64_t PointerSizeUInt;
00154     typedef uint64_t UID;
00155     typedef int64_t  Offset64Int;
00156 
00157   #endif
00158 
00159 
00160   
00162 
00163   enum ASCII
00164   {
00165     ASCII__BACKSPACE        = '\b',
00166     ASCII__BELL             = '\a',
00167     ASCII__CARRIAGE_RETURN  = '\r',
00168     ASCII__HORIZONTAL_TAB   = '\t',
00169     ASCII__NEWLINE          = '\n',
00170     ASCII__RETURN           = ASCII__NEWLINE,
00171     ASCII__SPACE            = ' ',
00172     ASCII__TAB              = ASCII__HORIZONTAL_TAB,
00173     ASCII__VERTICAL_TAB     = '\v',
00174 
00175     ASCII__COLON            = ':',
00176     ASCII__COMMA            = ',',
00177     ASCII__EXCLAMATION_MARK = '!',
00178     ASCII__POINT            = '.',
00179     ASCII__QUESTION_MARK    = '?',
00180     ASCII__SEMICOLON        = ';'
00181   };
00182   
00183 } // namespace OpenMS
00184 
00185 #endif // OPENMS_CONCEPT_TYPES_H

Generated Tue Apr 1 15:36:39 2008 -- using doxygen 1.5.4 OpenMS / TOPP 1.1