Wrapper class for scalar acquisition fields. The acquisition field API offer methods to set fields, in contrast to configuration fields which cannot be set dynamically because they are constant. More...
#include <AcquisitionField.h>
Public Member Functions | |
AcqFieldScalar (const std::string &fieldName, bool multiplexed, DataStore *pDataStore, bool persistent=false, DataIntegrity bufferType=SingleBuffered) | |
Constructor. | |
~AcqFieldScalar () | |
destructor | |
T | get (MultiplexingContext *) |
Method to retrieve the value of the field. | |
void | set (T val, MultiplexingContext *) |
Method to set the new value of the pending buffer of the field. |
Wrapper class for scalar acquisition fields. The acquisition field API offer methods to set fields, in contrast to configuration fields which cannot be set dynamically because they are constant.
Definition at line 23 of file AcquisitionField.h.
fesa::AcqFieldScalar< T >::AcqFieldScalar | ( | const std::string & | fieldName, | |
bool | multiplexed, | |||
DataStore * | pDataStore, | |||
bool | persistent = false , |
|||
DataIntegrity | bufferType = SingleBuffered | |||
) | [inline] |
Constructor.
fieldName | name of the field | |
criterionName | multiplexing criterion | |
pointer | to DataStore that contains the field |
Definition at line 57 of file AcquisitionField.h.
fesa::AcqFieldScalar< T >::~AcqFieldScalar | ( | ) | [inline] |
destructor
Definition at line 65 of file AcquisitionField.h.
T fesa::AcqFieldScalar< T >::get | ( | MultiplexingContext * | context | ) | [inline] |
Method to retrieve the value of the field.
context | the multiplexing context |
Definition at line 70 of file AcquisitionField.h.
References fesa::FieldValue< T >::activeBuffer(), FesaErrorNoneContextforMuxedField, FesaErrorNULLPointerToContext, fesa::Field< T >::getFieldValue(), fesa::AbstractMultiplexingManager::getSlot(), fesa::MultiplexingContext::getType(), fesa::AbstractField::multiplexingManager_, fesa::AbstractField::name_, and fesa::MultiplexingContext::NoneCtxt.
void fesa::AcqFieldScalar< T >::set | ( | T | val, | |
MultiplexingContext * | context | |||
) | [inline] |
Method to set the new value of the pending buffer of the field.
val | new value of field | |
context | the multiplexing context |
Definition at line 87 of file AcquisitionField.h.
References FesaErrorNoneContextforMuxedField, FesaErrorNULLPointerToContext, FesaErrorWrongSourceContextAcquisitionField, fesa::MultiplexingContext::getAcquisitionAccessMask(), fesa::Field< T >::getFieldValue(), fesa::MultiplexingContext::getType(), fesa::AbstractField::multiplexingManager_, fesa::AbstractField::name_, fesa::MultiplexingContext::NoneCtxt, fesa::FieldValue< T >::pendingBuffer(), fesa::AbstractMultiplexingManager::requireSlot(), and fesa::MultiplexingContext::SET_ALLOWED.