#include <FWCore/PluginManager/interface/PresenceFactory.h>
Public Member Functions | |
std::auto_ptr< Presence > | makePresence (std::string const &presence_type) const |
~PresenceFactory () | |
Static Public Member Functions | |
static PresenceFactory * | get () |
Private Member Functions | |
PresenceFactory () |
Definition at line 15 of file PresenceFactory.h.
edm::PresenceFactory::~PresenceFactory | ( | ) |
edm::PresenceFactory::PresenceFactory | ( | ) | [private] |
PresenceFactory * edm::PresenceFactory::get | ( | void | ) | [static] |
Definition at line 18 of file PresenceFactory.cc.
Referenced by evf::FUEventProcessor::FUEventProcessor(), cond::FWIncantation::FWIncantation(), and VisEventProcessorService::init().
00018 { 00019 static PresenceFactory singleInstance_; 00020 return &singleInstance_; 00021 }
std::auto_ptr< Presence > edm::PresenceFactory::makePresence | ( | std::string const & | presence_type | ) | const |
Definition at line 25 of file PresenceFactory.cc.
References edm::errors::Configuration, lat::endl(), FDEBUG, and DBSPlugin::get().
Referenced by evf::FUEventProcessor::FUEventProcessor().
00025 { 00026 std::auto_ptr<Presence> sp(PresencePluginFactory::get()->create(presence_type)); 00027 00028 if(sp.get()==0) { 00029 throw edm::Exception(errors::Configuration, "NoPresenceModule") 00030 << "Presence Factory:\n" 00031 << "Cannot find presence type: " 00032 << presence_type << "\n" 00033 << "Perhaps the name is misspelled or is not a Plugin?\n" 00034 << "Try running EdmPluginDump to obtain a list of available Plugins."; 00035 } 00036 00037 FDEBUG(1) << "PresenceFactory: created presence " 00038 << presence_type 00039 << std::endl; 00040 00041 return sp; 00042 }