25{
26 void DiskOutputXRD ::
27 testInvariant () const
28 {
30 }
31
32
33
34 DiskOutputXRD ::
35 DiskOutputXRD ()
36 : m_prefix ("root://ThisIsANonExistantPath")
37 {
39 }
40
41
42
43 DiskOutputXRD ::
44 DiskOutputXRD (const std::string& val_prefix)
45 : m_prefix (val_prefix)
46 {
48
50 }
51
52
53
54 std::unique_ptr<DiskWriter> DiskOutputXRD ::
55 doMakeWriter (const std::string& sampleName,
56 const std::string& segmentName,
57 const std::string& suffix) const
58 {
60 return std::make_unique<DiskWriterXRD>
61 (targetURL (sampleName, segmentName, suffix));
62 }
63
64
65
66 std::string DiskOutputXRD ::
67 getTargetURL (const std::string& sampleName,
68 const std::string& segmentName,
69 const std::string& suffix) const
70 {
72 std::ostringstream
file;
74 if (m_prefix.back() != '-')
77 if (!segmentName.empty())
78 file <<
"-" << segmentName;
81 }
82}
#define RCU_NEW_INVARIANT(x)
#define RCU_READ_INVARIANT(x)