API Documentation
Loading...
Searching...
No Matches
ModuleManager Class Reference

Logic for the program-wide storage and execution of Modules. Called in software setup to allow modules to perform actions to modify or enhance the software. More...

#include <ModuleManager.h>

Inheritance diagram for ModuleManager:
[legend]
Collaboration diagram for ModuleManager:
[legend]

Static Public Member Functions

static void AddModule (const File &module_file)
 
static void AddModule (const Module &module)
 
static void CallModuleFunction (const String &function)
 
static void CallModuleFunction (const String &function, QTModelManager *model_manager, QTWindowManager *window_manager)
 
static void DefineModuleResources (const String &module_name, ModuleResourceManager *resources)
 
static void FindModules (const Buffer< String > &module_list, const File &module_folder)
 
static void FindModules (const File &module_folder)
 
static void FindModules (const File &module_list, const File &module_folder)
 
static bool HasActiveModule (const String &module_name)
 
static bool IsModuleActive (const String &module_name)
 
static void * LoadDynamicLibrary (const String &library)
 
static void * LoadFromDynamicLibrary (const String &library, const String &function)
 
static void * LoadFromDynamicLibrary (void *library, const String &function)
 
static File MainModuleFolder ()
 
static void OnExit ()
 
static void ReadModuleSettings ()
 
static void SaveModuleSettings ()
 
static void SetErrorCallback (const std::function< void(const Exception &e)> &callback)
 
static void SetMainProgramModuleName (const String &name)
 
static void SetupModuleRegistration ()
 

Static Public Attributes

static Dictionary< String, Dictionary< String, void * > > functions
 
static String main_program_module_name
 
static Dictionary< String, bool > module_active_list
 
static Dictionary< String, Modulemodules
 
static Buffer< Stringordered_modules
 

Detailed Description

Logic for the program-wide storage and execution of Modules. Called in software setup to allow modules to perform actions to modify or enhance the software.


Member Function Documentation

◆ AddModule() [1/2]

static void AddModule ( const File & module_file)
static

◆ AddModule() [2/2]

static void AddModule ( const Module & module)
static

◆ CallModuleFunction() [1/2]

static void CallModuleFunction ( const String & function)
static

◆ CallModuleFunction() [2/2]

static void CallModuleFunction ( const String & function,
QTModelManager * model_manager,
QTWindowManager * window_manager )
static

◆ DefineModuleResources()

static void DefineModuleResources ( const String & module_name,
ModuleResourceManager * resources )
static

◆ FindModules() [1/3]

static void FindModules ( const Buffer< String > & module_list,
const File & module_folder )
static

◆ FindModules() [2/3]

static void FindModules ( const File & module_folder)
static

◆ FindModules() [3/3]

static void FindModules ( const File & module_list,
const File & module_folder )
static

◆ HasActiveModule()

static bool HasActiveModule ( const String & module_name)
static

◆ IsModuleActive()

static bool IsModuleActive ( const String & module_name)
static

◆ LoadDynamicLibrary()

static void * LoadDynamicLibrary ( const String & library)
static

◆ LoadFromDynamicLibrary() [1/2]

static void * LoadFromDynamicLibrary ( const String & library,
const String & function )
static

◆ LoadFromDynamicLibrary() [2/2]

static void * LoadFromDynamicLibrary ( void * library,
const String & function )
static

◆ MainModuleFolder()

static File MainModuleFolder ( )
static

◆ OnExit()

static void OnExit ( )
static

◆ ReadModuleSettings()

static void ReadModuleSettings ( )
static

◆ SaveModuleSettings()

static void SaveModuleSettings ( )
static

◆ SetErrorCallback()

static void SetErrorCallback ( const std::function< void(const Exception &e)> & callback)
static

◆ SetMainProgramModuleName()

static void SetMainProgramModuleName ( const String & name)
static

◆ SetupModuleRegistration()

static void SetupModuleRegistration ( )
static

Member Data Documentation

◆ functions

Dictionary<String, Dictionary<String, void*> > functions
static

◆ main_program_module_name

String main_program_module_name
static

◆ module_active_list

Dictionary<String, bool> module_active_list
static

◆ modules

Dictionary<String, Module> modules
static

◆ ordered_modules

Buffer<String> ordered_modules
static

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