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
//
21
#include "
EvtGenBase/EvtPatches.hh
"
22
23
// system include files
24
#include "
EvtGenBase/EvtReport.hh
"
25
using
std::cerr;
26
using
std::cout;
27
using
std::endl;
28
using
std::ostream;
29
30
31
//
32
// constants, enums and typedefs
33
//
34
35
36
ostream&
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
EvtPatches.hh
report
ostream & report(Severity severity, const char *facility)
Definition:
EvtReport.cc:36
EvtReport.hh
Severity
Severity
Definition:
EvtReport.hh:45
WARNING
@ WARNING
Definition:
EvtReport.hh:50
source
Generator
BesEvtGen
BesEvtGen-00-03-98
src
EvtGen
EvtGenBase
EvtReport.cc
Generated by
1.9.6