mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Refactor DDS example and tools to be able to run with/without DDS
This commit is contained in:
committed by
Mohammad Al-Turany
parent
dc72912b19
commit
e7ad0d6c34
@@ -13,9 +13,9 @@
|
||||
*/
|
||||
|
||||
#include "FairMQLogger.h"
|
||||
#include "FairMQDDSTools.h"
|
||||
#include "FairMQProgOptions.h"
|
||||
#include "FairMQExample3Processor.h"
|
||||
#include "runSimpleMQStateMachine.h"
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
@@ -25,17 +25,7 @@ int main(int argc, char** argv)
|
||||
config.ParseAll(argc, argv);
|
||||
|
||||
FairMQExample3Processor processor;
|
||||
processor.CatchSignals();
|
||||
processor.SetConfig(config);
|
||||
|
||||
processor.ChangeState("INIT_DEVICE");
|
||||
HandleConfigViaDDS(processor);
|
||||
processor.WaitForEndOfState("INIT_DEVICE");
|
||||
|
||||
processor.ChangeState("INIT_TASK");
|
||||
processor.WaitForEndOfState("INIT_TASK");
|
||||
|
||||
runDDSStateHandler(processor);
|
||||
runStateMachine(processor, config);
|
||||
}
|
||||
catch (std::exception& e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user