rili::stream::WritableFileProxy Class Reference
Inheritance diagram for rili::stream::WritableFileProxy:
[legend]
Collaboration diagram for rili::stream::WritableFileProxy:
[legend]

Public Member Functions

 WritableFileProxy (FILE *writableFile)
 
void write (char const *data, std::size_t size) override
 
std::exception_ptr flush () override
 
view::Base const & writableView () const override
 
- Public Member Functions inherited from rili::stream::Writable
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)
 

Constructor & Destructor Documentation

rili::stream::WritableFileProxy::WritableFileProxy ( FILE *  writableFile)
inlineexplicit

WritableFileProxy check if file is not nullptr and construct stream, otherwise throw std::invalid_argument exception.

Parameters
writableFileready to use open writable FILE*

Member Function Documentation

std::exception_ptr rili::stream::WritableFileProxy::flush ( )
overridevirtual

flush used to force move data to underlying sink

Returns
error exception if occured

Implements rili::stream::Writable.

view::Base const& rili::stream::WritableFileProxy::writableView ( ) const
overridevirtual

view used to access currently avaliable data in stream

Returns
view

Implements rili::stream::Writable.

void rili::stream::WritableFileProxy::write ( char const *  data,
std::size_t  size 
)
overridevirtual

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

Parameters
datadata which should be written
sizenumber of chars to write

Implements rili::stream::Writable.


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