9 #include <fairmq/DeviceRunner.h> 10 #include <boost/program_options.hpp> 20 void addCustomOptions(boost::program_options::options_description&);
22 int main(
int argc,
char* argv[])
38 boost::program_options::options_description customOptions(
"Custom options");
39 addCustomOptions(customOptions);
40 r.fConfig.AddToCmdLineOptions(customOptions);
49 r.fDevice = std::shared_ptr<FairMQDevice>{getDevice(r.fConfig)};
57 catch (std::exception& e)
59 LOG(error) <<
"Unhandled exception reached the top of main: " << e.what() <<
", application will now exit";
64 LOG(error) <<
"Non-exception instance being thrown. Please make sure you use std::runtime_exception() instead. Application will now exit.";
Utility class to facilitate a convenient top-level device launch/shutdown.
Definition: DeviceRunner.h:51
Definition: DeviceRunner.h:73
Definition: DeviceRunner.h:25
Definition: FairMQProgOptions.h:41
Definition: DeviceRunner.h:78
Definition: DeviceRunner.h:76
Definition: FairMQDevice.h:44