#include <FileOutputStream.h>
◆ FileOutputStream() [1/2]
FileOutputStream::FileOutputStream |
( |
| ) |
|
|
default |
◆ FileOutputStream() [2/2]
FileOutputStream::FileOutputStream |
( |
std::string_view |
path | ) |
|
|
explicit |
◆ ~FileOutputStream()
FileOutputStream::~FileOutputStream |
( |
| ) |
|
|
virtual |
◆ close()
void FileOutputStream::close |
( |
| ) |
|
|
overridevirtual |
Closes this output stream. Writing into or flushing a closed stream will result in undefined behavior.
Does nothing if the stream is already closed.
- Exceptions
-
Implements OutputStream.
◆ closeInternal()
void FileOutputStream::closeInternal |
( |
bool |
canThrow | ) |
|
|
private |
◆ displayPath()
std::string FileOutputStream::displayPath |
( |
| ) |
const |
|
overridevirtual |
- Returns
- Path to the file or resource being written, to be used for debugging and error reporting.
Implements OutputStream.
◆ flush()
void FileOutputStream::flush |
( |
| ) |
|
|
overridevirtual |
Flushes this output stream if it provides any kind of buffering.
- Exceptions
-
Implements OutputStream.
◆ handle()
FILE * FileOutputStream::handle |
( |
| ) |
|
|
inline |
◆ isOpen()
bool FileOutputStream::isOpen |
( |
| ) |
const |
|
inline |
◆ open()
void FileOutputStream::open |
( |
std::string_view |
path | ) |
|
◆ write() [1/4]
void OutputStream::write |
( |
const Blob & |
blob | ) |
|
|
inline |
Writes provided Blob
into the output stream.
- Parameters
-
- Exceptions
-
◆ write() [2/4]
void FileOutputStream::write |
( |
const void * |
data, |
|
|
size_t |
size |
|
) |
| |
|
overridevirtual |
Writes provided data into the output stream.
- Parameters
-
data | Pointer to the data to write. |
size | Data size. |
- Exceptions
-
Implements OutputStream.
◆ write() [3/4]
virtual void OutputStream::write |
( |
const void * |
data, |
|
|
size_t |
size |
|
) |
| |
|
virtual |
Writes provided data into the output stream.
- Parameters
-
data | Pointer to the data to write. |
size | Data size. |
- Exceptions
-
Implements OutputStream.
◆ write() [4/4]
void OutputStream::write |
( |
std::string_view |
s | ) |
|
|
inline |
Writes provided string into the output stream.
- Parameters
-
- Exceptions
-
◆ _file
FILE* FileOutputStream::_file = nullptr |
|
private |
◆ _path
std::string FileOutputStream::_path |
|
private |
The documentation for this class was generated from the following files: