CMS 3D CMS Logo

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

#include <InputSource.h>

Public Types

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

Public Member Functions

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

Private Attributes

std::string const & lfn_
 
Sigpost_
 
bool usedFallback_
 

Detailed Description

Definition at line 291 of file InputSource.h.

Member Typedef Documentation

◆ Sig

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

Definition at line 293 of file InputSource.h.

Constructor & Destructor Documentation

◆ FileOpenSentry() [1/2]

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

Definition at line 498 of file InputSource.cc.

499  : post_(source.actReg()->postOpenFileSignal_), lfn_(lfn), usedFallback_(usedFallback) {
500  source.actReg()->preOpenFileSignal_(lfn, usedFallback);
501  }

References edm::source().

◆ ~FileOpenSentry()

edm::InputSource::FileOpenSentry::~FileOpenSentry ( )

Definition at line 503 of file InputSource.cc.

503 { post_(lfn_, usedFallback_); }

◆ FileOpenSentry() [2/2]

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

Member Function Documentation

◆ operator=()

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

Member Data Documentation

◆ lfn_

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

Definition at line 302 of file InputSource.h.

◆ post_

Sig& edm::InputSource::FileOpenSentry::post_
private

Definition at line 301 of file InputSource.h.

◆ usedFallback_

bool edm::InputSource::FileOpenSentry::usedFallback_
private

Definition at line 303 of file InputSource.h.

edm::source
static const std::string source("source")
edm::InputSource::FileOpenSentry::usedFallback_
bool usedFallback_
Definition: InputSource.h:303
edm::InputSource::FileOpenSentry::post_
Sig & post_
Definition: InputSource.h:301
edm::InputSource::FileOpenSentry::lfn_
std::string const & lfn_
Definition: InputSource.h:302