rili::stream::WritableFile Class Reference
Inheritance diagram for rili::stream::WritableFile:
Collaboration diagram for rili::stream::WritableFile:
Public Member Functions | |
WritableFile (std::string const &file) | |
WritableFile (std::string const &file, bool append) | |
virtual | ~WritableFile () |
Public Member Functions inherited from rili::stream::WritableFileProxy | |
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) |
Writable & | operator<< (char v) |
Writable & | operator<< (unsigned char v) |
Writable & | operator<< (char const *v) |
Writable & | operator<< (unsigned char const *v) |
Writable & | operator<< (std::string const &v) |
Writable & | operator<< (short v) |
Writable & | operator<< (unsigned short v) |
Writable & | operator<< (long v) |
Writable & | operator<< (unsigned long v) |
Writable & | operator<< (long long v) |
Writable & | operator<< (unsigned long long v) |
Writable & | operator<< (int v) |
Writable & | operator<< (unsigned int v) |
Writable & | operator<< (float v) |
Writable & | operator<< (double v) |
Writable & | operator<< (bool v) |
Writable & | operator<< (void *v) |
OperationResult | operator<< (std::function< OperationResult(Writable &)> const &fn) |
Writable & | operator<< (Writer const &fn) |
Constructor & Destructor Documentation
|
inlineexplicit |
WritableFile try to open file from given path in "wb" mode and construct stream.
- Parameters
-
file - path of file to open
- See also
- fopen
|
inline |
WritableFile try to open file from given path in "wb" mode if append=false, in "ab" mode otherwise and construct stream.
- Parameters
-
file - path of file to open append - if true will open file in append mode, otherwise in write mode
- See also
- fopen
|
virtual |
~WritableFile will close managed file if it's open
The documentation for this class was generated from the following file:
- rili/stream/CstdioWrappers.hpp