rili::stream::Writable Class Referenceabstract
Inheritance diagram for rili::stream::Writable:
[legend]

Public Member Functions

virtual void write (char const *data, std::size_t size)=0
 
virtual std::exception_ptr flush ()=0
 
virtual view::Base const & writableView () const =0
 
void write (unsigned char const *data, std::size_t size)
 
Writableoperator<< (char v)
 
Writableoperator<< (unsigned char v)
 
Writableoperator<< (char const *v)
 
Writableoperator<< (unsigned char const *v)
 
Writableoperator<< (std::string const &v)
 
Writableoperator<< (short v)
 
Writableoperator<< (unsigned short v)
 
Writableoperator<< (long v)
 
Writableoperator<< (unsigned long v)
 
Writableoperator<< (long long v)
 
Writableoperator<< (unsigned long long v)
 
Writableoperator<< (int v)
 
Writableoperator<< (unsigned int v)
 
Writableoperator<< (float v)
 
Writableoperator<< (double v)
 
Writableoperator<< (bool v)
 
Writableoperator<< (void *v)
 
OperationResult operator<< (std::function< OperationResult(Writable &)> const &fn)
 
Writableoperator<< (Writer const &fn)
 

Member Function Documentation

virtual std::exception_ptr rili::stream::Writable::flush ( )
pure virtual

flush used to force move data to underlying sink

Returns
error exception if occured

Implemented in rili::stream::BufferingFifoDuplex, rili::stream::WritableFileProxy, and rili::stream::BufferingWritable.

Writable& rili::stream::Writable::operator<< ( char  v)
inline

operator << used to write single char to stream

Parameters
vvariable to be converted
Returns
stream
Writable& rili::stream::Writable::operator<< ( unsigned char  v)
inline

operator << used to write single unsigned char to stream

Parameters
vvariable to be converted
Returns
stream
Writable& rili::stream::Writable::operator<< ( char const *  v)
inline

operator << used to write C-string to stream

Parameters
varray to be converted
Returns
stream
Writable& rili::stream::Writable::operator<< ( unsigned char const *  v)
inline

operator << used to write C-string to stream

Parameters
varray to be converted
Returns
stream
Writable& rili::stream::Writable::operator<< ( std::string const &  v)
inline

operator << used to write std::string to stream

Parameters
varray to be converted
Returns
stream
Writable& rili::stream::Writable::operator<< ( short  v)
inline

operator << used to write(convert) single short variable to stream

Parameters
vvariable to be converted
Returns
stream
Writable& rili::stream::Writable::operator<< ( unsigned short  v)
inline

operator << used to write(convert) single unsigned short variable to stream

Parameters
vvariable to be converted
Returns
stream
Writable& rili::stream::Writable::operator<< ( long  v)
inline

operator << used to write(convert) single long variable to stream

Parameters
vvariable to be converted
Returns
stream
Writable& rili::stream::Writable::operator<< ( unsigned long  v)
inline

operator << used to write(convert) single unsigned long variable to stream

Parameters
vvariable to be converted
Returns
stream
Writable& rili::stream::Writable::operator<< ( long long  v)
inline

operator << used to write(convert) single long long variable to stream

Parameters
vvariable to be converted
Returns
stream
Writable& rili::stream::Writable::operator<< ( unsigned long long  v)
inline

operator << used to write(convert) single unsigned long long variable to stream

Parameters
vvariable to be converted
Returns
stream
Writable& rili::stream::Writable::operator<< ( int  v)
inline

operator << used to write(convert) single int variable to stream

Parameters
vvariable to be converted
Returns
stream
Writable& rili::stream::Writable::operator<< ( unsigned int  v)
inline

operator << used to write(convert) single unsigned int variable to stream

Parameters
vvariable to be converted
Returns
stream
Writable& rili::stream::Writable::operator<< ( float  v)
inline

operator << used to write(convert) single float variable to stream

Parameters
vvariable to be converted
Returns
stream
Writable& rili::stream::Writable::operator<< ( double  v)
inline

operator << used to write(convert) single double variable to stream

Parameters
vvariable to be converted
Returns
stream
Writable& rili::stream::Writable::operator<< ( bool  v)
inline

operator << used to write(convert) single bool variable to stream

Parameters
vvariable to be converted
Returns
stream
Writable& rili::stream::Writable::operator<< ( void *  v)
inline

operator << used to write(convert) single pointer variable to stream

Parameters
vvariable to be converted
Returns
stream
OperationResult rili::stream::Writable::operator<< ( std::function< OperationResult(Writable &)> const &  fn)
inline

operator << used to apply given function on stream

Parameters
fnfunction to apply
Returns
operation result returned from function
Writable& rili::stream::Writable::operator<< ( Writer const &  fn)
inline

operator << used to apply given function on stream

Parameters
fnfunction to apply
Returns
stream
virtual view::Base const& rili::stream::Writable::writableView ( ) const
pure virtual

view used to access currently avaliable data in stream

Returns
view

Implemented in rili::stream::BufferingFifoDuplex, rili::stream::WritableFileProxy, and rili::stream::BufferingWritable.

virtual void rili::stream::Writable::write ( char const *  data,
std::size_t  size 
)
pure virtual

write used to write sequence of chars to stream of given size

Parameters
datadata which should be written
sizenumber of chars to write

Implemented in rili::stream::BufferingFifoDuplex, rili::stream::WritableFileProxy, and rili::stream::BufferingWritable.

void rili::stream::Writable::write ( unsigned char const *  data,
std::size_t  size 
)
inline

write used to write sequence of unsigned chars to stream of given size

Parameters
datadata which should be written
sizenumber of unsigned chars to write

The documentation for this class was generated from the following file:
  • rili/stream/Stream.hpp