#include <SettingField.h>
Public Member Functions | |
SettingFieldString (const std::string &fieldName, bool multiplexed, bool multiMultiplexed, DataStore *pDataStore, bool persistent, bool shared, int32_t size, const DataIntegrity bufferType=DoubleBuffered) | |
Constructor. | |
~SettingFieldString () | |
destructor | |
const char * | get (MultiplexingContext *context) |
Method to retrieve active field value. | |
void | set (const char *val, MultiplexingContext *context) |
Method to set the new value of the pending buffer of the field. |
Definition at line 1304 of file SettingField.h.
fesa::SettingFieldString::SettingFieldString | ( | const std::string & | fieldName, | |
bool | multiplexed, | |||
bool | multiMultiplexed, | |||
DataStore * | pDataStore, | |||
bool | persistent, | |||
bool | shared, | |||
int32_t | size, | |||
const DataIntegrity | bufferType = DoubleBuffered | |||
) |
Constructor.
name | of the field, multiplexing criterion, pointer to DataStore |
Definition at line 9 of file SettingField.cpp.
References fesa::AbstractField::isShared_.
fesa::SettingFieldString::~SettingFieldString | ( | ) |
destructor
Definition at line 17 of file SettingField.cpp.
const char * fesa::SettingFieldString::get | ( | MultiplexingContext * | context | ) |
Method to retrieve active field value.
context | the multiplexing context |
Definition at line 21 of file SettingField.cpp.
References fesa::FieldValue< char[]>::activeBuffer(), fesa::MultiplexingContext::CHECK_FLAG_TO_BE_SYNC, FesaErrorNoneContextforMuxedField, FesaErrorNULLPointerToContext, fesa::FieldString::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< char[]>::pendingBuffer().
Referenced by fesa::GetDiagnosticSetting::execute().
void fesa::SettingFieldString::set | ( | const char * | val, | |
MultiplexingContext * | context | |||
) |
Method to set the new value of the pending buffer of the field.
val | new string value | |
context | the multiplexing context |
Definition at line 46 of file SettingField.cpp.
References FesaErrorFieldMaxDimensionOutOfBound, FesaErrorNoneContextforMuxedField, FesaErrorNULLPointerToContext, fesa::FieldString::getFieldValue(), fesa::MultiplexingContext::getSettingAccessMask(), fesa::MultiplexingContext::getType(), fesa::FieldString::maxSize_, fesa::AbstractField::multiplexingManager_, fesa::AbstractField::name_, fesa::MultiplexingContext::NoneCtxt, fesa::FieldValue< char[]>::pendingBuffer(), fesa::AbstractField::registerModifiedField(), fesa::AbstractMultiplexingManager::requireSlot(), fesa::AbstractField::resetToBeSync(), fesa::MultiplexingContext::SET_ALLOWED, and fesa::StringUtilities::toString().
Referenced by fesa::SetDiagnosticSetting::execute().