userver: dump::FileReader Class Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
dump::FileReader Class Referencefinal

A handle to a dump file. File operations block the thread. More...

#include <userver/dump/operations_file.hpp>

+ Inheritance diagram for dump::FileReader:
+ Collaboration diagram for dump::FileReader:

Public Member Functions

 FileReader (std::string path)
 Opens an existing dump file.
 
void Finish () override
 Must be called once all data has been read.
 
- Public Member Functions inherited from dump::Reader
template<typename T >
Read ()
 Reads binary data.
 

Additional Inherited Members

Detailed Description

A handle to a dump file. File operations block the thread.

Definition at line 39 of file operations_file.hpp.

Constructor & Destructor Documentation

◆ FileReader()

dump::FileReader::FileReader ( std::string  path)
explicit

Opens an existing dump file.

Exceptions
`Error`on a filesystem error

Member Function Documentation

◆ Finish()

void dump::FileReader::Finish ( )
overridevirtual

Must be called once all data has been read.

Warning
This method must not be called from within Write/Read
Exceptions
`Error`on read operation failure or if there is leftover data

Implements dump::Reader.


The documentation for this class was generated from the following file: