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 <memory>
25 
26 // user include files
27 
28 // forward declarations
29 class testServicesManager;
30 class TestServicesManagerOrder;
31 
32 namespace edm {
33  class ServiceRegistry;
34  class ActivityRegistry;
35 
36  namespace serviceregistry {
37  class ServicesManager;
38  }
39 
41  {
42  friend class edm::ServiceRegistry;
44  //for testing
45  friend class ::testServicesManager;
46  friend class ::TestServicesManagerOrder;
47 
48  public:
50  //virtual ~ServiceToken();
51 
52  // ---------- const member functions ---------------------
53 
54  // ---------- static member functions --------------------
55 
56  // ---------- member functions ---------------------------
57 
62 
67 
68  private:
69  ServiceToken(std::shared_ptr<edm::serviceregistry::ServicesManager> iManager):
70  manager_(iManager) {}
71 
72  //ServiceToken(const ServiceToken&); // stop default
73 
74  //const ServiceToken& operator=(const ServiceToken&); // stop default
75 
76  // ---------- member data --------------------------------
77  std::shared_ptr<edm::serviceregistry::ServicesManager> manager_;
78  };
79 }
80 
81 #endif
void connectTo(ActivityRegistry &)
the argument&#39;s signals are propagated to the Service&#39;s held by the token
Definition: ServiceToken.cc:60
ServiceToken(std::shared_ptr< edm::serviceregistry::ServicesManager > iManager)
Definition: ServiceToken.h:69
void copySlotsFrom(ActivityRegistry &)
the copy the argument&#39;s slots to the token&#39;s signals
Definition: ServiceToken.cc:82
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
std::shared_ptr< edm::serviceregistry::ServicesManager > manager_
Definition: ServiceToken.h:77