CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ServiceToken.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: ServiceRegistry
4 // Class : ServiceToken
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Original Author: Chris Jones
10 // Created: Thu Sep 8 04:26:12 EDT 2005
11 //
12 
13 // system include files
14 
15 // user include files
18 
19 
20 //
21 // constants, enums and typedefs
22 //
23 
24 //
25 // static data member definitions
26 //
27 
28 //
29 // constructors and destructor
30 //
31 //ServiceToken::ServiceToken()
32 //{
33 //}
34 
35 // ServiceToken::ServiceToken(const ServiceToken& rhs)
36 // {
37 // // do actual copying here;
38 // }
39 
40 //ServiceToken::~ServiceToken()
41 //{
42 //}
43 
44 //
45 // assignment operators
46 //
47 // const ServiceToken& ServiceToken::operator=(const ServiceToken& rhs)
48 // {
49 // //An exception safe implementation is
50 // ServiceToken temp(rhs);
51 // swap(rhs);
52 //
53 // return *this;
54 // }
55 
56 //
57 // member functions
58 //
59 void
61 {
62  if(0!=manager_.get()){
63  manager_->connectTo(iConnectTo);
64  }
65 }
66 void
68 {
69  if(0!=manager_.get()){
70  manager_->connect(iConnectTo);
71  }
72 }
73 
74 void
76 {
77  if(0!=manager_.get()){
78  manager_->copySlotsTo(iConnectTo);
79  }
80 }
81 void
83 {
84  if(0!=manager_.get()){
85  manager_->copySlotsFrom(iConnectTo);
86  }
87 }
88 
89 //
90 // const member functions
91 //
92 
93 //
94 // static member functions
95 //
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
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:70