17 :
Sink(true), path_(destination_path) {
18 file_ = fopen(destination_path.c_str(),
"w");
32 const int ret =
sink_->Purge();
33 const int ret2 = unlink(
path_.c_str());
48 std::string result =
"Path sink for ";
49 result +=
"path " +
path_ +
" and ";
50 result +=
IsValid() ?
" valid file pointer" :
" invalid file pointer";
UniquePtr< FileSink > sink_
virtual std::string Describe()
PathSink(const std::string &destination_path)