cpp-mate  0.7
Helpful library for C++.
CppMate::BinarySink::Closeable Class Referenceabstract

Represents closable extension of the BinarySink interface. More...

#include <BinarySink.hpp>

Inheritance diagram for CppMate::BinarySink::Closeable:
Collaboration diagram for CppMate::BinarySink::Closeable:

Public Member Functions

virtual bool isClosed () const =0
 Indicates that sink is closed. More...
 
virtual void close ()=0
 Closes sink. More...
 
- Public Member Functions inherited from CppMate::BinarySink
virtual ~BinarySink ()=default
 
virtual void write (const void *data, uint64_t size)=0
 Writes data into the sink. More...
 

Detailed Description

Represents closable extension of the BinarySink interface.

Member Function Documentation

◆ close()

virtual void CppMate::BinarySink::Closeable::close ( )
pure virtual

Closes sink.

Exceptions
std::ostream::failure
Note
The sink will be closed automatically when the object is destroyed.

◆ isClosed()

virtual bool CppMate::BinarySink::Closeable::isClosed ( ) const
pure virtual

Indicates that sink is closed.

Returns
true if sink is closed; false otherwise.

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