gz/fuel_tools/ModelIdentifier.hh
std::string Name() const
Returns just the last part of the model name.
ModelIdentifier & operator=(const ModelIdentifier &_orig)
Assignment operator.
bool SetDownloadCount(const uint32_t _downloads)
Set the number of downloads of the model.
STL class.
bool SetName(const std::string &_name)
set the name of the model.
std::time_t UploadDate() const
Returns the upload date of the model.
std::string LicenseName() const
Returns the license name.
STL class.
bool SetModifyDate(const std::time_t &_date)
Set the modify date.
Defines how to identify a model.
Definition: gz/fuel_tools/ModelIdentifier.hh:45
bool SetUploadDate(const std::time_t &_date)
Set the upload date.
std::time_t ModifyDate() const
Returns the modify date of the model.
std::string AsPrettyString(const std::string &_prefix="") const
Returns all the available model information as a string using colors for better human parsing.
std::string UniqueName() const
Returns a unique name for the model.
bool SetLicenseUrl(const std::string &_url)
Set the license URL of the model.
bool operator==(const ModelIdentifier &_rhs) const
Equality operator.
bool SetTags(const std::vector< std::string > &_tags)
Set the list of tags of the model.
std::string VersionStr() const
Returns the model's version as a string. Versions are integers counting from 1. The strings "tip" or ...
uint32_t DownloadCount() const
Returns the number of downloads for the model.
bool SetLicenseImageUrl(const std::string &_url)
Set the license image URL of the model.
std::vector< std::string > Tags() const
Returns the collection of tags.
std::string Description() const
Returns the description of the model.
std::string AsString(const std::string &_prefix="") const
Returns all the model information as a string. Convenient for debugging.
uint32_t LikeCount() const
Returns the number of "likes" for the model.
bool SetServer(const ServerConfig &_server)
Set the server from which this model comes.
Describes options needed for a server.
Definition: gz/fuel_tools/ClientConfig.hh:47
bool Private() const
Returns the privacy setting of the model.
unsigned int Version() const
Returns the model's version as a number. Versions are integers counting from 1. Version zero means th...
unsigned int FileSize() const
Returns the file size of the model in bytes.
bool SetLikeCount(const uint32_t _likes)
Set the number of "likes" of the model.
std::string LicenseImageUrl() const
Returns the license image URL.
ServerConfig & Server() const
Returns server information to retrieve model from.
bool SetLicenseName(const std::string &_name)
Set the license name of the model.
void SetPrivate(bool _private) const
Set the privacy setting of the model.
bool SetVersionStr(const std::string &_version)
Set the model's version. Versions are integers counting from 1 or "tip" for the latest version.
std::string LicenseUrl() const
Returns the license URL.
bool SetOwner(const std::string &_name)
Set the owner of the model.
bool SetDescription(const std::string &_desc)
Set the description of the model.
bool SetVersion(const unsigned int _version)
Set the model's version. Versions are integers counting from 1.
bool SetFileSize(const unsigned int _filesize)
Set the file size of the model in bytes.
bool operator!=(const ModelIdentifier &_rhs) const
Inequality operator.
std::string Owner() const
Returns owner to attribute model to.