Item class
#include <FAST/DataHub.hpp>
Object representing and item on the DataHub.
Contents
Public static functions
- static auto fromJSONFile(const std::string& pathToJSONFile) -> Item
Constructors, destructors, conversion operators
- Item(QJsonObject json) explicit
Public functions
- auto toJSON() const -> QJsonObject
- 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:: fromJSONFile(const std::string& pathToJSONFile)
| Parameters | |
|---|---|
| pathToJSONFile | |
Create Item from JSON file
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 |
|---|