|
DynExp
Highly flexible laboratory automation for dynamically changing experiments.
|
Python mapping of a DynExpInstr::DataStreamInstrument's DynExpInstr::DataStreamBase instance. More...
#include <PyModules.h>
Public Member Functions | |
| PyDataStreamInstrument () noexcept=default | |
| Default-constructs a PyDataStreamInstrument object. | |
| size_t | CalcLastConsumedSampleID (size_t NumConsumedSamples) const |
| Allows to calculate the ID of the last consumed sample based on the amount of samples consumed from the stream. | |
| size_t | ConsumeNone () const |
| Allows to calculate the ID of the last consumed sample for the situation that no samples was consumed. | |
| size_t | ConsumeAll () const |
| Allows to calculate the ID of the last consumed sample for the situation that all samples were consumed. | |
| void | Clear () |
| Requests a call to DataStreamBase::Clear() on the related data stream instrument. Sets ShouldClearFlag to true. | |
Not mapped to Python | |
These functions cannot be accessed through the Python interface. | |
| PyDataStreamInstrument (bool IsTimeUsed, DataStreamInstrumentData::UnitType ValueUnit) noexcept | |
| Constructs a PyDataStreamInstrument object. | |
| void | Cleared () |
| Resets ShouldClearFlag to false. | |
| auto | ShouldCLear () const noexcept |
| Getter for ShouldClearFlag. | |
Static Public Member Functions | |
| static void | import () |
Make the Python interpreter import this module as PyModuleDataStreamInstrument. GIL has to be acquired before. | |
Public Attributes | |
| bool | IsTimeUsed { false } |
| Contains the result of DynExpInstr::DataStreamBase::IsBasicSampleTimeUsed(). | |
| DataStreamInstrumentData::UnitType | ValueUnit { DataStreamInstrumentData::UnitType::Arbitrary } |
| Refer to DynExpInstr::DataStreamInstrumentData::UnitType. | |
| size_t | StreamSizeRead {} |
| Contains the result of DynExpInstr::DataStreamBase::GetStreamSizeRead(). | |
| size_t | StreamSizeWrite {} |
| Contains the result of DynExpInstr::DataStreamBase::GetStreamSizeWrite(). | |
| size_t | NumSamplesWritten {} |
| Contains the result of DynExpInstr::DataStreamBase::GetNumSamplesWritten(). | |
| DataStreamBase::BasicSampleListType | Samples |
| Samples of the data stream instrument. | |
Private Attributes | |
| bool | ShouldClearFlag { false } |
| Indicates whether DataStreamBase::Clear() should be called on the related data stream instrument. | |
Python mapping of a DynExpInstr::DataStreamInstrument's DynExpInstr::DataStreamBase instance.
Definition at line 19 of file PyModules.h.
|
defaultnoexcept |
Default-constructs a PyDataStreamInstrument object.
|
inlinenoexcept |
Constructs a PyDataStreamInstrument object.
| IsTimeUsed | Contains the result of DynExpInstr::DataStreamBase::IsBasicSampleTimeUsed(). |
| ValueUnit | Refer to DynExpInstr::DataStreamInstrumentData::UnitType. |
Definition at line 42 of file PyModules.h.
| size_t DynExpInstr::PyDataStreamInstrument::CalcLastConsumedSampleID | ( | size_t | NumConsumedSamples | ) | const |
Allows to calculate the ID of the last consumed sample based on the amount of samples consumed from the stream.
| NumConsumedSamples | Number of samples consumed from Samples |
Definition at line 57 of file PyModules.cpp.
|
inline |
Requests a call to DataStreamBase::Clear() on the related data stream instrument. Sets ShouldClearFlag to true.
Definition at line 79 of file PyModules.h.
|
inline |
Resets ShouldClearFlag to false.
Definition at line 48 of file PyModules.h.
| size_t DynExpInstr::PyDataStreamInstrument::ConsumeAll | ( | ) | const |
Allows to calculate the ID of the last consumed sample for the situation that all samples were consumed.
Definition at line 62 of file PyModules.cpp.
|
inline |
Allows to calculate the ID of the last consumed sample for the situation that no samples was consumed.
Definition at line 67 of file PyModules.h.
|
static |
Make the Python interpreter import this module as PyModuleDataStreamInstrument. GIL has to be acquired before.
Definition at line 52 of file PyModules.cpp.
|
inlinenoexcept |
Getter for ShouldClearFlag.
Definition at line 53 of file PyModules.h.
| bool DynExpInstr::PyDataStreamInstrument::IsTimeUsed { false } |
Contains the result of DynExpInstr::DataStreamBase::IsBasicSampleTimeUsed().
Definition at line 84 of file PyModules.h.
| size_t DynExpInstr::PyDataStreamInstrument::NumSamplesWritten {} |
Contains the result of DynExpInstr::DataStreamBase::GetNumSamplesWritten().
Definition at line 104 of file PyModules.h.
| DataStreamBase::BasicSampleListType DynExpInstr::PyDataStreamInstrument::Samples |
Samples of the data stream instrument.
Definition at line 109 of file PyModules.h.
|
private |
Indicates whether DataStreamBase::Clear() should be called on the related data stream instrument.
Definition at line 115 of file PyModules.h.
| size_t DynExpInstr::PyDataStreamInstrument::StreamSizeRead {} |
Contains the result of DynExpInstr::DataStreamBase::GetStreamSizeRead().
Definition at line 94 of file PyModules.h.
| size_t DynExpInstr::PyDataStreamInstrument::StreamSizeWrite {} |
Contains the result of DynExpInstr::DataStreamBase::GetStreamSizeWrite().
Definition at line 99 of file PyModules.h.
| DataStreamInstrumentData::UnitType DynExpInstr::PyDataStreamInstrument::ValueUnit { DataStreamInstrumentData::UnitType::Arbitrary } |
Refer to DynExpInstr::DataStreamInstrumentData::UnitType.
Definition at line 89 of file PyModules.h.