AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
AFileOutputStream Class Reference

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

#include <AUI/IO/AFileOutputStream.h>

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.
 
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)
 

Detailed Description

Opens a file for a binary write.

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
srcsource buffer
sizesource buffer's size. > 0

Implements IOutputStream.


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