btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / bin / makeudfimage / FileStream.h
blob87f1726705327e0106442b709e1b2837a4a540a2
1 //----------------------------------------------------------------------
2 // This software is part of the OpenBeOS distribution and is covered
3 // by the MIT License.
4 //
5 // Copyright (c) 2003 Tyler Dauwalder, tyler@dauwalder.net
6 //----------------------------------------------------------------------
8 /*! \file FileStream.h
9 */
11 #ifndef _FILE_STREAM_H
12 #define _FILE_STREAM_H
14 #include <File.h>
16 #include "PositionIOStream.h"
18 /*! \brief DataStream implementation that writes directly to a file.
20 class FileStream : public PositionIOStream {
21 public:
22 FileStream(const char *path, uint32 open_mode);
23 virtual status_t InitCheck() const;
24 void Flush() { fFile.Sync(); }
26 private:
27 BFile fFile;
30 #endif // _FILE_STREAM_H