Commit | Line | Data |
---|---|---|
ba4a0f63 JM |
1 | #ifndef _APPENDFILESTREAM_H_ |
2 | #define _APPENDFILESTREAM_H_ | |
3 | ||
ba4a0f63 | 4 | #include "StreamOutput.h" |
f2f0dfed JM |
5 | #include "string.h" |
6 | #include "stdlib.h" | |
ba4a0f63 JM |
7 | |
8 | class AppendFileStream : public StreamOutput { | |
9 | public: | |
f2f0dfed JM |
10 | AppendFileStream(const char *filename) { fn= strdup(filename); } |
11 | virtual ~AppendFileStream(){ free(fn); } | |
ba4a0f63 JM |
12 | int puts(const char*); |
13 | ||
14 | private: | |
f2f0dfed | 15 | char *fn; |
ba4a0f63 JM |
16 | }; |
17 | ||
18 | #endif |