Your opinion will help to improve our service
Leave a feedback >#include <userver/dump/operations_file.hpp>
A handle to a dump file. File operations block the thread.
Definition at line 19 of file operations_file.hpp.
Public Member Functions | |
FileWriter (std::string path, boost::filesystem::perms perms, tracing::ScopeTime &scope) | |
Creates a new dump file and opens it. | |
void | Finish () override |
Must be called once all data has been written. | |
template<typename T> | |
void | Write (const T &data) |
Writes binary data. | |
|
explicit |
Creates a new dump file and opens it.
`Error` | on a filesystem error |
|
overridevirtual |
Must be called once all data has been written.
Write
/Read
`Error` | on write operation failure |
Implements dump::Writer.
|
inherited |
Writes binary data.
Calls ADL-found Write(writer, data)
`Error` | and any user-thrown std::exception |
Definition at line 98 of file operations.hpp.