1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
//
// writer.h
// Mothur
//
// Created by Sarah Westcott on 12/7/17.
// Copyright © 2017 Schloss Lab. All rights reserved.
//
#ifndef writer_h
#define writer_h
#include "sharedwriter.hpp"
/***********************************************************************/
class OutputWriter {
public:
OutputWriter (std::shared_ptr<SynchronizedOutputFile> s) : sf(s) {}
void write (const string& dataToWrite) { sf->write(dataToWrite); }
private:
std::shared_ptr<SynchronizedOutputFile> sf;
};
/***********************************************************************/
#endif
|