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
8
namespace
hgps::input
{
10
class
ValidatedDataSource
:
public
DataSource
{
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
hgps::input::DataSource
Represents a data source, either a file/directory path or a URL.
Definition
data_source.h:10
hgps::input::ValidatedDataSource
A data source which is validated with a checksum.
Definition
validated_data_source.h:10
hgps::input::ValidatedDataSource::compute_file_hash
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
hgps::input::ValidatedDataSource::~ValidatedDataSource
~ValidatedDataSource() override=default
data_source.h
hgps::input
Data structures containing model parameters and configuration options.
Definition
configuration.cpp:75
HealthGPS.Input
validated_data_source.h
Generated by
1.9.8