ATLAS Offline Software
DiskWriterLocal.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 
8 #ifndef SAMPLE_HANDLER__DISK_WRITER_LOCAL_H
9 #define SAMPLE_HANDLER__DISK_WRITER_LOCAL_H
10 
11 
12 #include <SampleHandler/Global.h>
13 
15 
16 namespace SH
17 {
20  class DiskWriterLocal : public DiskWriter
21  {
22  //
23  // public interface
24  //
25 
30  public:
31  void testInvariant () const;
32 
33 
41  public:
42  DiskWriterLocal (const std::string& val_path);
43 
44 
49  public:
51 
52 
53 
54  //
55  // inherited interface
56  //
57 
59  private:
60  virtual std::string getPath () const;
61 
62 
64  private:
65  virtual TFile *getFile ();
66 
67 
69  private:
70  virtual void doClose ();
71 
72 
73 
74  //
75  // private interface
76  //
77 
79  private:
80  std::string m_path;
81 
83  private:
84  TFile *m_file;
85  };
86 }
87 
88 #endif
SH::DiskWriterLocal
an implementation of DiskWriter for local files
Definition: DiskWriterLocal.h:21
SH::DiskWriterLocal::doClose
virtual void doClose()
closes the file we are writing to
Definition: DiskWriterLocal.cxx:93
SH::DiskWriterLocal::getFile
virtual TFile * getFile()
the file we are writing to
Definition: DiskWriterLocal.cxx:83
DiskWriter.h
SH::DiskWriterLocal::m_file
TFile * m_file
the actual file object
Definition: DiskWriterLocal.h:84
SH::DiskWriter
an interface that manages writing a single output file
Definition: DiskWriter.h:29
SH::DiskWriterLocal::testInvariant
void testInvariant() const
test the invariant of this object
Definition: DiskWriterLocal.cxx:28
SH::DiskWriterLocal::~DiskWriterLocal
~DiskWriterLocal()
standard destructor
Definition: DiskWriterLocal.cxx:50
SH::DiskWriterLocal::m_path
std::string m_path
the path being used
Definition: DiskWriterLocal.h:80
SH::DiskWriterLocal::getPath
virtual std::string getPath() const
the path where this file can be accessed or the empty string if it is not known (yet).
Definition: DiskWriterLocal.cxx:74
SH
This module provides a lot of global definitions, forward declarations and includes that are used by ...
Definition: PrunDriver.h:15
SH::DiskWriterLocal::DiskWriterLocal
DiskWriterLocal(const std::string &val_path)
standard constructor
Definition: DiskWriterLocal.cxx:35
Global.h