class
#include <FAST/DataHub.hpp>
DataHub Object uses to browse and download data, models and pipelines from the FAST DataHub.
Contents
Public types
Constructors, destructors, conversion operators
Public functions
-
auto getItems(std::string tag) -> std::vector<DataHub::
Item> - Get list of items for a given tag.
-
auto getItem(std::string id) -> DataHub::
Item - Get item details from DataHub.
-
auto download(std::string itemID,
bool force = false) -> DataHub::
Download - Download an item and all dependencies from the DataHub.
- auto isDownloaded(std::string itemID) -> bool
- Whether an item (including dependencies) has been downloaded or not.
- auto getStorageDirectory() const -> std::string
- Get DataHub storage directory.
- auto getURL() const -> std::string
- Get DataHub URL.
Signals
Function documentation
std::vector<DataHub:: Item> fast:: DataHub:: getItems(std::string tag)
Get list of items for a given tag.
Parameters | |
---|---|
tag | |
Returns | list of items |
DataHub:: Item fast:: DataHub:: getItem(std::string id)
Get item details from DataHub.
Parameters | |
---|---|
id | |
Returns | item |
DataHub:: Download fast:: DataHub:: download(std::string itemID,
bool force = false)
Download an item and all dependencies from the DataHub.
Parameters | |
---|---|
itemID | |
force | Force item to be downloaded (override version check) |
bool fast:: DataHub:: isDownloaded(std::string itemID)
Whether an item (including dependencies) has been downloaded or not.
Parameters | |
---|---|
itemID |