CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
edm::InputSource::FileCloseSentry Class Reference

#include <InputSource.h>

Public Types

typedef signalslot::Signal< void(std::string const &, bool)> Sig
 

Public Member Functions

 FileCloseSentry (FileCloseSentry const &)=delete
 
 FileCloseSentry (InputSource const &source, std::string const &lfn, bool usedFallback)
 
FileCloseSentryoperator= (FileCloseSentry const &)=delete
 
 ~FileCloseSentry ()
 

Private Attributes

std::string const & lfn_
 
Sigpost_
 
bool usedFallback_
 

Detailed Description

Definition at line 302 of file InputSource.h.

Member Typedef Documentation

◆ Sig

typedef signalslot::Signal<void(std::string const&, bool)> edm::InputSource::FileCloseSentry::Sig

Definition at line 304 of file InputSource.h.

Constructor & Destructor Documentation

◆ FileCloseSentry() [1/2]

edm::InputSource::FileCloseSentry::FileCloseSentry ( InputSource const &  source,
std::string const &  lfn,
bool  usedFallback 
)
explicit

Definition at line 475 of file InputSource.cc.

476  : post_(source.actReg()->postCloseFileSignal_), lfn_(lfn), usedFallback_(usedFallback) {
477  source.actReg()->preCloseFileSignal_(lfn, usedFallback);
478  }

References edm::source().

◆ ~FileCloseSentry()

edm::InputSource::FileCloseSentry::~FileCloseSentry ( )

Definition at line 480 of file InputSource.cc.

480 { post_(lfn_, usedFallback_); }

◆ FileCloseSentry() [2/2]

edm::InputSource::FileCloseSentry::FileCloseSentry ( FileCloseSentry const &  )
delete

Member Function Documentation

◆ operator=()

FileCloseSentry& edm::InputSource::FileCloseSentry::operator= ( FileCloseSentry const &  )
delete

Member Data Documentation

◆ lfn_

std::string const& edm::InputSource::FileCloseSentry::lfn_
private

Definition at line 313 of file InputSource.h.

◆ post_

Sig& edm::InputSource::FileCloseSentry::post_
private

Definition at line 312 of file InputSource.h.

◆ usedFallback_

bool edm::InputSource::FileCloseSentry::usedFallback_
private

Definition at line 314 of file InputSource.h.

edm::source
static const std::string source("source")
edm::InputSource::FileCloseSentry::lfn_
std::string const & lfn_
Definition: InputSource.h:313
edm::InputSource::FileCloseSentry::post_
Sig & post_
Definition: InputSource.h:312
edm::InputSource::FileCloseSentry::usedFallback_
bool usedFallback_
Definition: InputSource.h:314