ATLAS Offline Software
Loading...
Searching...
No Matches
DiskOutput.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
16
17//
18// method implementations
19//
20
22
23namespace SH
24{
25 void DiskOutput ::
26 testInvariant () const
27 {
28 }
29
30
31
32 DiskOutput ::
33 DiskOutput ()
34 {
35 RCU_NEW_INVARIANT (this);
36 }
37
38
39
40 std::unique_ptr<DiskWriter> DiskOutput ::
41 makeWriter (const std::string& sampleName,
42 const std::string& segmentName,
43 const std::string& suffix) const
44 {
45 RCU_READ_INVARIANT (this);
46 RCU_REQUIRE (!sampleName.empty());
47 std::unique_ptr<DiskWriter> result
48 = doMakeWriter (sampleName, segmentName, suffix);
49 RCU_PROVIDE (result != nullptr);
50 return result;
51 }
52
53
54
55 std::string DiskOutput ::
56 targetURL (const std::string& sampleName,
57 const std::string& segmentName,
58 const std::string& suffix) const
59 {
60 RCU_READ_INVARIANT (this);
61 RCU_REQUIRE (!sampleName.empty());
62 std::string result = getTargetURL (sampleName, segmentName, suffix);
63 RCU_PROVIDE (!result.empty());
64 return result;
65 }
66}
#define RCU_NEW_INVARIANT(x)
Definition Assert.h:233
#define RCU_PROVIDE(x)
Definition Assert.h:215
#define RCU_REQUIRE(x)
Definition Assert.h:208
#define RCU_READ_INVARIANT(x)
Definition Assert.h:229
ClassImp(SH::DiskOutput) namespace SH
a class/interface representing an output location for files
Definition DiskOutput.h:46
This module provides a lot of global definitions, forward declarations and includes that are used by ...
Definition PrunDriver.h:15