#include <scanner_builder.h>
◆ Build()
std::unique_ptr< IScanner > scanner::ScannerBuilder::Build |
( |
| ) |
|
|
overridevirtual |
◆ WithCsvDatabase()
IScannerBuilder & scanner::ScannerBuilder::WithCsvDatabase |
( |
const std::filesystem::path & |
path | ) |
|
|
overridevirtual |
Configures the hash database from a CSV file.
- Parameters
-
path | The path to the CSV file. |
- Returns
- A reference to this builder for chaining.
Implements scanner::IScannerBuilder.
◆ WithFileLogger()
IScannerBuilder & scanner::ScannerBuilder::WithFileLogger |
( |
const std::filesystem::path & |
path | ) |
|
|
overridevirtual |
Configures the logger to write to a file.
- Parameters
-
path | The path to the log file. |
- Returns
- A reference to this builder for chaining.
Implements scanner::IScannerBuilder.
◆ WithMd5Hasher()
Configures the scanner to use an MD5 file hasher.
- Returns
- A reference to this builder for chaining.
Implements scanner::IScannerBuilder.
◆ WithThreads()
IScannerBuilder & scanner::ScannerBuilder::WithThreads |
( |
std::size_t |
num_threads | ) |
|
|
overridevirtual |
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.
Implements scanner::IScannerBuilder.
◆ db_
◆ hasher_
std::unique_ptr<IFileHasher> scanner::ScannerBuilder::hasher_ |
|
private |
◆ logger_
std::unique_ptr<ILogger> scanner::ScannerBuilder::logger_ |
|
private |
◆ num_threads_
std::size_t scanner::ScannerBuilder::num_threads_ = 0 |
|
private |
The documentation for this class was generated from the following files: