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 // $Id: ServiceToken.h,v 1.4 2006/08/08 00:37:37 chrjones Exp $
22 //
23 
24 // system include files
25 #include "boost/shared_ptr.hpp"
26 
27 // user include files
28 
29 // forward declarations
30 namespace edm {
31  class ServiceRegistry;
32  class ActivityRegistry;
33 
34  namespace serviceregistry {
35  class ServicesManager;
36  }
37 
39  {
40  friend class edm::ServiceRegistry;
42  public:
44  //virtual ~ServiceToken();
45 
46  // ---------- const member functions ---------------------
47 
48  // ---------- static member functions --------------------
49 
50  // ---------- member functions ---------------------------
51 
56 
61 
62  private:
63  ServiceToken(boost::shared_ptr<edm::serviceregistry::ServicesManager> iManager):
64  manager_(iManager) {}
65 
66  //ServiceToken(const ServiceToken&); // stop default
67 
68  //const ServiceToken& operator=(const ServiceToken&); // stop default
69 
70  // ---------- member data --------------------------------
71  boost::shared_ptr<edm::serviceregistry::ServicesManager> manager_;
72  };
73 }
74 
75 #endif
ServiceToken(boost::shared_ptr< edm::serviceregistry::ServicesManager > iManager)
Definition: ServiceToken.h:63
void connectTo(ActivityRegistry &)
the argument&#39;s signals are propagated to the Service&#39;s held by the token
Definition: ServiceToken.cc:61
void copySlotsFrom(ActivityRegistry &)
the copy the argument&#39;s slots to the token&#39;s signals
Definition: ServiceToken.cc:83
boost::shared_ptr< edm::serviceregistry::ServicesManager > manager_
Definition: ServiceToken.h:71
void copySlotsTo(ActivityRegistry &)
copy our Service&#39;s slots to the argument&#39;s signals
Definition: ServiceToken.cc:76
void connect(ActivityRegistry &)
the argument&#39;s signals will forward the token&#39;s signals
Definition: ServiceToken.cc:68