source: JEM-EUSO/esaf_lal/tags/v1_r0/esaf/packages/simulation/detector/G4Detector/G4fresnellens/include/FresnelOutput_defs.h @ 117

Last change on this file since 117 was 117, checked in by moretto, 11 years ago

ESAF version compilable on mac OS

File size: 2.9 KB
Line 
1#ifndef __FresnelOutputDef__
2#define __FresnelOutputDef__
3
4#include "FresnelOutput_def.h"
5
6#ifdef __FOD_FRESNEL__
7  #include "Verbosity.h"
8  #define __INHERITSTRING           ,public VirtualVerbosity
9  #define __INHERITSTRING1          :public VirtualVerbosity
10  #define __INHERITCONSTRUCTOR(str) VirtualVerbosity(str),
11  #define __REG_ACTION(str)         //str
12
13  #define debug_                debug()
14  #define info_                 info()
15  #define warning_              warning()
16  #define error_                error()
17  #define endline_              endline
18  #define Info_(msg)            this->InfoMessage(msg);
19  #define Warning_(msg)         this->WarningMessage(msg);
20  #define Error_(msg)           this->ErrorMessage(msg);
21  #define Abort_(msg)           this->AbortMessage(msg);
22#endif
23
24#ifdef __FOD_ESAF__
25  #include "EsafMsgSource.hh"
26  #define __INHERITSTRING           ,public EsafMsgSource
27  #define __INHERITSTRING1          :public EsafMsgSource
28  #define __INHERITCONSTRUCTOR(str) /*str*/
29  #define __REG_ACTION(str)         SetSender(str);
30
31  #define debug_                Msg(EsafMsg::Debug)
32  #define info_                 Msg(EsafMsg::Info)
33  #define warning_              Msg(EsafMsg::Warning)
34  #define error_                Msg(EsafMsg::Error)
35  #define endline_              MsgDispatch
36  #define Info_(msg)            MsgForm(EsafMsg::Info,msg);
37  #define Warning_(msg)         MsgForm(EsafMsg::Warning,msg);
38  #define Error_(msg)           MsgForm(EsafMsg::Error,msg);
39  #define Abort_(msg)           {MsgForm(EsafMsg::Panic,msg);exit(1);}
40#endif
41
42#ifdef __FOD_GEANT4__
43  #include <G4ios.hh>
44  #define __INHERITSTRING
45  #define __INHERITSTRING1
46  #define __INHERITCONSTRUCTOR(str) /*str*/
47  #define __REG_ACTION(str)     //str
48
49  #define debug_                G4cout<<"Debug: "
50  #define info_                 G4cout<<"Info: "
51  #define warning_              G4cout<<"Warning: "
52  #define error_                G4cerr<<"Error: "
53  #define endline_              G4endl
54  #define Info_(msg)            G4cout<<"Info: "<<msg<<G4endl;
55  #define Warning_(msg)         G4cout<<"Warning: "<<msg<<G4endl;
56  #define Error_(msg)           G4cerr<<"Error: "<<msg<<G4endl;
57  #define Abort_(msg)           {G4cerr<<"Abort: "<<msg<<G4endl;exit(1);}
58#endif
59
60#ifdef __FOD_STANDALONE__
61  #include <iostream>
62
63  #define __INHERITSTRING
64  #define __INHERITSTRING1
65  #define __INHERITCONSTRUCTOR(str) /*str*/
66  #define __REG_ACTION(str)     //str
67
68  #define debug_                std::cout
69  #define info_                 std::cout
70  #define warning_              std::cout
71  #define error_                std::cerr
72  #define endline_              std::endl
73  #define Info_(msg)            std::cout<<msg<<std::endl;
74  #define Warning_(msg)         std::cout<<msg<<std::endl;
75  #define Error_(msg)           std::cerr<<msg<<std::endl;
76  #define Abort_(msg)         { std::cerr<<msg<<std::endl; exit(1); }
77#endif
78
79#endif
Note: See TracBrowser for help on using the repository browser.