2017-11-01 20:14:23 +01:00
|
|
|
/******************************************************************************/
|
|
|
|
/* STREAMS ********************************************************************/
|
|
|
|
/******************************************************************************/
|
|
|
|
|
2017-11-01 21:44:54 +01:00
|
|
|
#include <ebcl/Streams.hh>
|
|
|
|
using namespace ebcl;
|
2017-11-01 20:14:23 +01:00
|
|
|
|
|
|
|
|
|
|
|
/*= 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( )
|
|
|
|
{ }
|