corelib/src/Streams.cc

42 lines
1 KiB
C++
Raw Normal View History

/******************************************************************************/
/* STREAMS ********************************************************************/
/******************************************************************************/
#include <ebcl/Streams.hh>
using namespace ebcl;
/*= X_StreamError ============================================================*/
char const* X_StreamError::what( ) const noexcept
{
switch ( error_ ) {
case E_StreamError::NOT_SUPPORTED:
return "operation not supported";
case E_StreamError::INVALID_POSITION:
return "invalid position";
case E_StreamError::END:
return "stream ended";
case E_StreamError::BAD_DATA:
return "incomplete read/write";
case E_StreamError::SYSTEM_ERROR:
return "system error";
case E_StreamError::UNAVAILABLE:
return "stream no longer available";
default:
return "unknown error";
}
}
/*= A_OutputStream ===========================================================*/
void A_OutputStream::flush( )
{ }