Wrapper class for generic fields. The generic field API offer methods to set fields, in contrast to configuration fields which cannot be set dynamically because they are constant. More...
#include <GenericField.h>
Public Member Functions | |
GenericFieldStruct (const std::string &fieldName, bool multiplexed, DataStore *pDataStore, bool persistent, DataIntegrity bufferType=SingleBuffered) | |
Constructor. | |
~GenericFieldStruct () | |
destructor | |
const 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 generic fields. The generic field API offer methods to set fields, in contrast to configuration fields which cannot be set dynamically because they are constant.
Definition at line 111 of file GenericField.h.
fesa::GenericFieldStruct< T >::GenericFieldStruct | ( | const std::string & | fieldName, | |
bool | multiplexed, | |||
DataStore * | pDataStore, | |||
bool | persistent, | |||
DataIntegrity | bufferType = SingleBuffered | |||
) | [inline] |
Constructor.
fieldName | name of the field | |
criterionName | multiplexing criterion | |
pointer | to DataStore that contains the field |
Definition at line 144 of file GenericField.h.
fesa::GenericFieldStruct< T >::~GenericFieldStruct | ( | ) | [inline] |
destructor
Definition at line 152 of file GenericField.h.
const T * fesa::GenericFieldStruct< T >::get | ( | MultiplexingContext * | context | ) | [inline] |
Method to retrieve the value of the field.
context | the multiplexing context |
Definition at line 157 of file GenericField.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::GenericFieldStruct< 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 174 of file GenericField.h.
References FesaErrorNoneContextforMuxedField, FesaErrorNULLPointerToContext, fesa::Field< T >::getFieldValue(), fesa::MultiplexingContext::getType(), fesa::AbstractField::multiplexingManager_, fesa::AbstractField::name_, fesa::MultiplexingContext::NoneCtxt, fesa::FieldValue< T >::pendingBuffer(), and fesa::AbstractMultiplexingManager::requireSlot().