AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
AFileOutputStream Class Reference

Opens a file for a binary write. More...

Detailed Description

Opens a file for a binary write.

Classes

class  WriteException
 

Public Member Functions

 AFileOutputStream (AString path, bool append=false)
 
void write (const char *src, size_t size) override
 Writes exact size bytes to stream. Blocking (waiting for write all data) is allowed. More...
 
void close ()
 
void open (bool append=false)
 
 AFileOutputStream (AFileOutputStream &&rhs) noexcept
 
AFileOutputStreamoperator= (AFileOutputStream &&rhs) noexcept
 
FILE * nativeHandle () const
 
const AStringpath () const
 
- Public Member Functions inherited from IOutputStream
template<typename T >
void write (const T &t)
 
template<typename T >
IOutputStreamoperator<< (const T &t)
 

Member Function Documentation

◆ write()

void AFileOutputStream::write ( const char *  src,
size_t  size 
)
overridevirtual

Writes exact size bytes to stream. Blocking (waiting for write all data) is allowed.

Sneaky exceptions
An implementation can throw any exception that subclasses AIOException.
Parameters
dstsource buffer
sizesource buffer's size. > 0

Implements IOutputStream.

#include <AUI/IO/AFileOutputStream.h>


The documentation for this class was generated from the following files:
Inheritance diagram for AFileOutputStream:
Collaboration diagram for AFileOutputStream: