mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Simplify structure in DeviceRunner and plugin classes
This commit is contained in:
committed by
Dennis Klein
parent
ee8afd7d2b
commit
ef3eb5f83e
@@ -13,9 +13,9 @@
|
||||
using namespace fair::mq;
|
||||
|
||||
DeviceRunner::DeviceRunner(int argc, char* const argv[])
|
||||
: fDevice(nullptr)
|
||||
, fRawCmdLineArgs(tools::ToStrVector(argc, argv, false))
|
||||
: fRawCmdLineArgs(tools::ToStrVector(argc, argv, false))
|
||||
, fConfig()
|
||||
, fDevice(nullptr)
|
||||
, fPluginManager(fRawCmdLineArgs)
|
||||
, fEvents()
|
||||
{}
|
||||
@@ -83,7 +83,7 @@ auto DeviceRunner::Run() -> int
|
||||
fDevice->SetConfig(fConfig);
|
||||
|
||||
// Initialize plugin services
|
||||
fPluginManager.EmplacePluginServices(&fConfig, *fDevice);
|
||||
fPluginManager.EmplacePluginServices(fConfig, *fDevice);
|
||||
|
||||
// Instantiate and run plugins
|
||||
fPluginManager.InstantiatePlugins();
|
||||
|
Reference in New Issue
Block a user