CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RegistrationCollection.h
Go to the documentation of this file.
1 // $Id: RegistrationCollection.h,v 1.7.4.1 2011/03/07 11:33:04 mommsen Exp $
3 
4 #ifndef EventFilter_StorageManager_RegistrationCollection_h
5 #define EventFilter_StorageManager_RegistrationCollection_h
6 
11 
12 #include <vector>
13 #include <map>
14 
15 #include <boost/thread/mutex.hpp>
16 #include <boost/shared_ptr.hpp>
17 
18 namespace stor
19 {
20 
30  {
31 
32  public:
33 
35 
37 
43 
48 
52  RegPtr getRegistrationInfo( const ConsumerID ) const;
53 
57  typedef std::vector<EventConsRegPtr> ConsumerRegistrations;
59 
63  typedef std::vector<DQMEventConsRegPtr> DQMConsumerRegistrations;
65 
70 
75 
79  void clearRegistrations();
80 
84  bool registrationIsAllowed( const ConsumerID ) const;
85 
86  private:
87 
89 
91 
93 
94  typedef std::map<ConsumerID, RegPtr> RegistrationMap;
96 
97  };
98 
99  typedef boost::shared_ptr<RegistrationCollection> RegistrationCollectionPtr;
100 
101 } // namespace stor
102 
103 #endif // EventFilter_StorageManager_RegistrationCollection_h
104 
105 
std::vector< EventConsRegPtr > ConsumerRegistrations
boost::shared_ptr< RegistrationInfoBase > RegPtr
static boost::mutex mutex
Definition: LHEProxy.cc:11
boost::shared_ptr< RegistrationCollection > RegistrationCollectionPtr
RegPtr getRegistrationInfo(const ConsumerID) const
bool registrationIsAllowed(const ConsumerID) const
std::map< ConsumerID, RegPtr > RegistrationMap
void getEventConsumers(ConsumerRegistrations &) const
std::vector< DQMEventConsRegPtr > DQMConsumerRegistrations
void getDQMEventConsumers(DQMConsumerRegistrations &) const