A data source which is validated with a checksum.
More...
#include <validated_data_source.h>
A data source which is validated with a checksum.
◆ ValidatedDataSource()
| hgps::input::ValidatedDataSource::ValidatedDataSource |
( |
std::string | source, |
|
|
const std::filesystem::path & | root_path, |
|
|
std::string | file_hash ) |
|
explicit |
Create a new ValidatedDataSource.
- Parameters
-
| source | File path or URL |
| root_path | Path to use as root for relative paths |
| file_hash | SHA256 hash of file contents |
◆ ~ValidatedDataSource()
| hgps::input::ValidatedDataSource::~ValidatedDataSource |
( |
| ) |
|
|
overridedefault |
◆ compute_file_hash()
| std::string hgps::input::ValidatedDataSource::compute_file_hash |
( |
const std::filesystem::path & | zip_file_path | ) |
const |
|
overridevirtual |
Compute the checksum for the file.
- Parameters
-
| zip_file_path | Path to zip file |
- Returns
- The calculated checksum
Reimplemented from hgps::input::DataSource.
The documentation for this class was generated from the following files: