Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
test
Integration
ServiceUsing_service.cc
Go to the documentation of this file.
1
#include "
art/test/Integration/ServiceUsing.h
"
2
3
namespace
art
{
4
namespace
test
{
5
6
ServiceUsing::ServiceUsing
(
fhicl::ParameterSet
const
&,
7
art::ActivityRegistry
&
reg
)
8
{
9
reg.
sPostBeginJob
.watch(
this
, &
ServiceUsing::postBeginJob
);
10
wanted_
->setValue(
cached_value_
);
11
}
12
13
void
14
ServiceUsing::postBeginJob
()
15
{
16
postBeginJobCalled_
=
true
;
17
cached_value_
= 10;
18
wanted_
->setValue(
cached_value_
);
19
}
20
21
}
// namespace test
22
}
// namespace art
23
24
DEFINE_ART_SERVICE
(
art::test::ServiceUsing
)
art::test::ServiceUsing::wanted_
ServiceHandle< Wanted > wanted_
Definition:
ServiceUsing.h:36
art::test::ServiceUsing::cached_value_
int cached_value_
Definition:
ServiceUsing.h:34
art::ActivityRegistry::sPostBeginJob
GlobalSignal< detail::SignalResponseType::FIFO, void()> sPostBeginJob
Definition:
ActivityRegistry.h:63
art::test::ServiceUsing::ServiceUsing
ServiceUsing(fhicl::ParameterSet const &, art::ActivityRegistry &)
Definition:
ServiceUsing_service.cc:6
ServiceUsing.h
DEFINE_ART_SERVICE
#define DEFINE_ART_SERVICE(svc)
Definition:
ServiceMacros.h:88
test
Definition:
test.py:1
art::test::ServiceUsing
Definition:
ServiceUsing.h:12
art::test::ServiceUsing::postBeginJob
void postBeginJob()
Definition:
ServiceUsing_service.cc:14
art::ActivityRegistry
Definition:
ActivityRegistry.h:52
art
Definition:
BasicOptionsHandler.h:11
art::test::ServiceUsing::postBeginJobCalled_
bool postBeginJobCalled_
Definition:
ServiceUsing.h:32
cet::registry_via_id
Definition:
registry_via_id.h:21
fhicl::ParameterSet
Definition:
ParameterSet.h:34
Generated by
1.8.11