fs/io/FileOutputStream: add class AppendFileOutputStream

This commit is contained in:
Max Kellermann
2015-03-23 22:42:07 +01:00
parent 06827cfcf1
commit 7f6e1fbc8d
2 changed files with 67 additions and 0 deletions

View File

@@ -135,4 +135,16 @@ public:
void Cancel();
};
class AppendFileOutputStream final : public BaseFileOutputStream {
public:
AppendFileOutputStream(Path _path, Error &error);
~AppendFileOutputStream() {
if (IsDefined())
Close();
}
bool Commit(Error &error);
};
#endif