Describes a closeable input and/or output channel. More...
#include <closeable.hpp>
Public Member Functions | |
virtual void | close ()=0 |
virtual bool | closed () const =0 |
Describes a closeable input and/or output channel.
virtual void hamcast::util::closeable::close | ( | ) | [pure virtual] |
Close the data channel.
Implemented in hamcast::util::buffered_sink< block_size, maximum_size >, hamcast::util::buffered_source< block_size, maximum_size >, hamcast::util::read_buffer, and hamcast::util::write_buffer< block_size, maximum_size >.
virtual bool hamcast::util::closeable::closed | ( | ) | const [pure virtual] |
Check if the data channel is closed.
true
if this
is closed for read/write operations; otherwise false
. Implemented in hamcast::util::buffered_sink< block_size, maximum_size >, hamcast::util::buffered_source< block_size, maximum_size >, hamcast::util::read_buffer, and hamcast::util::write_buffer< block_size, maximum_size >.