Represents a data source, either a file/directory path or a URL.
More...
#include <data_source.h>
Represents a data source, either a file/directory path or a URL.
◆ DataSource() [1/4]
| hgps::input::DataSource::DataSource |
( |
std::string | source | ) |
|
|
explicit |
Create a new DataSource.
- Parameters
-
| source | File/directory path or URL |
◆ DataSource() [2/4]
| hgps::input::DataSource::DataSource |
( |
std::string | source, |
|
|
const std::filesystem::path & | root_path ) |
|
explicit |
Create a new DataSource, rebasing relative paths if needed.
- Parameters
-
| source | File path or URL |
| root_path | Path to use as root for relative paths |
◆ ~DataSource()
| virtual hgps::input::DataSource::~DataSource |
( |
| ) |
|
|
virtualdefault |
◆ DataSource() [3/4]
| hgps::input::DataSource::DataSource |
( |
const DataSource & | | ) |
|
|
defaultnoexcept |
◆ DataSource() [4/4]
| hgps::input::DataSource::DataSource |
( |
DataSource && | | ) |
|
|
defaultnoexcept |
◆ compute_file_hash()
| std::string hgps::input::DataSource::compute_file_hash |
( |
const std::filesystem::path & | zip_file_path | ) |
const |
|
virtual |
◆ get_data_directory()
| std::filesystem::path hgps::input::DataSource::get_data_directory |
( |
| ) |
const |
Get the path to a directory containing the data.
This function will download, extract and validate data as needed
- Returns
- Path to directory containing the data
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ source_
| std::string hgps::input::DataSource::source_ |
|
protected |
The documentation for this class was generated from the following files: