Public Member Functions | Private Member Functions | Private Attributes | List of all members
art::test::ServiceUsing Class Reference

#include <ServiceUsing.h>

Public Member Functions

 ServiceUsing (fhicl::ParameterSet const &, art::ActivityRegistry &)
 
int getCachedValue () const
 
bool postBeginJobCalled () const
 

Private Member Functions

void postBeginJob ()
 

Private Attributes

bool postBeginJobCalled_ {false}
 
int cached_value_ {}
 
ServiceHandle< Wantedwanted_ {}
 

Detailed Description

Definition at line 12 of file ServiceUsing.h.

Constructor & Destructor Documentation

art::test::ServiceUsing::ServiceUsing ( fhicl::ParameterSet const &  ,
art::ActivityRegistry reg 
)

Definition at line 6 of file ServiceUsing_service.cc.

8  {
10  wanted_->setValue(cached_value_);
11  }
ServiceHandle< Wanted > wanted_
Definition: ServiceUsing.h:36
GlobalSignal< detail::SignalResponseType::FIFO, void()> sPostBeginJob

Member Function Documentation

int art::test::ServiceUsing::getCachedValue ( ) const
inline

Definition at line 18 of file ServiceUsing.h.

19  {
20  return cached_value_;
21  }
void art::test::ServiceUsing::postBeginJob ( )
private

Definition at line 14 of file ServiceUsing_service.cc.

15  {
16  postBeginJobCalled_ = true;
17  cached_value_ = 10;
18  wanted_->setValue(cached_value_);
19  }
ServiceHandle< Wanted > wanted_
Definition: ServiceUsing.h:36
bool art::test::ServiceUsing::postBeginJobCalled ( ) const
inline

Definition at line 24 of file ServiceUsing.h.

25  {
26  return postBeginJobCalled_;
27  }

Member Data Documentation

int art::test::ServiceUsing::cached_value_ {}
private

Definition at line 34 of file ServiceUsing.h.

bool art::test::ServiceUsing::postBeginJobCalled_ {false}
private

Definition at line 32 of file ServiceUsing.h.

ServiceHandle<Wanted> art::test::ServiceUsing::wanted_ {}
private

Definition at line 36 of file ServiceUsing.h.


The documentation for this class was generated from the following files: