An interface for a builder that constructs a configured IScanner.
More...
#include <interfaces.h>
An interface for a builder that constructs a configured IScanner.
◆ ~IScannerBuilder()
virtual scanner::IScannerBuilder::~IScannerBuilder |
( |
| ) |
|
|
virtualdefault |
◆ Build()
virtual std::unique_ptr< IScanner > scanner::IScannerBuilder::Build |
( |
| ) |
|
|
pure virtual |
Builds the final IScanner instance.
- Returns
- A unique pointer to the configured IScanner.
- Exceptions
-
std::runtime_error | if dependencies are missing or fail to load. |
Implemented in scanner::ScannerBuilder.
◆ WithCsvDatabase()
virtual IScannerBuilder & scanner::IScannerBuilder::WithCsvDatabase |
( |
const std::filesystem::path & |
path | ) |
|
|
pure virtual |
Configures the hash database from a CSV file.
- Parameters
-
path | The path to the CSV file. |
- Returns
- A reference to this builder for chaining.
Implemented in scanner::ScannerBuilder.
◆ WithFileLogger()
virtual IScannerBuilder & scanner::IScannerBuilder::WithFileLogger |
( |
const std::filesystem::path & |
path | ) |
|
|
pure virtual |
Configures the logger to write to a file.
- Parameters
-
path | The path to the log file. |
- Returns
- A reference to this builder for chaining.
Implemented in scanner::ScannerBuilder.
◆ WithMd5Hasher()
Configures the scanner to use an MD5 file hasher.
- Returns
- A reference to this builder for chaining.
Implemented in scanner::ScannerBuilder.
◆ WithThreads()
virtual IScannerBuilder & scanner::IScannerBuilder::WithThreads |
( |
std::size_t |
num_threads | ) |
|
|
pure virtual |
Sets the number of threads for the scanner.
- Parameters
-
num_threads | The number of threads to use. |
- Returns
- A reference to this builder for chaining.
Implemented in scanner::ScannerBuilder.
The documentation for this class was generated from the following file: