plugify 1.2.8
Loading...
Searching...
No Matches
Public Member Functions | List of all members
plugify::Provider Class Reference

Public Member Functions

 Provider (const ServiceLocator &services, const Config &config, const Manager &manager)
 
 Provider (const Provider &other)
 
 Provider (Provider &&other) noexcept
 
Provideroperator= (const Provider &other)
 
Provideroperator= (Provider &&other) noexcept
 
void Log (std::string_view msg, Severity severity=Severity::Info, const std::source_location &loc=std::source_location::current()) const
 
void LogVerbose (std::string_view msg, const std::source_location &loc=std::source_location::current()) const
 
void LogDebug (std::string_view msg, const std::source_location &loc=std::source_location::current()) const
 
void LogInfo (std::string_view msg, const std::source_location &loc=std::source_location::current()) const
 
void LogWarning (std::string_view msg, const std::source_location &loc=std::source_location::current()) const
 
void LogError (std::string_view msg, const std::source_location &loc=std::source_location::current()) const
 
void LogFatal (std::string_view msg, const std::source_location &loc=std::source_location::current()) const
 
bool IsPreferOwnSymbols () const noexcept
 
const std::filesystem::path & GetBaseDir () const noexcept
 
const std::filesystem::path & GetExtensionsDir () const noexcept
 
const std::filesystem::path & GetConfigsDir () const noexcept
 
const std::filesystem::path & GetDataDir () const noexcept
 
const std::filesystem::path & GetLogsDir () const noexcept
 
const std::filesystem::path & GetCacheDir () const noexcept
 
bool IsExtensionLoaded (std::string_view name, std::optional< Constraint > constraint={}) const noexcept
 
const ExtensionFindExtension (std::string_view name) const noexcept
 
const ExtensionFindExtension (UniqueId id) const noexcept
 
std::vector< const Extension * > GetExtensions () const
 
template<typename Service >
std::shared_ptr< Service > Resolve () const
 
template<typename Service >
std::shared_ptr< Service > TryResolve () const noexcept
 
bool operator== (const Provider &other) const noexcept
 
auto operator<=> (const Provider &other) const noexcept
 

Detailed Description

Definition at line 14 of file provider.hpp.

Member Function Documentation

◆ LogDebug()

void plugify::Provider::LogDebug ( std::string_view  msg,
const std::source_location &  loc = std::source_location::current() 
) const
inline

Definition at line 37 of file provider.hpp.

◆ LogError()

void plugify::Provider::LogError ( std::string_view  msg,
const std::source_location &  loc = std::source_location::current() 
) const
inline

Definition at line 58 of file provider.hpp.

◆ LogFatal()

void plugify::Provider::LogFatal ( std::string_view  msg,
const std::source_location &  loc = std::source_location::current() 
) const
inline

Definition at line 65 of file provider.hpp.

◆ LogInfo()

void plugify::Provider::LogInfo ( std::string_view  msg,
const std::source_location &  loc = std::source_location::current() 
) const
inline

Definition at line 44 of file provider.hpp.

◆ LogVerbose()

void plugify::Provider::LogVerbose ( std::string_view  msg,
const std::source_location &  loc = std::source_location::current() 
) const
inline

Definition at line 30 of file provider.hpp.

◆ LogWarning()

void plugify::Provider::LogWarning ( std::string_view  msg,
const std::source_location &  loc = std::source_location::current() 
) const
inline

Definition at line 51 of file provider.hpp.

◆ Resolve()

template<typename Service >
std::shared_ptr< Service > plugify::Provider::Resolve ( ) const
inline

Definition at line 91 of file provider.hpp.

◆ TryResolve()

template<typename Service >
std::shared_ptr< Service > plugify::Provider::TryResolve ( ) const
inlinenoexcept

Definition at line 96 of file provider.hpp.


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