|
DynExp
Highly flexible laboratory automation for dynamically changing experiments.
|
Common base class for all inter-module events. More...
#include <Module.h>
Inheritance diagram for DynExp::InterModuleEventBase:Public Types | |
| using | InterModuleEventPtrType = std::unique_ptr< InterModuleEventBase > |
Pointer type to store an inter-module event (InterModuleEventBase). | |
Public Member Functions | |
| InterModuleEventBase () | |
| Constructs an inter-module event. | |
| InterModuleEventBase (const InterModuleEventBase &Other, ItemIDType CommunicatorID) | |
| Copy-constrcuts an inter-module event setting the CommunicatorID. | |
| virtual | ~InterModuleEventBase ()=0 |
| virtual InterModuleEventPtrType | Clone (ItemIDType CommunicatorID) const =0 |
| Creates a deep copy of this inter-module instance. | |
| virtual size_t | GetID () const noexcept=0 |
| Returns the unique ID of this event type. | |
| auto | GetCommunicatorID () const noexcept |
| Getter for CommunicatorID. | |
Override | |
Override by derived events to provide information about the derived events. | |
| virtual std::string | GetName () const =0 |
| Returns the name of this event type. | |
Public Member Functions inherited from DynExp::EventBase | |
| EventBase ()=default | |
| virtual | ~EventBase ()=0 |
| void | Invoke (ModuleInstance &Instance) const |
Invokes the event passing the receiving module's instance reference to it. Only to be called from ModuleBase. | |
Private Attributes | |
| const ItemIDType | CommunicatorID |
| ID of the DynExpInstr::InterModuleCommunicator instance that sends the event. | |
| using DynExp::InterModuleEventBase::InterModuleEventPtrType = std::unique_ptr<InterModuleEventBase> |
Pointer type to store an inter-module event (InterModuleEventBase).
|
inline |
|
inline |
Copy-constrcuts an inter-module event setting the CommunicatorID.
| Other | Inter-module event to copy. |
| CommunicatorID | ID of the DynExpInstr::InterModuleCommunicator instance that sends the event. |
|
pure virtual |
Definition at line 428 of file Module.cpp.
|
pure virtual |
Creates a deep copy of this inter-module instance.
| CommunicatorID | ID of the DynExpInstr::InterModuleCommunicator instance that sends the event. |
Implemented in DynExp::InterModuleEvent< DerivedEvent, EventFuncArgs >, DynExp::InterModuleEvent< AutofocusEvent, bool >, DynExp::InterModuleEvent< FinishedAutofocusEvent, bool, double >, DynExp::InterModuleEvent< FinishedEvent >, DynExp::InterModuleEvent< ImageCapturingPausedEvent >, DynExp::InterModuleEvent< ImageCapturingResumedEvent >, DynExp::InterModuleEvent< PauseImageCapturingEvent, bool >, DynExp::InterModuleEvent< PauseSpectrumRecordingEvent >, DynExp::InterModuleEvent< ResumeImageCapturingEvent >, DynExp::InterModuleEvent< ResumeSpectrumRecordingEvent >, DynExp::InterModuleEvent< SetFilenameEvent, std::string >, DynExp::InterModuleEvent< SetSilentModeEvent, bool >, DynExp::InterModuleEvent< StartEvent >, DynExp::InterModuleEvent< StopEvent >, and DynExp::InterModuleEvent< TriggerEvent >.
|
inlinenoexcept |
Getter for CommunicatorID.
|
pure virtualnoexcept |
Returns the unique ID of this event type.
Implemented in DynExp::InterModuleEvent< DerivedEvent, EventFuncArgs >, DynExp::InterModuleEvent< AutofocusEvent, bool >, DynExp::InterModuleEvent< FinishedAutofocusEvent, bool, double >, DynExp::InterModuleEvent< FinishedEvent >, DynExp::InterModuleEvent< ImageCapturingPausedEvent >, DynExp::InterModuleEvent< ImageCapturingResumedEvent >, DynExp::InterModuleEvent< PauseImageCapturingEvent, bool >, DynExp::InterModuleEvent< PauseSpectrumRecordingEvent >, DynExp::InterModuleEvent< ResumeImageCapturingEvent >, DynExp::InterModuleEvent< ResumeSpectrumRecordingEvent >, DynExp::InterModuleEvent< SetFilenameEvent, std::string >, DynExp::InterModuleEvent< SetSilentModeEvent, bool >, DynExp::InterModuleEvent< StartEvent >, DynExp::InterModuleEvent< StopEvent >, and DynExp::InterModuleEvent< TriggerEvent >.
|
pure virtual |
Returns the name of this event type.
Implemented in DynExpModule::FinishedEvent, DynExpModule::SetFilenameEvent, DynExpModule::StartEvent, DynExpModule::StopEvent, DynExpModule::TriggerEvent, DynExp::InterModuleEvent< DerivedEvent, EventFuncArgs >, DynExp::InterModuleEvent< AutofocusEvent, bool >, DynExp::InterModuleEvent< FinishedAutofocusEvent, bool, double >, DynExp::InterModuleEvent< FinishedEvent >, DynExp::InterModuleEvent< ImageCapturingPausedEvent >, DynExp::InterModuleEvent< ImageCapturingResumedEvent >, DynExp::InterModuleEvent< PauseImageCapturingEvent, bool >, DynExp::InterModuleEvent< PauseSpectrumRecordingEvent >, DynExp::InterModuleEvent< ResumeImageCapturingEvent >, DynExp::InterModuleEvent< ResumeSpectrumRecordingEvent >, DynExp::InterModuleEvent< SetFilenameEvent, std::string >, DynExp::InterModuleEvent< SetSilentModeEvent, bool >, DynExp::InterModuleEvent< StartEvent >, DynExp::InterModuleEvent< StopEvent >, and DynExp::InterModuleEvent< TriggerEvent >.
|
private |
ID of the DynExpInstr::InterModuleCommunicator instance that sends the event.