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