CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ServiceToken.h
Go to the documentation of this file.
1 #ifndef ServiceRegistry_ServiceToken_h
2 #define ServiceRegistry_ServiceToken_h
3 // -*- C++ -*-
4 //
5 // Package: ServiceRegistry
6 // Class : ServiceToken
7 //
18 //
19 // Original Author: Chris Jones
20 // Created: Tue Sep 6 18:31:44 EDT 2005
21 //
22 
23 // system include files
24 #include "boost/shared_ptr.hpp"
25 
26 // user include files
27 
28 // forward declarations
29 namespace edm {
30  class ServiceRegistry;
31  class ActivityRegistry;
32 
33  namespace serviceregistry {
34  class ServicesManager;
35  }
36 
38  {
39  friend class edm::ServiceRegistry;
41  public:
43  //virtual ~ServiceToken();
44 
45  // ---------- const member functions ---------------------
46 
47  // ---------- static member functions --------------------
48 
49  // ---------- member functions ---------------------------
50 
55 
60 
61  private:
62  ServiceToken(boost::shared_ptr<edm::serviceregistry::ServicesManager> iManager):
63  manager_(iManager) {}
64 
65  //ServiceToken(const ServiceToken&); // stop default
66 
67  //const ServiceToken& operator=(const ServiceToken&); // stop default
68 
69  // ---------- member data --------------------------------
70  boost::shared_ptr<edm::serviceregistry::ServicesManager> manager_;
71  };
72 }
73 
74 #endif
ServiceToken(boost::shared_ptr< edm::serviceregistry::ServicesManager > iManager)
Definition: ServiceToken.h:62
void connectTo(ActivityRegistry &)
the argument&#39;s signals are propagated to the Service&#39;s held by the token
Definition: ServiceToken.cc:60
void copySlotsFrom(ActivityRegistry &)
the copy the argument&#39;s slots to the token&#39;s signals
Definition: ServiceToken.cc:82
boost::shared_ptr< edm::serviceregistry::ServicesManager > manager_
Definition: ServiceToken.h:70
void copySlotsTo(ActivityRegistry &)
copy our Service&#39;s slots to the argument&#39;s signals
Definition: ServiceToken.cc:75
void connect(ActivityRegistry &)
the argument&#39;s signals will forward the token&#39;s signals
Definition: ServiceToken.cc:67