ATLAS Offline Software
Loading...
Searching...
No Matches
DiskWriterXRD.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7
8#ifndef SAMPLE_HANDLER__DISK_WRITER_XRD_H
9#define SAMPLE_HANDLER__DISK_WRITER_XRD_H
10
11
13
15#include <memory>
16
17namespace SH
18{
21 class DiskWriterXRD final : public DiskWriter
22 {
23 //
24 // public interface
25 //
26
30 public:
31 void testInvariant () const;
32
33
40 public:
41 DiskWriterXRD (const std::string& val_path);
42
43
47 public:
49
50
51
52 //
53 // inherited interface
54 //
55
57 private:
58 virtual std::string getPath () const override;
59
60
62 private:
63 virtual TFile *getFile () override;
64
65
67 private:
68 virtual void doClose () override;
69
70
71
72 //
73 // private interface
74 //
75
77 private:
78 std::string m_tmp;
79
81 private:
82 std::string m_path;
83
85 private:
86 std::unique_ptr<TFile> m_file;
87 };
88}
89
90#endif
std::string m_tmp
the temporary path being used
std::string m_path
the path being used
std::unique_ptr< TFile > m_file
the actual file object
virtual void doClose() override
closes the file we are writing to
virtual std::string getPath() const override
the path where this file can be accessed or the empty string if it is not known (yet).
void testInvariant() const
test the invariant of this object
DiskWriterXRD(const std::string &val_path)
standard constructor
~DiskWriterXRD()
standard destructor
virtual TFile * getFile() override
the file we are writing to
DiskWriter()
standard constructor
This module provides a lot of global definitions, forward declarations and includes that are used by ...
Definition PrunDriver.h:15