1 | // |
---|
2 | // ******************************************************************** |
---|
3 | // * License and Disclaimer * |
---|
4 | // * * |
---|
5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
7 | // * conditions of the Geant4 Software License, included in the file * |
---|
8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
9 | // * include a list of copyright holders. * |
---|
10 | // * * |
---|
11 | // * Neither the authors of this software system, nor their employing * |
---|
12 | // * institutes,nor the agencies providing financial support for this * |
---|
13 | // * work make any representation or warranty, express or implied, * |
---|
14 | // * regarding this software system or assume any liability for its * |
---|
15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
16 | // * for the full disclaimer and the limitation of liability. * |
---|
17 | // * * |
---|
18 | // * This code implementation is the result of the scientific and * |
---|
19 | // * technical work of the GEANT4 collaboration. * |
---|
20 | // * By using, copying, modifying or distributing the software (or * |
---|
21 | // * any work based on the software) you agree to acknowledge its * |
---|
22 | // * use in resulting scientific publications, and indicate your * |
---|
23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
24 | // ******************************************************************** |
---|
25 | // |
---|
26 | // |
---|
27 | // $Id: G4Types.hh,v 1.14 2006/06/29 19:03:22 gunter Exp $ |
---|
28 | // GEANT4 tag $Name: geant4-09-03 $ |
---|
29 | // |
---|
30 | // |
---|
31 | // GEANT4 native types |
---|
32 | // |
---|
33 | // History: |
---|
34 | |
---|
35 | #ifndef G4TYPES_HH |
---|
36 | #define G4TYPES_HH |
---|
37 | |
---|
38 | #ifdef WIN32 |
---|
39 | // Disable warning C4786 on WIN32 architectures: |
---|
40 | // identifier was truncated to '255' characters |
---|
41 | // in the debug information |
---|
42 | // |
---|
43 | #pragma warning ( disable : 4786 ) |
---|
44 | // |
---|
45 | // Define DLL export macro for WIN32 systems for |
---|
46 | // importing/exporting external symbols to DLLs |
---|
47 | // |
---|
48 | #if defined G4LIB_BUILD_DLL |
---|
49 | #define G4DLLEXPORT __declspec( dllexport ) |
---|
50 | #define G4DLLIMPORT __declspec( dllimport ) |
---|
51 | #else |
---|
52 | #define G4DLLEXPORT |
---|
53 | #define G4DLLIMPORT |
---|
54 | #endif |
---|
55 | #else |
---|
56 | #define G4DLLEXPORT |
---|
57 | #define G4DLLIMPORT |
---|
58 | #endif |
---|
59 | |
---|
60 | #include <complex> |
---|
61 | |
---|
62 | // Typedefs to decouple from library classes |
---|
63 | // Typedefs for numeric types |
---|
64 | // |
---|
65 | typedef double G4double; |
---|
66 | typedef float G4float; |
---|
67 | typedef int G4int; |
---|
68 | typedef bool G4bool; |
---|
69 | typedef long G4long; |
---|
70 | typedef std::complex<G4double> G4complex; |
---|
71 | |
---|
72 | // Forward declation of void type argument for usage in direct object |
---|
73 | // persistency to define fake default constructors |
---|
74 | // |
---|
75 | class __void__; |
---|
76 | |
---|
77 | #endif /* G4TYPES_HH */ |
---|