LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
art::FileBlock Class Reference

#include "FileBlock.h"

Public Member Functions

 FileBlock ()
 
virtual ~FileBlock () noexcept
 
 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
art::FileBlock::~FileBlock ( )
virtualdefaultnoexcept
art::FileBlock::FileBlock ( FileFormatVersion const &  version,
std::string const &  fileName 
)

Definition at line 14 of file FileBlock.cc.

17  {}
FileFormatVersion fileFormatVersion_
Definition: FileBlock.h:34
std::string const & fileName() const
Definition: FileBlock.cc:32
std::string fileName_
Definition: FileBlock.h:35
art::FileBlock::FileBlock ( FileFormatVersion const &  version,
std::string const &  fileName,
std::unique_ptr< ResultsPrincipal > &&  resp 
)

Definition at line 19 of file FileBlock.cc.

References fileName(), fileName_, and resp_.

22  : fileFormatVersion_{version}, fileName_{fileName}, resp_{std::move(resp)}
23  {}
FileFormatVersion fileFormatVersion_
Definition: FileBlock.h:34
std::unique_ptr< ResultsPrincipal > resp_
Definition: FileBlock.h:36
std::string const & fileName() const
Definition: FileBlock.cc:32
std::string fileName_
Definition: FileBlock.h:35

Member Function Documentation

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

Definition at line 26 of file FileBlock.cc.

References fileFormatVersion_.

27  {
28  return fileFormatVersion_;
29  }
FileFormatVersion fileFormatVersion_
Definition: FileBlock.h:34
string const & art::FileBlock::fileName ( ) const

Definition at line 32 of file FileBlock.cc.

References fileName_.

Referenced by FileBlock().

33  {
34  return fileName_;
35  }
std::string fileName_
Definition: FileBlock.h:35
ResultsPrincipal const * art::FileBlock::resultsPrincipal ( ) const
private

Definition at line 38 of file FileBlock.cc.

References resp_.

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

39  {
40  return resp_.get();
41  }
std::unique_ptr< ResultsPrincipal > resp_
Definition: FileBlock.h:36

Friends And Related Function Documentation

friend class OutputModule
friend

Definition at line 31 of file FileBlock.h.

Member Data Documentation

FileFormatVersion art::FileBlock::fileFormatVersion_ {}
private

Definition at line 34 of file FileBlock.h.

Referenced by fileFormatVersion().

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

Definition at line 35 of file FileBlock.h.

Referenced by FileBlock(), and fileName().

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

Definition at line 36 of file FileBlock.h.

Referenced by FileBlock(), and resultsPrincipal().


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