CMS 3D CMS Logo

edm::PresenceFactory Class Reference

#include <FWCore/PluginManager/interface/PresenceFactory.h>

List of all members.

Public Member Functions

std::auto_ptr< PresencemakePresence (std::string const &presence_type) const
 ~PresenceFactory ()

Static Public Member Functions

static PresenceFactoryget ()

Private Member Functions

 PresenceFactory ()


Detailed Description

Definition at line 15 of file PresenceFactory.h.


Constructor & Destructor Documentation

edm::PresenceFactory::~PresenceFactory (  ) 

Definition at line 11 of file PresenceFactory.cc.

00011                                     {
00012   }

edm::PresenceFactory::PresenceFactory (  )  [private]

Definition at line 14 of file PresenceFactory.cc.

00014                                    {
00015   }


Member Function Documentation

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   }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:42:59 2009 for CMSSW by  doxygen 1.5.4