G4Types.hh

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //
00027 // $Id$
00028 //
00029 //
00030 // GEANT4 native types
00031 //
00032 // History:
00033 
00034 #ifndef G4TYPES_HH
00035 #define G4TYPES_HH
00036 
00037 #ifdef WIN32
00038   // Disable warning C4786 on WIN32 architectures:
00039   // identifier was truncated to '255' characters
00040   // in the debug information
00041   //
00042   #pragma warning ( disable : 4786 )
00043   //
00044   // Define DLL export macro for WIN32 systems for
00045   // importing/exporting external symbols to DLLs
00046   //
00047   #if defined G4LIB_BUILD_DLL
00048     #define G4DLLEXPORT __declspec( dllexport )
00049     #define G4DLLIMPORT __declspec( dllimport )
00050   #else
00051     #define G4DLLEXPORT
00052     #define G4DLLIMPORT
00053   #endif
00054 #else
00055   #define G4DLLEXPORT
00056   #define G4DLLIMPORT
00057 #endif
00058 
00059 #include <complex>
00060 
00061 // Typedefs to decouple from library classes
00062 // Typedefs for numeric types
00063 //
00064 typedef double G4double;
00065 typedef float G4float;
00066 typedef int G4int;
00067 typedef bool G4bool;
00068 typedef long G4long;
00069 typedef std::complex<G4double> G4complex;
00070 
00071 // Forward declation of void type argument for usage in direct object
00072 // persistency to define fake default constructors
00073 //
00074 class __void__;
00075 
00076 #endif /* G4TYPES_HH */

Generated on Mon May 27 17:50:04 2013 for Geant4 by  doxygen 1.4.7