BOSS 8.0.0
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//
21#include "EvtPatches.hh"
22
23// system include files
24#include "EvtReport.hh"
25using std::cerr;
26using std::cout;
27using std::endl;
28using std::ostream;
29
30//
31// constants, enums and typedefs
32//
33
34ostream& report( Severity severity, const char* facility ) {
35 int printNoFacility = 1;
36
37 if ( ( facility == 0 ) && ( printNoFacility == 1 ) )
38 {
39 cout << "There is no `facility' implemented in `report'" << endl;
40 printNoFacility = 0;
41 }
42 if ( severity < WARNING )
43 {
44 if ( facility[0] != 0 ) { cerr << facility << ":"; }
45 return ( cerr );
46 }
47 if ( facility[0] != 0 ) { cout << facility << ":"; }
48 return cout;
49}
ostream & report(Severity severity, const char *facility)
Definition EvtReport.cc:34
Severity
Definition EvtReport.hh:45
@ WARNING
Definition EvtReport.hh:50