plugify  1.0.0.0
Public Member Functions | Public Attributes | List of all members
plugify::RemotePackage Struct Referencefinal

Represents a remotely available software package. More...

#include <package.hpp>

Inheritance diagram for plugify::RemotePackage:
Inheritance graph
[legend]
Collaboration diagram for plugify::RemotePackage:
Collaboration graph
[legend]

Public Member Functions

PackageOpt LatestVersion () const noexcept
 Get the latest available version of the package. More...
 
PackageOpt Version (int32_t version) const
 Get a specific version of the package. More...
 
- Public Member Functions inherited from plugify::Package
bool operator== (const Package &rhs) const noexcept
 Overloaded equality operator for comparing Package instances. More...
 

Public Attributes

std::string author
 The author of the package.
 
std::string description
 The description of the package.
 
std::set< PackageVersionversions
 The set of available versions for the package.
 
- Public Attributes inherited from plugify::Package
std::string name
 The name of the package.
 
std::string type
 The type of the package (e.g., module, plugin).
 

Detailed Description

Represents a remotely available software package.

The RemotePackage structure extends the Package structure to include additional information such as author, description, and available versions. It also provides methods to retrieve the latest version or a specific version of the package.

Definition at line 67 of file package.hpp.

Member Function Documentation

◆ LatestVersion()

PackageOpt plugify::RemotePackage::LatestVersion ( ) const
inlinenoexcept

Get the latest available version of the package.

Returns
A pointer to the latest PackageVersion.

Definition at line 76 of file package.hpp.

◆ Version()

PackageOpt plugify::RemotePackage::Version ( int32_t  version) const
inline

Get a specific version of the package.

Parameters
versionThe version number to retrieve.
Returns
A pointer to the specified PackageVersion.

Definition at line 87 of file package.hpp.


The documentation for this struct was generated from the following file: