BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtReport.cc
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2//
3// Environment:
4// This software is part of the EvtGen package developed jointly
5// for the BaBar and CLEO collaborations. If you use all or part
6// of it, please give an appropriate acknowledgement.
7//
8// Copyright Information: See EvtGen/COPYRIGHT
9// Copyright (C) 1998 Caltech, UCSB
10//
11// Module: EvtReport.cc
12//
13// Description: definitions of global functions.
14//
15// Modification history:
16//
17// Simon Patton June 3, 1996 Module created
18//
19//------------------------------------------------------------------------
20//
22
23// system include files
25using std::cerr;
26using std::cout;
27using std::endl;
28using std::ostream;
29
30
31//
32// constants, enums and typedefs
33//
34
35
36ostream& report( Severity severity ,
37 const char* facility )
38{
39 int printNoFacility=1;
40
41 if ( ( facility == 0 ) &&
42 ( printNoFacility ==1) ) {
43 cout << "There is no `facility' implemented in `report'"
44 << endl ;
45 printNoFacility = 0 ;
46 }
47 if ( severity < WARNING ) {
48 if (facility[0]!=0){
49 cerr<<facility<<":";
50 }
51 return ( cerr ) ;
52 }
53 if (facility[0]!=0){
54 cout<<facility<<":";
55 }
56 return cout;
57}
58
59
ostream & report(Severity severity, const char *facility)
Definition: EvtReport.cc:36
Severity
Definition: EvtReport.hh:45
@ WARNING
Definition: EvtReport.hh:50