DynExp
Highly flexible laboratory automation for dynamically changing experiments.
Loading...
Searching...
No Matches
CommonModuleEvents.cpp
Go to the documentation of this file.
1// This file is part of DynExp.
2
3#include "stdafx.h"
5
6namespace DynExpModule
7{
8 void FinishedEvent::InvokeWithParamsChild(DynExp::ModuleInstance& Instance, EventListenersType::EventFunctionType EventFunc) const
9 {
10 EventFunc(&Instance);
11 }
12
13 void SetFilenameEvent::InvokeWithParamsChild(DynExp::ModuleInstance& Instance, EventListenersType::EventFunctionType EventFunc) const
14 {
15 EventFunc(&Instance, Filename);
16 }
17
18 void StartEvent::InvokeWithParamsChild(DynExp::ModuleInstance& Instance, EventListenersType::EventFunctionType EventFunc) const
19 {
20 EventFunc(&Instance);
21 }
22
23 void StopEvent::InvokeWithParamsChild(DynExp::ModuleInstance& Instance, EventListenersType::EventFunctionType EventFunc) const
24 {
25 EventFunc(&Instance);
26 }
27
28 void TriggerEvent::InvokeWithParamsChild(DynExp::ModuleInstance& Instance, EventListenersType::EventFunctionType EventFunc) const
29 {
30 EventFunc(&Instance);
31 }
32}
Provides common events for inter-module communication. Also refer to DynExp::InterModuleEventBase.
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 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...
const std::string Filename
Filename where to store data (path and name, no file extension). The receiving module is responsible ...
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 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 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...
Defines data for a thread belonging to a ModuleBase instance. Refer to RunnableInstance.
Definition Module.h:840
DynExp's module namespace contains the implementation of DynExp modules which extend DynExp's core fu...
Accumulates include statements to provide a precompiled header.