fast::DataHub::Item class

Object representing and item on the DataHub.

Public static functions

static auto fromJSON(QJsonObject) -> Item
Convert this item to JSON string.

Public functions

auto getAllAuthors() -> std::set<std::string>
Get all authors of this item and dependencies.
auto getAllCopyrights() -> std::set<std::string>
Get all copyrights of this item and dependencies.
auto getAllLicences() -> std::map<std::string, std::string>
Get all licenses and URLS of this item and dependencies.

Public variables

std::string id
std::string name
std::string description
std::string author
std::string copyright
std::string type
std::string license
std::string licenseCustom
std::string licenseURL
std::string thumbnailURL
std::string downloadURL
std::string minFASTVersion
std::string maxFASTVersion
uint64_t downloads
std::vector<DataHub::Item> needs

Function documentation

static Item fast::DataHub::Item::fromJSON(QJsonObject)

Convert this item to JSON string.

Returns JSON string

std::set<std::string> fast::DataHub::Item::getAllAuthors()

Get all authors of this item and dependencies.

Returns authors

std::set<std::string> fast::DataHub::Item::getAllCopyrights()

Get all copyrights of this item and dependencies.

Returns copyrights

std::map<std::string, std::string> fast::DataHub::Item::getAllLicences()

Get all licenses and URLS of this item and dependencies.

Returns licenses