openDAQ
Open data acquisition platform
Module manager
+ Collaboration diagram for Module manager:

Detailed Description

Modules

 Factories
 

Classes

struct  IModuleManager
 Loads all available modules in a implementation-defined manner. User can also side-load custom modules via addModule call. More...
 
class  ModuleManagerPtr
 Loads all available modules in a implementation-defined manner. User can also side-load custom modules via addModule call. More...
 

Functions

daq::ListPtr< daq::IModule > getModules () const
 Retrieves all modules known to the manager. Whether they were found or side-loaded. More...
 
void addModule (const daq::ModulePtr &module) const
 Side-load a custom module in run-time from memory that was not found by default. More...
 
void loadModules (const daq::ContextPtr &context) const
 Loads all modules from the directory path specified during manager construction. The Context is passed to all loaded modules for internal use. More...
 

Function Documentation

◆ addModule()

void addModule ( const daq::ModulePtr &  module) const
inline

Side-load a custom module in run-time from memory that was not found by default.

Parameters
moduleThe module to add.
Exceptions
DuplicateItemExceptionWhen an identical module was already added.

◆ getModules()

daq::ListPtr<daq::IModule> getModules ( ) const
inline

Retrieves all modules known to the manager. Whether they were found or side-loaded.

Returns
A list of known modules.

◆ loadModules()

void loadModules ( const daq::ContextPtr &  context) const
inline

Loads all modules from the directory path specified during manager construction. The Context is passed to all loaded modules for internal use.

Parameters
contextThe Context containing the Logger, Scheduler, Property Object Class Manager and Module Manager