14#include "IOutputStream.h"
35 void write(
const char* src,
size_t size)
override;
37 void open(
bool append =
false);
41 operator=(std::move(rhs));
45 mPath = std::move(rhs.mPath);
50 FILE* nativeHandle()
const {
67 const AString& getPath()
const {
71 AString getMessage()
const noexcept override {
72 return "failed to write to file: " + mPath;
Definition: AFileOutputStream.h:60
Opens a file for a binary write.
Definition: AFileOutputStream.h:24
Exception caused by input/output stream.
Definition: AIOException.h:22
Represents a Unicode character string.
Definition: AString.h:37
Definition: IOutputStream.h:20
virtual void write(const char *src, size_t size)=0
Writes exact size bytes to stream. Blocking (waiting for write all data) is allowed.