CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
edm::ServiceToken Class Reference

#include <ServiceToken.h>

Public Member Functions

void connect (ActivityRegistry &)
 the argument's signals will forward the token's signals More...
 
void connectTo (ActivityRegistry &)
 the argument's signals are propagated to the Service's held by the token More...
 
void copySlotsFrom (ActivityRegistry &)
 the copy the argument's slots to the token's signals More...
 
void copySlotsTo (ActivityRegistry &)
 copy our Service's slots to the argument's signals More...
 
 ServiceToken ()
 

Private Member Functions

 ServiceToken (std::shared_ptr< edm::serviceregistry::ServicesManager > iManager)
 

Private Attributes

std::shared_ptr< edm::serviceregistry::ServicesManagermanager_
 

Friends

class ::testServicesManager
 
class ::TestServicesManagerOrder
 
class edm::ServiceRegistry
 
class edm::serviceregistry::ServicesManager
 

Detailed Description

Definition at line 40 of file ServiceToken.h.

Constructor & Destructor Documentation

edm::ServiceToken::ServiceToken ( )
inline
edm::ServiceToken::ServiceToken ( std::shared_ptr< edm::serviceregistry::ServicesManager iManager)
inlineprivate

Definition at line 68 of file ServiceToken.h.

68 : manager_(iManager) {}
std::shared_ptr< edm::serviceregistry::ServicesManager > manager_
Definition: ServiceToken.h:75

Member Function Documentation

void ServiceToken::connect ( edm::ActivityRegistry iConnectTo)

the argument's signals will forward the token's signals

Definition at line 63 of file ServiceToken.cc.

References manager_.

Referenced by Vispa.Gui.ZoomableScrollArea.ZoomableScrollArea::__init__(), Vispa.Views.PropertyView.BooleanProperty::__init__(), Vispa.Gui.FindDialog.FindDialog::_addScript(), Vispa.Gui.FindDialog.FindDialog::_addStringProperty(), Vispa.Main.Application.Application::_connectSignals(), Vispa.Plugins.ConfigEditor.CodeTableView.CodeTableView::_createItem(), Vispa.Gui.BoxContentDialog.BoxContentDialog::addButton(), Vispa.Gui.ToolBoxContainer.ToolBoxContainer::addWidget(), Vispa.Views.PropertyView.PropertyView::append(), Vispa.Views.PropertyView.PropertyView::appendAddRow(), Vispa.Main.Application.Application::createAction(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createButton(), Vispa.Views.LineDecayView.LineDecayView::createLineDecayContainer(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createLineEdit(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createTextEdit(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::filterDialog(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Gui.PortWidget.PortWidget::mouseMoveEvent(), Vispa.Views.PropertyView.BooleanProperty::setChecked(), Vispa.Main.SplitterTab.SplitterTab::setController(), Vispa.Plugins.Browser.BrowserTab.BrowserTab::setController(), Vispa.Views.PropertyView.BooleanProperty::setReadOnly(), Vispa.Views.PropertyView.DropDownProperty::setReadOnly(), Vispa.Views.PropertyView.TextEditWithButtonProperty::setReadOnly(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::setTab(), Vispa.Views.PropertyView.IntegerProperty::setValue(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::switchCenterView(), o2o_db_cfgmap.DbManagerDAQ::update_hashmap(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController::updateViewMenu(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::updateViewMenu().

63  {
64  if (nullptr != manager_.get()) {
65  manager_->connect(iConnectTo);
66  }
67 }
std::shared_ptr< edm::serviceregistry::ServicesManager > manager_
Definition: ServiceToken.h:75
void ServiceToken::connectTo ( edm::ActivityRegistry iConnectTo)

the argument's signals are propagated to the Service's held by the token

Definition at line 58 of file ServiceToken.cc.

References manager_.

58  {
59  if (nullptr != manager_.get()) {
60  manager_->connectTo(iConnectTo);
61  }
62 }
std::shared_ptr< edm::serviceregistry::ServicesManager > manager_
Definition: ServiceToken.h:75
void ServiceToken::copySlotsFrom ( edm::ActivityRegistry iConnectTo)

the copy the argument's slots to the token's signals

Definition at line 74 of file ServiceToken.cc.

References manager_.

74  {
75  if (nullptr != manager_.get()) {
76  manager_->copySlotsFrom(iConnectTo);
77  }
78 }
std::shared_ptr< edm::serviceregistry::ServicesManager > manager_
Definition: ServiceToken.h:75
void ServiceToken::copySlotsTo ( edm::ActivityRegistry iConnectTo)

copy our Service's slots to the argument's signals

Definition at line 69 of file ServiceToken.cc.

References manager_.

Referenced by edm::ScheduleItems::initServices().

69  {
70  if (nullptr != manager_.get()) {
71  manager_->copySlotsTo(iConnectTo);
72  }
73 }
std::shared_ptr< edm::serviceregistry::ServicesManager > manager_
Definition: ServiceToken.h:75

Friends And Related Function Documentation

friend class ::testServicesManager
friend

Definition at line 44 of file ServiceToken.h.

friend class ::TestServicesManagerOrder
friend

Definition at line 45 of file ServiceToken.h.

friend class edm::ServiceRegistry
friend

Definition at line 41 of file ServiceToken.h.

Definition at line 42 of file ServiceToken.h.

Member Data Documentation

std::shared_ptr<edm::serviceregistry::ServicesManager> edm::ServiceToken::manager_
private