plugify 1.0.0.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
plugify::IPlugify Class Referenceabstract

Interface for the Plugify system. More...

#include <plugify.hpp>

Public Member Functions

virtual bool Initialize (const std::filesystem::path &rootDir={})=0
 Initialize the Plugify system.
 
virtual void Terminate ()=0
 Terminate the Plugify system.
 
virtual bool IsInitialized () const =0
 Check if the Plugify system is initialized.
 
virtual void SetLogger (std::shared_ptr< ILogger > logger)=0
 Set the logger for the Plugify system.
 
virtual void Log (std::string_view msg, Severity severity)=0
 Log a message with the specified severity level.
 
virtual bool AddRepository (std::string_view repository)=0
 Add a repository to the config.
 
virtual std::weak_ptr< IPlugifyProviderGetProvider () const =0
 Get a weak pointer to the Plugify provider.
 
virtual std::weak_ptr< IPluginManagerGetPluginManager () const =0
 Get a weak pointer to the Plugin Manager.
 
virtual std::weak_ptr< IPackageManagerGetPackageManager () const =0
 Get a weak pointer to the Package Manager.
 
virtual const ConfigGetConfig () const =0
 Get the configuration of the Plugify system.
 
virtual Version GetVersion () const =0
 Get the version information of the Plugify system.
 

Detailed Description

Interface for the Plugify system.

The IPlugify interface provides methods to initialize and terminate the Plugify system, set a logger, get various components, and retrieve configuration information.

Definition at line 25 of file plugify.hpp.

Member Function Documentation

◆ AddRepository()

virtual bool plugify::IPlugify::AddRepository ( std::string_view  repository)
pure virtual

Add a repository to the config.

This method adds a new repository to the config, allowing it to search for packages in the specified repository when performing package-related operations.

Parameters
repositoryThe URL or path of the repository to add.
Returns
True if the repository was successfully added, false otherwise.

◆ GetConfig()

virtual const Config & plugify::IPlugify::GetConfig ( ) const
pure virtual

Get the configuration of the Plugify system.

Returns
Reference to the configuration.

◆ GetPackageManager()

virtual std::weak_ptr< IPackageManager > plugify::IPlugify::GetPackageManager ( ) const
pure virtual

Get a weak pointer to the Package Manager.

Returns
Weak pointer to the Package Manager.

◆ GetPluginManager()

virtual std::weak_ptr< IPluginManager > plugify::IPlugify::GetPluginManager ( ) const
pure virtual

Get a weak pointer to the Plugin Manager.

Returns
Weak pointer to the Plugin Manager.

◆ GetProvider()

virtual std::weak_ptr< IPlugifyProvider > plugify::IPlugify::GetProvider ( ) const
pure virtual

Get a weak pointer to the Plugify provider.

Returns
Weak pointer to the Plugify provider.

◆ GetVersion()

virtual Version plugify::IPlugify::GetVersion ( ) const
pure virtual

Get the version information of the Plugify system.

Returns
Version information.

◆ Initialize()

virtual bool plugify::IPlugify::Initialize ( const std::filesystem::path &  rootDir = {})
pure virtual

Initialize the Plugify system.

Parameters
rootDirThe root directory for Plugify (optional).
Returns
True if initialization is successful, false otherwise.

◆ IsInitialized()

virtual bool plugify::IPlugify::IsInitialized ( ) const
pure virtual

Check if the Plugify system is initialized.

Returns
True if initialized, false otherwise.

◆ Log()

virtual void plugify::IPlugify::Log ( std::string_view  msg,
Severity  severity 
)
pure virtual

Log a message with the specified severity level.

Parameters
msgThe log message.
severityThe severity level of the log message.

◆ SetLogger()

virtual void plugify::IPlugify::SetLogger ( std::shared_ptr< ILogger logger)
pure virtual

Set the logger for the Plugify system.

Parameters
loggerThe logger to set. @noreturn

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