ATLAS Offline Software
Loading...
Searching...
No Matches
DiskWriter.cxx
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//
9// includes
10//
11
13
15
16//
17// method implementations
18//
19
20namespace SH
21{
22 void DiskWriter ::
23 testInvariant () const
24 {
25 }
26
27
28
29 DiskWriter ::
30 DiskWriter ()
31 {
32 RCU_NEW_INVARIANT (this);
33 }
34
35
36
37 DiskWriter ::
38 ~DiskWriter ()
39 {
41 }
42
43
44
45 std::string DiskWriter ::
46 path () const
47 {
48 RCU_READ_INVARIANT (this);
49 return getPath ();
50 }
51
52
53
54 TFile *DiskWriter ::
55 file ()
56 {
58
59 TFile *result = getFile ();
60 RCU_REQUIRE (result != 0);
61 return result;
62 }
63
64
65
66 void DiskWriter ::
67 close ()
68 {
70
71 doClose ();
72 }
73}
#define RCU_DESTROY_INVARIANT(x)
Definition Assert.h:235
#define RCU_CHANGE_INVARIANT(x)
Definition Assert.h:231
#define RCU_NEW_INVARIANT(x)
Definition Assert.h:233
#define RCU_REQUIRE(x)
Definition Assert.h:208
#define RCU_READ_INVARIANT(x)
Definition Assert.h:229
virtual TFile * getFile()=0
the file we are writing to
virtual void doClose()=0
closes the file we are writing to
virtual std::string getPath() const =0
the path where this file can be accessed or the empty string if it is not known (yet).
This module provides a lot of global definitions, forward declarations and includes that are used by ...
Definition PrunDriver.h:15