File: writer.h

package info (click to toggle)
mothur 1.44.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 13,328 kB
  • sloc: cpp: 158,612; makefile: 119; sh: 10
file content (28 lines) | stat: -rwxr-xr-x 597 bytes parent folder | download | duplicates (3)
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