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

Public Member Functions

virtual void write (const char *src, size_t size)=0
 Writes exact size bytes to stream. Blocking (waiting for write all data) is allowed.
 
template<typename T>
void write (const T &t)
 
template<typename T>
IOutputStreamoperator<< (const T &t)
 

Member Function Documentation

◆ operator<<()

template<typename T>
IOutputStream & IOutputStream::operator<< ( const T & t)
inline

Writes data using AUI serialization (see AUI/Traits/serializable.h)

Parameters
tvalue to write

◆ write() [1/2]

virtual void IOutputStream::write ( const char * src,
size_t size )
pure virtual

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

Implemented in AByteBuffer, ADynamicPipe, AFileOutputStream, APipe, AStringStream, ATcpSocket, AWebsocket, and PipeOutputStream.

◆ write() [2/2]

template<typename T>
void IOutputStream::write ( const T & t)

Writes data using AUI serialization (see AUI/Traits/serializable.h)

Parameters
tvalue to write

The documentation for this class was generated from the following file:
Inheritance diagram for IOutputStream: