36 virtual std::string
GetName()
const override {
return "Finished"; }
65 virtual std::string
GetName()
const override {
return "Set filename to \"unknown.<ext>\"."; }
101 virtual std::string
GetName()
const override {
return "Start"; }
130 virtual std::string
GetName()
const override {
return "Stop"; }
159 virtual std::string
GetName()
const override {
return "Trigger"; }
Implementation of DynExp module objects.
This event signals that an action (like a measurement) started by a TriggerEvent has been completed.
FinishedEvent(const FinishedEvent &Other, DynExp::ItemIDType CommunicatorID)
FinishedEvent()=default
Constructs an inter-module event.
virtual void InvokeWithParamsChild(DynExp::ModuleInstance &Instance, EventListenersType::EventFunctionType EventFunc) const override
Called by InvokeChild(). Override to call EventFunc with Instance as the first argument and with furt...
virtual std::string GetName() const override
Returns the name of this event type.
This event tells the receiver where to store e.g. acquired data.
SetFilenameEvent(const SetFilenameEvent &Other, DynExp::ItemIDType CommunicatorID)
virtual void InvokeWithParamsChild(DynExp::ModuleInstance &Instance, EventListenersType::EventFunctionType EventFunc) const override
Called by InvokeChild(). Override to call EventFunc with Instance as the first argument and with furt...
SetFilenameEvent(const std::string &Filename="unknown")
Constructs a SetFilenameEvent event.
virtual ~SetFilenameEvent()
virtual std::string GetName() const override
Returns the name of this event type.
const std::string Filename
Filename where to store data (path and name, no file extension). The receiving module is responsible ...
This event is intended to make the receiver prepare an action (like a measurement) that is started wh...
StartEvent()=default
Constructs an inter-module event.
virtual void InvokeWithParamsChild(DynExp::ModuleInstance &Instance, EventListenersType::EventFunctionType EventFunc) const override
Called by InvokeChild(). Override to call EventFunc with Instance as the first argument and with furt...
StartEvent(const StartEvent &Other, DynExp::ItemIDType CommunicatorID)
virtual std::string GetName() const override
Returns the name of this event type.
This event is intended to make the receiver stop an action (like a measurement).
virtual void InvokeWithParamsChild(DynExp::ModuleInstance &Instance, EventListenersType::EventFunctionType EventFunc) const override
Called by InvokeChild(). Override to call EventFunc with Instance as the first argument and with furt...
virtual std::string GetName() const override
Returns the name of this event type.
StopEvent()=default
Constructs an inter-module event.
StopEvent(const StopEvent &Other, DynExp::ItemIDType CommunicatorID)
This event is intended to make the receiver start an action (like a measurement) after it received a ...
virtual std::string GetName() const override
Returns the name of this event type.
virtual void InvokeWithParamsChild(DynExp::ModuleInstance &Instance, EventListenersType::EventFunctionType EventFunc) const override
Called by InvokeChild(). Override to call EventFunc with Instance as the first argument and with furt...
TriggerEvent(const TriggerEvent &Other, DynExp::ItemIDType CommunicatorID)
TriggerEvent()=default
Constructs an inter-module event.
const ItemIDType CommunicatorID
ID of the DynExpInstr::InterModuleCommunicator instance that sends the event.
Typed base class for inter-module events to realize CRTP.
InterModuleEvent()=default
Constructs an inter-module event.
Defines data for a thread belonging to a ModuleBase instance. Refer to RunnableInstance.
std::function< void(ModuleInstance *, EventFuncArgs...)> EventFunctionType
Type of event functions to be invoked when the event is triggered. The first ModuleInstance argument ...
DynExp's module namespace contains the implementation of DynExp modules which extend DynExp's core fu...
size_t ItemIDType
ID type of objects/items managed by DynExp.
Accumulates include statements to provide a precompiled header.