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