Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
Loading...
Searching...
No Matches
validated_data_source.h
Go to the documentation of this file.
1#pragma once
2
3#include "data_source.h"
4
5#include <filesystem>
6#include <string>
7
8namespace hgps::input {
11 public:
16 explicit ValidatedDataSource(std::string source, const std::filesystem::path &root_path,
17 std::string file_hash);
18
19 ~ValidatedDataSource() override = default;
20
24 std::string compute_file_hash(const std::filesystem::path &zip_file_path) const override;
25
26 private:
27 std::string file_hash_;
28};
29} // namespace hgps::input
Represents a data source, either a file/directory path or a URL.
Definition data_source.h:10
A data source which is validated with a checksum.
Definition validated_data_source.h:10
std::string compute_file_hash(const std::filesystem::path &zip_file_path) const override
Compute the checksum for the file.
Definition validated_data_source.cpp:20
~ValidatedDataSource() override=default
Data structures containing model parameters and configuration options.
Definition configuration.cpp:75