ReplicaNet and RNLobby
1
|
This scans a supplied path and stores the results. More...
#include <ScanChecksum.h>
Public Member Functions | |
bool | Start (std::list< ScanPath::Entry > &paths, const bool multiThread=false, const size_t chunkSize=1024 *1024) |
bool | Start (ScanPath::Entry &entry, const size_t chunkSize=1024 *1024) |
bool | Stop (void) |
bool | GetCompleted (void) |
virtual bool | CallbackUpdate (const size_t numFiles, const ScanPath::Entry ¤tEntry, const size_t currentBytesScanned) |
virtual void | CallbackComplete (void) |
A virtual callback that is triggered when the scanning is complete. | |
This scans a supplied path and stores the results.
|
virtual |
A virtual callback that is triggered when the scanning status is updated.
bool GetCompleted | ( | void | ) |
Tests the completion state of the last scan.
bool Start | ( | std::list< ScanPath::Entry > & | paths, |
const bool | multiThread = false , |
||
const size_t | chunkSize = 1024 *1024 |
||
) |
Starts scanning the paths supplied using an optional new thread and generates checksum information for each file. If a scan is already running the previous scan is stopped.
paths | The paths to scan and produce checksum information for. |
multiThread | By default the scan does not use an extra thread. Using true will start a thread to start scanning and Start() will return immediately. |
chunkSize | The number of bytes to use for a file buffer when accessing files. By default this uses a megabyte. |
bool Stop | ( | void | ) |
Stops the current scan if it is running.