mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41: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 "FairMQExample3Sampler.h"
|
||||
#include "runSimpleMQStateMachine.h"
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
@@ -25,17 +25,7 @@ int main(int argc, char** argv)
|
||||
config.ParseAll(argc, argv);
|
||||
|
||||
FairMQExample3Sampler sampler;
|
||||
sampler.CatchSignals();
|
||||
sampler.SetConfig(config);
|
||||
|
||||
sampler.ChangeState("INIT_DEVICE");
|
||||
HandleConfigViaDDS(sampler);
|
||||
sampler.WaitForEndOfState("INIT_DEVICE");
|
||||
|
||||
sampler.ChangeState("INIT_TASK");
|
||||
sampler.WaitForEndOfState("INIT_TASK");
|
||||
|
||||
runDDSStateHandler(sampler);
|
||||
runStateMachine(sampler, config);
|
||||
}
|
||||
catch (std::exception& e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user