ECF 1.5
FileDataWriter.h
1#ifndef FileDataWriter_h
2#define FileDataWriter_h
3
4#include "DataWriter.h"
5#include <iostream>
6#include <fstream>
7
9{
10public:
11 FileDataWriter(std::string &fileName);
13 void writeData(std::string &data);
14 void writeData(char data);
15 void writeData(double data);
16 void close();
17private:
18 std::ofstream file;
19};
20
21#endif // FileDataWriter_h