plugify 1.0.0.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
plugify::RemotePackage Struct Reference

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.
 
PackageOpt Version (plg::version version) const
 Get a specific version of the package.
 
- Public Member Functions inherited from plugify::Package
bool operator== (const Package &rhs) const noexcept
 Overloaded equality operator for comparing Package instances.
 

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 70 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 79 of file package.hpp.

◆ Version()

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

Get a specific version of the package.

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

Definition at line 90 of file package.hpp.

Member Data Documentation

◆ author

std::string plugify::RemotePackage::author

The author of the package.

Definition at line 71 of file package.hpp.

◆ description

std::string plugify::RemotePackage::description

The description of the package.

Definition at line 72 of file package.hpp.

◆ versions

std::set<PackageVersion> plugify::RemotePackage::versions

The set of available versions for the package.

Definition at line 73 of file package.hpp.


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