Wrapper class for setting fields. More...
#include <SettingField.h>
Public Member Functions | |
SettingFieldScalar (const std::string &fieldName, bool multiplexed, bool multiMultiplexed, DataStore *pDataStore, bool persistent, bool shared, const DataIntegrity bufferType=DoubleBuffered) | |
Constructor. | |
~SettingFieldScalar () | |
Destructor. | |
T | get (MultiplexingContext *) |
Method to retrieve the value of the field. | |
T | getPending (MultiplexingContext *) |
Method to retrieve the pending value of the field Pending value becomes active after a commit. | |
void | set (T val, MultiplexingContext *) |
Method to set the new value of the pending buffer of the field. |
Wrapper class for setting fields.
Definition at line 21 of file SettingField.h.
fesa::SettingFieldScalar< T >::SettingFieldScalar | ( | const std::string & | fieldName, | |
bool | multiplexed, | |||
bool | multiMultiplexed, | |||
DataStore * | pDataStore, | |||
bool | persistent, | |||
bool | shared, | |||
const DataIntegrity | bufferType = DoubleBuffered | |||
) | [inline] |
Constructor.
name | of the field, multiplexing criterion, pointer to DataStore |
Definition at line 60 of file SettingField.h.
References fesa::AbstractField::isShared_.
fesa::SettingFieldScalar< T >::~SettingFieldScalar | ( | ) | [inline] |
Destructor.
Definition at line 71 of file SettingField.h.
T fesa::SettingFieldScalar< T >::get | ( | MultiplexingContext * | context | ) | [inline] |
Method to retrieve the value of the field.
context | the multiplexing context |
Definition at line 76 of file SettingField.h.
References fesa::FieldValue< T >::activeBuffer(), fesa::MultiplexingContext::CHECK_FLAG_TO_BE_SYNC, FesaErrorNoneContextforMuxedField, FesaErrorNULLPointerToContext, fesa::Field< T >::getFieldValue(), fesa::MultiplexingContext::getSettingAccessMask(), fesa::AbstractMultiplexingManager::getSlot(), fesa::MultiplexingContext::getType(), fesa::FieldValueBase::isToBeSync(), fesa::AbstractField::multiplexingManager_, fesa::AbstractField::name_, fesa::MultiplexingContext::NoneCtxt, and fesa::FieldValue< T >::pendingBuffer().
Referenced by fesa::SetDiagnosticSetting::execute(), and fesa::GetDiagnosticSetting::execute().
T fesa::SettingFieldScalar< T >::getPending | ( | MultiplexingContext * | context | ) | [inline] |
Method to retrieve the pending value of the field Pending value becomes active after a commit.
context | the multiplexing context |
Definition at line 101 of file SettingField.h.
References FesaErrorNoneContextforMuxedField, FesaErrorNULLPointerToContext, fesa::Field< T >::getFieldValue(), fesa::AbstractMultiplexingManager::getSlot(), fesa::MultiplexingContext::getType(), fesa::AbstractField::multiplexingManager_, fesa::AbstractField::name_, fesa::MultiplexingContext::NoneCtxt, and fesa::FieldValue< T >::pendingBuffer().
void fesa::SettingFieldScalar< 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 118 of file SettingField.h.
References FesaErrorNoneContextforMuxedField, FesaErrorNULLPointerToContext, FesaErrorWrongSourceContextSettingField, fesa::Field< T >::getFieldValue(), fesa::MultiplexingContext::getSettingAccessMask(), fesa::MultiplexingContext::getType(), fesa::AbstractField::multiplexingManager_, fesa::AbstractField::name_, fesa::MultiplexingContext::NoneCtxt, fesa::FieldValue< T >::pendingBuffer(), fesa::AbstractField::registerModifiedField(), fesa::AbstractMultiplexingManager::requireSlot(), fesa::AbstractField::resetToBeSync(), and fesa::MultiplexingContext::SET_ALLOWED.
Referenced by fesa::SetDiagnosticSetting::execute().