DeviceRunner(int argc, char*const* argv, bool printLogo = true)No comment in the header yet.
API · fair::mq
Utility class to facilitate a convenient top-level device launch/shutdown.
Runs a single FairMQ device with config and plugin support.
For customization user hooks are executed at various steps during device launch/shutdown in the following sequence:
LoadPlugins
|
v
SetCustomCmdLineOptions | v ModifyRawCmdLineArgs | v InstatiateDevice
Each hook has access to all members of the DeviceRunner and really only differs by the point in time it is called.
For an example usage of this class see the <fairmq/runDevice.h> header.
DeviceRunner(int argc, char*const* argv, bool printLogo = true)No comment in the header yet.
auto Run() -> intNo comment in the header yet.
auto RunWithExceptionHandlers() -> intNo comment in the header yet.
void SubscribeForConfigChange()No comment in the header yet.
void UnsubscribeFromConfigChange()No comment in the header yet.
template<typename H>
auto AddHook(std::function<void(DeviceRunner&)> hook) -> voidNo comment in the header yet.
template<typename H>
auto RemoveHook() -> voidNo comment in the header yet.
static bool HandleGeneralOptions(
const fair::mq::ProgOptions& config,
bool printLogo = true
)No comment in the header yet.
std::vector<std::string> fRawCmdLineArgsNo comment in the header yet.
fair::mq::ProgOptions fConfigNo comment in the header yet.
std::unique_ptr<Device> fDeviceNo comment in the header yet.
PluginManager fPluginManagerNo comment in the header yet.
const bool fPrintLogoNo comment in the header yet.