LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
FileBlock.cc
Go to the documentation of this file.
2 // vim: set sw=2 expandtab :
3 
4 #include <memory>
5 #include <string>
6 
7 using namespace std;
8 
9 namespace art {
10 
11  FileBlock::FileBlock() = default;
12  FileBlock::~FileBlock() noexcept = default;
13 
15  std::string const& fileName)
16  : fileFormatVersion_{version}, fileName_{fileName}
17  {}
18 
19  FileBlock::FileBlock(FileFormatVersion const& version,
20  std::string const& fileName,
21  std::unique_ptr<ResultsPrincipal>&& resp)
22  : fileFormatVersion_{version}, fileName_{fileName}, resp_{std::move(resp)}
23  {}
24 
25  FileFormatVersion const&
27  {
28  return fileFormatVersion_;
29  }
30 
31  string const&
33  {
34  return fileName_;
35  }
36 
37  ResultsPrincipal const*
39  {
40  return resp_.get();
41  }
42 
43 } // namespace art
FileFormatVersion const & fileFormatVersion() const
Definition: FileBlock.cc:26
FileFormatVersion fileFormatVersion_
Definition: FileBlock.h:34
STL namespace.
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
ResultsPrincipal const * resultsPrincipal() const
Definition: FileBlock.cc:38
Definition: MVAAlg.h:12