/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenBase/EvtReport.cc

Go to the documentation of this file.
00001 //--------------------------------------------------------------------------
00002 //
00003 // Environment:
00004 //      This software is part of the EvtGen package developed jointly
00005 //      for the BaBar and CLEO collaborations.  If you use all or part
00006 //      of it, please give an appropriate acknowledgement.
00007 //
00008 // Copyright Information: See EvtGen/COPYRIGHT
00009 //      Copyright (C) 1998      Caltech, UCSB
00010 //
00011 // Module: EvtReport.cc
00012 //
00013 // Description: definitions of global functions.
00014 //
00015 // Modification history:
00016 //
00017 //    Simon Patton   June 3, 1996           Module created
00018 //
00019 //------------------------------------------------------------------------
00020 //
00021 #include "EvtGenBase/EvtPatches.hh"
00022 
00023 // system include files
00024 #include "EvtGenBase/EvtReport.hh"
00025 using std::cerr;
00026 using std::cout;
00027 using std::endl;
00028 using std::ostream;
00029 
00030 
00031 //
00032 // constants, enums and typedefs
00033 //
00034 
00035 
00036 ostream& report( Severity severity ,
00037                  const char* facility )
00038 {
00039    int printNoFacility=1;
00040 
00041    if ( ( facility == 0 ) &&
00042         ( printNoFacility ==1) ) {
00043       cout << "There is no `facility' implemented in `report'"
00044                         << endl ;
00045       printNoFacility = 0 ;
00046    }
00047    if ( severity < WARNING ) {
00048      if (facility[0]!=0){
00049        cerr<<facility<<":";
00050      }
00051      return ( cerr ) ;
00052    }
00053    if (facility[0]!=0){
00054      cout<<facility<<":";
00055    }    
00056    return cout;
00057 }
00058 
00059 

Generated on Tue Nov 29 23:12:15 2016 for BOSS_7.0.2 by  doxygen 1.4.7