Callbacks for reading a file from the outstation asynchronously.
More...
#include <dnp3.hpp>
Callbacks for reading a file from the outstation asynchronously.
- Note
- this class is an "interface" and only has virtual methods, some of which may have default implementations.
◆ aborted()
| virtual void dnp3::FileReader::aborted |
( |
FileError |
error | ) |
|
|
pure virtual |
Called when the transfer is aborted before completion due to an error or user request.
- Parameters
-
| error | Error describing why the transfer aborted |
◆ block_received()
| virtual bool dnp3::FileReader::block_received |
( |
uint32_t |
block_num, |
|
|
ByteIterator & |
data |
|
) |
| |
|
pure virtual |
Called when the next block is received.
May optionally abort the transfer. This allows the application abort on internal errors like being or by user request.
- Parameters
-
| block_num | The block number which increments as the transfer proceeds |
| data | iterator of bytes in the block |
- Returns
- True to continue, false to abort
◆ completed()
| virtual void dnp3::FileReader::completed |
( |
| ) |
|
|
pure virtual |
Called when the transfer completes successfully.
◆ opened()
| virtual bool dnp3::FileReader::opened |
( |
uint32_t |
size | ) |
|
|
pure virtual |
Called when the file is successfully opened.
May optionally abort the operation by returning false
- Parameters
-
| size | Size of the file returned by the outstation |
- Returns
- True to continue, false to abort
The documentation for this class was generated from the following file: