Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:59

0001 
0002 
0003 #include "FWCore/PluginManager/interface/ProblemTracker.h"
0004 #include "FWCore/PluginManager/interface/PluginManager.h"
0005 #include "FWCore/PluginManager/interface/standard.h"
0006 
0007 #include <string>
0008 
0009 namespace edm {
0010 
0011   // -----------------------------------------------
0012 
0013   //edmplugin::DebugAids::AssertHook ProblemTracker::old_assert_hook_ = 0;
0014 
0015   ProblemTracker::ProblemTracker() {
0016     //old_assert_hook_ = edmplugin::DebugAids::failHook(&failure);
0017     if (not edmplugin::PluginManager::isAvailable()) {
0018       edmplugin::PluginManager::Config config(edmplugin::standard::config());
0019 
0020       edmplugin::PluginManager::configure(config);
0021     }
0022   }
0023 
0024   ProblemTracker::~ProblemTracker() {
0025     // since this is a singleton, we will not restore the old handle
0026   }
0027 
0028   ProblemTracker const* ProblemTracker::instance() {
0029     static ProblemTracker const pt;
0030     return &pt;
0031   }
0032 
0033   // ---------------------------------------------
0034 
0035   AssertHandler::AssertHandler() : pt_(ProblemTracker::instance()) {}
0036 
0037   AssertHandler::~AssertHandler() {}
0038 
0039 }  // namespace edm