A handle to a dump file. File operations block the thread.
More...
#include <userver/dump/operations_file.hpp>
|
| | 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.
|
| |
A handle to a dump file. File operations block the thread.
Definition at line 19 of file operations_file.hpp.
◆ FileWriter()
| dump::FileWriter::FileWriter |
( |
std::string |
path, |
|
|
boost::filesystem::perms |
perms, |
|
|
tracing::ScopeTime & |
scope |
|
) |
| |
|
explicit |
Creates a new dump file and opens it.
- Exceptions
-
| `Error` | on a filesystem error |
◆ Finish()
| void dump::FileWriter::Finish |
( |
| ) |
|
|
overridevirtual |
Must be called once all data has been written.
- Warning
- This method must not be called from within
Write/Read
- Exceptions
-
| `Error` | on write operation failure |
Implements dump::Writer.
The documentation for this class was generated from the following file: