adding iris benchmark
[c11concurrency-benchmarks.git] / iris / include / file_writer.h
1 #ifndef IRIS_FILE_WRITER_H_
2 #define IRIS_FILE_WRITER_H_
3
4
5 #include <cstdio>
6 #include <string>
7
8 #include "stream_writer.h"
9
10 namespace iris {
11
12 // A log writer that appends logs to a file.
13 class file_writer: public stream_writer {
14 public:
15     file_writer(const char * filename);
16     ~file_writer();
17     virtual void write(const char * buffer, size_t len);
18 private:
19     std::string m_filename;
20 };
21
22 }
23
24 #endif