mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41:45 +00:00
FairMQ: remove runSimpleMQStateMachine (now via control plugin).
This commit is contained in:
committed by
Mohammad Al-Turany
parent
d175a732a6
commit
e3cb1dd9e5
@@ -11,25 +11,6 @@
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
template <typename R>
|
||||
class GenericFairMQDevice : public FairMQDevice
|
||||
{
|
||||
public:
|
||||
GenericFairMQDevice(R func) : r(func) {}
|
||||
|
||||
protected:
|
||||
virtual bool ConditionalRun() { return r(*static_cast<FairMQDevice*>(this)); }
|
||||
|
||||
private:
|
||||
R r;
|
||||
};
|
||||
|
||||
template <typename R>
|
||||
FairMQDevice* makeDeviceWithConditionalRun(R r)
|
||||
{
|
||||
return new GenericFairMQDevice<R>(r);
|
||||
}
|
||||
|
||||
using FairMQDevicePtr = FairMQDevice*;
|
||||
|
||||
// to be implemented by the user to return a child class of FairMQDevice
|
||||
|
Reference in New Issue
Block a user