7 #include <plugify/descriptor.hpp>
38 using PackageOpt =
const PackageVersion*;
Represents a locally installed software package.
int32_t version
The version number of the locally installed package.
std::filesystem::path path
The file path to the locally installed package.
std::shared_ptr< Descriptor > descriptor
A shared pointer to the package descriptor.
Represents a version of a software package.
int32_t version
The version number of the package.
std::string checksum
The checksum of the package.
bool operator<(const PackageVersion &rhs) const noexcept
Overloaded less-than operator for comparing PackageVersion instances.
std::vector< std::string > platforms
The platforms supported by the package.
std::string download
The download URL for the package.
Represents a generic software package.
std::string type
The type of the package (e.g., module, plugin).
std::string name
The name of the package.
bool operator==(const Package &rhs) const noexcept
Overloaded equality operator for comparing Package instances.
Represents a remotely available software package.
PackageOpt Version(int32_t version) const
Get a specific version of the package.
std::string author
The author of the package.
std::string description
The description of the package.
PackageOpt LatestVersion() const noexcept
Get the latest available version of the package.
std::set< PackageVersion > versions
The set of available versions for the package.