BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtReport.cc File Reference
#include "EvtGenBase/EvtPatches.hh"
#include "EvtGenBase/EvtReport.hh"

Go to the source code of this file.

Functions

ostream & report (Severity severity, const char *facility)
 

Function Documentation

◆ report()

ostream & report ( Severity  severity,
const char *  facility 
)

Definition at line 36 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtReport.cc.

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}