13 auto Instr = DynExp::dynamic_Object_cast<OutputPort>(&Instance.
GetOwner());
17 const auto StreamSize = Instr->GetStreamSizeParams().StreamSize;
18 auto InstrData = DynExp::dynamic_InstrumentData_cast<OutputPort>(Instance.
InstrumentDataGetter());
20 InstrData->GetSampleStream()->SetStreamSize(StreamSize);
23 auto InstrData = DynExp::dynamic_InstrumentData_cast<OutputPort>(Instance.
InstrumentDataGetter());
24 InstrData->SetHardwareMinValue(Instr->GetHardwareMinValue());
25 InstrData->SetHardwareMaxValue(Instr->GetHardwareMaxValue());
26 InstrData->SetValueUnit(Instr->GetValueUnit());
31 auto Instr = DynExp::dynamic_Object_cast<OutputPort>(&Instance.
GetOwner());
32 const auto StreamSize = Instr->GetStreamSizeParams().StreamSize;
33 auto InstrData = DynExp::dynamic_InstrumentData_cast<OutputPort>(Instance.
InstrumentDataGetter());
35 InstrData->GetSampleStream()->SetStreamSize(StreamSize);
Defines a generic output port meta instrument which is used to extract data from a data stream and to...
virtual ~OutputPortConfigurator()=0
void ResetImpl(dispatch_tag< FunctionGeneratorData >) override final
virtual ~OutputPortParams()=0
void DisableUserEditable()
Calls DynExp::ParamsBase::DisableUserEditable() on all bundled parameters.
void InitFuncImpl(dispatch_tag< FunctionGeneratorTasks::InitTask >, DynExp::InstrumentInstance &Instance) override final
Initializes the respective instrument within the instrument inheritance hierarchy....
virtual bool ApplyDataStreamSizeFromParams() const noexcept
Determines whether to update the instrument's data stream size according to the instrument parameters...
virtual DynExp::TaskResultType RunChild(DynExp::InstrumentInstance &Instance) override
Runs the task. Override RunChild() to define a derived task's action(s). Any exception leaving RunChi...
void ResetImpl(dispatch_tag< FunctionGenerator >) 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 ParamsBase::dispatch_tag.
Defines data for a thread belonging to a InstrumentBase instance. Refer to RunnableInstance.
const InstrumentBase::InstrumentDataGetterType InstrumentDataGetter
Getter for instrument's data. Refer to InstrumentBase::InstrumentDataGetterType.
Refer to ParamsBase::dispatch_tag.
const auto & GetOwner() const noexcept
Returns Owner.
Defines the return type of task functions.
DynExp's instrument namespace contains the implementation of DynExp instruments which extend DynExp's...
Accumulates include statements to provide a precompiled header.