Faro Engine 0.0.0.b519570 (main)
Loading...
Searching...
No Matches
FileStream.hpp
Go to the documentation of this file.
1#pragma once
3
4namespace Faro
5{
6 /// @brief Mode in which to open a file
8 {
9 FO_Overwrite, ///< Open a file for writing. Will overwrite any existing data.
10 FO_Append, ///< Open a file for writing. Will append to any existing data.
11 FO_Read ///< Open a file for reading.
12 };
13
14 class FileStream : public DataStream
15 {
16 public:
17 /**
18 * @brief Check if the file stream was successfully opened.
19 * @return true The stream is open
20 * @return false The stream is not open
21 */
22 virtual bool IsOpen() = 0;
23 };
24}
Interface that reads and writes data to and from a stream.
Definition Stream.hpp:21
Definition FileStream.hpp:15
virtual bool IsOpen()=0
Check if the file stream was successfully opened.
Definition Array.hpp:8
EFileMode
Mode in which to open a file.
Definition FileStream.hpp:8
@ FO_Read
Open a file for reading.
Definition FileStream.hpp:11
@ FO_Overwrite
Open a file for writing. Will overwrite any existing data.
Definition FileStream.hpp:9
@ FO_Append
Open a file for writing. Will append to any existing data.
Definition FileStream.hpp:10