RTXI 3.0.0 The Real-Time eXperiment Interface Reference Manual |
#include <workspace.hpp>
Public Member Functions | |
Manager (const Manager &)=delete | |
Manager (Manager &&)=delete | |
Manager & | operator= (const Manager &)=delete |
Manager & | operator= (Manager &&)=delete |
Manager (Event::Manager *ev_manager) | |
~Manager () override | |
Widgets::Plugin * | loadPlugin (const std::string &library) |
void | unloadPlugin (Widgets::Plugin *plugin) |
void | receiveEvent (Event::Object *event) override |
bool | isRegistered (const Widgets::Plugin *plugin) |
std::vector< DAQ::Device * > | getDevices (const std::string &driver) |
std::vector< DAQ::Device * > | getAllDevices () |
void | saveSettings (const QString &profile_name) |
void | loadSettings (const QString &profile_name) |
Public Member Functions inherited from Event::Handler | |
Handler ()=default | |
Handler (const Handler &)=default | |
Handler (Handler &&)=delete | |
Handler & | operator= (const Handler &)=default |
Handler & | operator= (Handler &&)=delete |
virtual | ~Handler ()=default |
This class is responsible for managing Plugin device loading and unloading
Definition at line 43 of file workspace.hpp.
| delete |
| delete |
| explicit |
| override |
Definition at line 67 of file workspace.cpp.
std::vector< DAQ::Device * > Workspace::Manager::getAllDevices | ( | ) |
Get all devices in registry
Definition at line 125 of file workspace.cpp.
std::vector< DAQ::Device * > Workspace::Manager::getDevices | ( | const std::string & | driver | ) |
Get the list of all loaded devices in RTXI
The workspace manager, upon instantiation, will search predefined places for loadable DAQ device drivers. Once those drivers are successfully loaded, the manager will store them in a registry. This returns the list of all DAQ devices in the registry.
driver | The name of the driver associated with the devices |
Definition at line 112 of file workspace.cpp.
bool Workspace::Manager::isRegistered | ( | const Widgets::Plugin * | plugin | ) |
Checks whether plugin is registered.
plugin | Plugin pointer to check registration. |
Definition at line 92 of file workspace.cpp.
Widgets::Plugin * Workspace::Manager::loadPlugin | ( | const std::string & | library | ) |
loads plugin
library | The name of the core library to load. For dynamically loaded widgets it is the location of the library in the filesystem. |
Definition at line 201 of file workspace.cpp.
void Workspace::Manager::loadSettings | ( | const QString & | profile_name | ) |
Restore workspace values and state settings
profile_name | The name of the stored settings |
Definition at line 180 of file workspace.cpp.
| overridevirtual |
Handles plugin loading/unloadin gevents from gui thread
event | The event to handle. The workspace manager only handles the following event types: Event::Type::PLUGIN_INSERT_EVENT Event::Type::PLUGIN_REMOVE_EVENT Event::Type::DAQ_DEVICE_QUERY_EVENT |
Implements Event::Handler.
Definition at line 383 of file workspace.cpp.
void Workspace::Manager::saveSettings | ( | const QString & | profile_name | ) |
Save current workspace values and state settings
profile_name | The name to save the settings |
Definition at line 144 of file workspace.cpp.
void Workspace::Manager::unloadPlugin | ( | Widgets::Plugin * | plugin | ) |
unloads plugin
plugin | Plugin pointer to remove from workspace manager registry |
Definition at line 268 of file workspace.cpp.