neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::plugin_manager Class Reference

#include <plugin_manager.hpp>

Inheritance diagram for neolib::plugin_manager:
neolib::reference_counted< i_plugin_manager > neolib::i_plugin_manager neolib::i_discoverable neolib::i_reference_counted

Public Member Functions

 define_declared_event (PluginLoaded, plugin_loaded, i_plugin &) define_declared_event(PluginUnloaded
 
 plugin_manager (i_application &aApplication)
 
 ~plugin_manager ()
 
bool discover (const uuid &aId, void *&aObject) override
 
const plugin_file_extensions_tplugin_file_extensions () const override
 
plugin_file_extensions_tplugin_file_extensions () override
 
const plugin_folders_tplugin_folders () const override
 
plugin_folders_tplugin_folders () override
 
bool load_plugins () override
 
bool load_plugin (const i_string &aPluginPath) override
 
void enable_plugin (i_plugin &aPlugin, bool aEnable) override
 
bool plugin_enabled (const i_plugin &aPlugin) const override
 
void unload_plugins () override
 
const plugins_tplugins () const override
 
const i_ref_ptr< i_plugin > & find_plugin (const uuid &aId) const override
 
i_ref_ptr< i_plugin > & find_plugin (const uuid &aId) override
 
bool open_uri (const i_string &aUri) override
 
- Public Member Functions inherited from neolib::reference_counted< i_plugin_manager >
 reference_counted () noexcept
 
 reference_counted (const reference_counted &aOther) noexcept
 
 ~reference_counted ()
 
reference_countedoperator= (const reference_counted &)
 
void add_ref () const noexcept override
 
void release () const override
 
int32_t use_count () const noexcept override
 
const base_typerelease_and_take_ownership () const override
 
base_typerelease_and_take_ownership () override
 
void pin () const noexcept override
 
void unpin () const override
 
i_ref_control_blockcontrol_block () override
 
- Public Member Functions inherited from neolib::i_plugin_manager
 declare_event (plugin_loaded, i_plugin &) declare_event(plugin_unloaded
 
- Public Member Functions inherited from neolib::i_discoverable
template<typename Interface >
bool discover (i_ref_ptr< Interface > &aObject)
 
- Public Member Functions inherited from neolib::i_reference_counted
virtual ~i_reference_counted ()=default
 

Public Attributes

 plugin_unloaded
 

Additional Inherited Members

- Public Types inherited from neolib::i_plugin_manager
typedef i_vector< i_stringplugin_file_extensions_t
 
typedef i_vector< i_stringplugin_folders_t
 
typedef i_vector< i_ref_ptr< i_plugin > > plugins_t
 

Detailed Description

Definition at line 51 of file plugin_manager.hpp.

Constructor & Destructor Documentation

◆ plugin_manager()

neolib::plugin_manager::plugin_manager ( i_application aApplication)

◆ ~plugin_manager()

neolib::plugin_manager::~plugin_manager ( )

Member Function Documentation

◆ define_declared_event()

neolib::plugin_manager::define_declared_event ( PluginLoaded  ,
plugin_loaded  ,
i_plugin  
)

◆ discover()

bool neolib::plugin_manager::discover ( const uuid aId,
void *&  aObject 
)
overridevirtual

◆ enable_plugin()

void neolib::plugin_manager::enable_plugin ( i_plugin aPlugin,
bool  aEnable 
)
overridevirtual

◆ find_plugin() [1/2]

const i_ref_ptr< i_plugin > & neolib::plugin_manager::find_plugin ( const uuid aId) const
overridevirtual

◆ find_plugin() [2/2]

i_ref_ptr< i_plugin > & neolib::plugin_manager::find_plugin ( const uuid aId)
overridevirtual

◆ load_plugin()

bool neolib::plugin_manager::load_plugin ( const i_string aPluginPath)
overridevirtual

◆ load_plugins()

bool neolib::plugin_manager::load_plugins ( )
overridevirtual

◆ open_uri()

bool neolib::plugin_manager::open_uri ( const i_string aUri)
overridevirtual

◆ plugin_enabled()

bool neolib::plugin_manager::plugin_enabled ( const i_plugin aPlugin) const
overridevirtual

◆ plugin_file_extensions() [1/2]

const plugin_file_extensions_t & neolib::plugin_manager::plugin_file_extensions ( ) const
overridevirtual

◆ plugin_file_extensions() [2/2]

plugin_file_extensions_t & neolib::plugin_manager::plugin_file_extensions ( )
overridevirtual

◆ plugin_folders() [1/2]

const plugin_folders_t & neolib::plugin_manager::plugin_folders ( ) const
overridevirtual

◆ plugin_folders() [2/2]

plugin_folders_t & neolib::plugin_manager::plugin_folders ( )
overridevirtual

◆ plugins()

const plugins_t & neolib::plugin_manager::plugins ( ) const
overridevirtual

◆ unload_plugins()

void neolib::plugin_manager::unload_plugins ( )
overridevirtual

Member Data Documentation

◆ plugin_unloaded

neolib::plugin_manager::plugin_unloaded

Definition at line 56 of file plugin_manager.hpp.


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