Changeset View
Changeset View
Standalone View
Standalone View
src/EvtGenBase/EvtReport.cpp
Show All 28 Lines | |||||
// | // | ||||
// constants, enums and typedefs | // constants, enums and typedefs | ||||
// | // | ||||
ostream& EvtGenReport( EvtGenSeverity severity, const char* facility ) | ostream& EvtGenReport( EvtGenSeverity severity, const char* facility ) | ||||
{ | { | ||||
int printNoFacility = 1; | int printNoFacility = 1; | ||||
if ( ( facility == 0 ) && ( printNoFacility == 1 ) ) { | if ( ( facility == nullptr ) && ( printNoFacility == 1 ) ) { | ||||
cout << "There is no `facility' implemented in `report'" << endl; | cout << "There is no `facility' implemented in `report'" << endl; | ||||
printNoFacility = 0; | printNoFacility = 0; | ||||
} | } | ||||
if ( severity < EVTGEN_WARNING ) { | if ( severity < EVTGEN_WARNING ) { | ||||
if ( facility[0] != 0 ) { | if ( facility[0] != 0 ) { | ||||
cerr << facility << ":"; | cerr << facility << ":"; | ||||
} | } | ||||
return ( cerr ); | return ( cerr ); | ||||
} | } | ||||
if ( facility[0] != 0 ) { | if ( facility[0] != 0 ) { | ||||
cout << facility << ":"; | cout << facility << ":"; | ||||
} | } | ||||
return cout; | return cout; | ||||
} | } |