DynExp
Highly flexible laboratory automation for dynamically changing experiments.
Loading...
Searching...
No Matches
DummyDigitalOut.cpp
Go to the documentation of this file.
1// This file is part of DynExp.
2
3#include "stdafx.h"
4#include "DummyDigitalOut.h"
5
6namespace DynExpInstr
7{
13
15 {
16 // Shut down derived instrument first.
17 ExitFuncImpl(dispatch_tag<ExitTask>(), Instance);
18 }
19
21 {
22 // Update derived instrument.
23 UpdateFuncImpl(dispatch_tag<UpdateTask>(), Instance);
24 }
25
30
31 DummyDigitalOut::DummyDigitalOut(const std::thread::id OwnerThreadID, DynExp::ParamsBasePtrType&& Params)
32 : DigitalOut(OwnerThreadID, std::move(Params))
33 {
34 }
35
40}
Implementation of a digital output port instrument without any related physical hardware.
Meta instrument for a single digital output port based on the data stream, function generator,...
Definition DigitalOut.h:141
void ResetImpl(dispatch_tag< DigitalOutData >) override final
void ExitFuncImpl(dispatch_tag< DigitalOutTasks::ExitTask >, DynExp::InstrumentInstance &Instance) override final
Deinitializes the respective instrument within the instrument inheritance hierarchy....
void InitFuncImpl(dispatch_tag< DigitalOutTasks::InitTask >, DynExp::InstrumentInstance &Instance) override final
Initializes the respective instrument within the instrument inheritance hierarchy....
void UpdateFuncImpl(dispatch_tag< DigitalOutTasks::UpdateTask >, DynExp::InstrumentInstance &Instance) override final
Updates the respective instrument within the instrument inheritance hierarchy. Call UpdateFuncImpl() ...
DummyDigitalOut(const std::thread::id OwnerThreadID, DynExp::ParamsBasePtrType &&Params)
void ResetImpl(dispatch_tag< DigitalOut >) override final
Refer to DynExp::Object::Reset(). Using tag dispatch mechanism to ensure that ResetImpl() of every de...
Refer to DynExp::ParamsBase::dispatch_tag.
Refer to DynExp::ParamsBase::dispatch_tag.
Refer to ParamsBase::dispatch_tag.
Definition Instrument.h:146
Defines data for a thread belonging to a InstrumentBase instance. Refer to RunnableInstance.
Definition Instrument.h:813
Refer to ParamsBase::dispatch_tag.
Definition Object.h:2018
Refer to DynExp::ParamsBase::dispatch_tag.
DynExp's instrument namespace contains the implementation of DynExp instruments which extend DynExp's...
std::unique_ptr< ParamsBase > ParamsBasePtrType
Alias for a pointer to the parameter system base class ParamsBase.
Definition Object.h:1807
Accumulates include statements to provide a precompiled header.