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 // $Id: ServiceToken.cc,v 1.3 2006/08/08 00:37:39 chrjones Exp $
12 //
13 
14 // system include files
15 
16 // user include files
19 
20 
21 //
22 // constants, enums and typedefs
23 //
24 
25 //
26 // static data member definitions
27 //
28 
29 //
30 // constructors and destructor
31 //
32 //ServiceToken::ServiceToken()
33 //{
34 //}
35 
36 // ServiceToken::ServiceToken(const ServiceToken& rhs)
37 // {
38 // // do actual copying here;
39 // }
40 
41 //ServiceToken::~ServiceToken()
42 //{
43 //}
44 
45 //
46 // assignment operators
47 //
48 // const ServiceToken& ServiceToken::operator=(const ServiceToken& rhs)
49 // {
50 // //An exception safe implementation is
51 // ServiceToken temp(rhs);
52 // swap(rhs);
53 //
54 // return *this;
55 // }
56 
57 //
58 // member functions
59 //
60 void
62 {
63  if(0!=manager_.get()){
64  manager_->connectTo(iConnectTo);
65  }
66 }
67 void
69 {
70  if(0!=manager_.get()){
71  manager_->connect(iConnectTo);
72  }
73 }
74 
75 void
77 {
78  if(0!=manager_.get()){
79  manager_->copySlotsTo(iConnectTo);
80  }
81 }
82 void
84 {
85  if(0!=manager_.get()){
86  manager_->copySlotsFrom(iConnectTo);
87  }
88 }
89 
90 //
91 // const member functions
92 //
93 
94 //
95 // static member functions
96 //
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