LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
art::FileBlock Class Reference

#include "FileBlock.h"

Inheritance diagram for art::FileBlock:
art::RootFileBlock

Public Member Functions

 FileBlock ()=default
 
virtual ~FileBlock () noexcept=default
 
 FileBlock (FileFormatVersion const &version, std::string const &fileName)
 
 FileBlock (FileFormatVersion const &version, std::string const &fileName, std::unique_ptr< ResultsPrincipal > &&resp)
 
FileFormatVersion const & fileFormatVersion () const
 
std::string const & fileName () const
 

Private Member Functions

ResultsPrincipal const * resultsPrincipal () const
 

Private Attributes

FileFormatVersion fileFormatVersion_ {}
 
std::string fileName_ {}
 
std::unique_ptr< ResultsPrincipalresp_ {}
 

Friends

class OutputModule
 

Detailed Description

Definition at line 17 of file FileBlock.h.

Constructor & Destructor Documentation

art::FileBlock::FileBlock ( )
default
virtual art::FileBlock::~FileBlock ( )
virtualdefaultnoexcept
art::FileBlock::FileBlock ( FileFormatVersion const &  version,
std::string const &  fileName 
)
inline

Definition at line 22 of file FileBlock.h.

References fileName(), and fileName_.

24  {}
FileFormatVersion fileFormatVersion_
Definition: FileBlock.h:48
std::string const & fileName() const
Definition: FileBlock.h:38
std::string fileName_
Definition: FileBlock.h:49
art::FileBlock::FileBlock ( FileFormatVersion const &  version,
std::string const &  fileName,
std::unique_ptr< ResultsPrincipal > &&  resp 
)
inline

Definition at line 26 of file FileBlock.h.

References fileName(), fileName_, and resp_.

29  : fileFormatVersion_{version}, fileName_{fileName}, resp_{std::move(resp)}
30  {}
FileFormatVersion fileFormatVersion_
Definition: FileBlock.h:48
std::string const & fileName() const
Definition: FileBlock.h:38
std::unique_ptr< ResultsPrincipal > resp_
Definition: FileBlock.h:50
std::string fileName_
Definition: FileBlock.h:49

Member Function Documentation

FileFormatVersion const& art::FileBlock::fileFormatVersion ( ) const
inline

Definition at line 33 of file FileBlock.h.

References fileFormatVersion_.

34  {
35  return fileFormatVersion_;
36  }
FileFormatVersion fileFormatVersion_
Definition: FileBlock.h:48
std::string const& art::FileBlock::fileName ( ) const
inline

Definition at line 38 of file FileBlock.h.

References fileName_.

Referenced by FileBlock(), art::RootOutput::respondToOpenInputFile(), and art::RootFileBlock::RootFileBlock().

39  {
40  return fileName_;
41  }
std::string fileName_
Definition: FileBlock.h:49
art::ResultsPrincipal const * art::FileBlock::resultsPrincipal ( ) const
inlineprivate

Definition at line 55 of file FileBlock.h.

References resp_.

Referenced by art::OutputModule::doRespondToOpenInputFile().

56 {
57  return resp_.get();
58 }
std::unique_ptr< ResultsPrincipal > resp_
Definition: FileBlock.h:50

Friends And Related Function Documentation

friend class OutputModule
friend

Definition at line 45 of file FileBlock.h.

Member Data Documentation

FileFormatVersion art::FileBlock::fileFormatVersion_ {}
private

Definition at line 48 of file FileBlock.h.

Referenced by fileFormatVersion().

std::string art::FileBlock::fileName_ {}
private

Definition at line 49 of file FileBlock.h.

Referenced by FileBlock(), and fileName().

std::unique_ptr<ResultsPrincipal> art::FileBlock::resp_ {}
private

Definition at line 50 of file FileBlock.h.

Referenced by FileBlock(), and resultsPrincipal().


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