#include <AcquisitionField.h>
Public Member Functions | |
AcqFieldStringArray (const std::string &fieldName, bool multiplexed, DataStore *pDataStore, bool persistent, int32_t size1, int32_t size2, DataIntegrity bufferType=SingleBuffered) | |
Constructor. | |
~AcqFieldStringArray () | |
destructor | |
const char ** | get (uint32_t &size1, MultiplexingContext *context) |
Method to retrieve the value of the field. | |
const char * | getString (uint32_t index, MultiplexingContext *context) |
Method to retrieve one string of the field value. | |
void | set (const char **val, uint32_t size1, MultiplexingContext *context) |
Method to set the new value of the pending buffer of the field. | |
void | setString (const char *val, uint32_t index, MultiplexingContext *context) |
Method to set the one string of the pending buffer of the field. |
Definition at line 1089 of file AcquisitionField.h.
fesa::AcqFieldStringArray::AcqFieldStringArray | ( | const std::string & | fieldName, | |
bool | multiplexed, | |||
DataStore * | pDataStore, | |||
bool | persistent, | |||
int32_t | size1, | |||
int32_t | size2, | |||
DataIntegrity | bufferType = SingleBuffered | |||
) |
Constructor.
fieldName | name of the field | |
criterionName | multiplexing criterion | |
pointer | to DataStore that contains the field |
Definition at line 59 of file AcquisitionField.cpp.
fesa::AcqFieldStringArray::~AcqFieldStringArray | ( | ) |
destructor
Definition at line 66 of file AcquisitionField.cpp.
const char ** fesa::AcqFieldStringArray::get | ( | uint32_t & | size1, | |
MultiplexingContext * | context | |||
) |
Method to retrieve the value of the field.
context | the multiplexing context |
Definition at line 70 of file AcquisitionField.cpp.
References fesa::FieldValue< char *[]>::activeBuffer(), FesaErrorNoneContextforMuxedField, FesaErrorNULLPointerToContext, fesa::FieldValue< char *[]>::getActiveCurrentSize(), fesa::FieldStringArray::getFieldValue(), fesa::AbstractMultiplexingManager::getSlot(), fesa::MultiplexingContext::getType(), fesa::AbstractField::multiplexingManager_, fesa::AbstractField::name_, fesa::MultiplexingContext::NoneCtxt, and fesa::FieldStringArray::pointers_.
const char * fesa::AcqFieldStringArray::getString | ( | uint32_t | index, | |
MultiplexingContext * | context | |||
) |
Method to retrieve one string of the field value.
index | index of the string | |
context | the multiplexing context |
Definition at line 89 of file AcquisitionField.cpp.
References fesa::FieldValue< char *[]>::activeBuffer(), FesaErrorFieldCurrentDimensionOutOfBound, FesaErrorNoneContextforMuxedField, FesaErrorNULLPointerToContext, fesa::FieldValue< char *[]>::getActiveCurrentSize(), fesa::FieldStringArray::getFieldValue(), fesa::AbstractMultiplexingManager::getSlot(), fesa::MultiplexingContext::getType(), fesa::AbstractField::multiplexingManager_, fesa::AbstractField::name_, fesa::MultiplexingContext::NoneCtxt, fesa::FieldStringArray::pointers_, and fesa::StringUtilities::toString().
void fesa::AcqFieldStringArray::set | ( | const char ** | val, | |
uint32_t | size1, | |||
MultiplexingContext * | context | |||
) |
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 114 of file AcquisitionField.cpp.
References FesaErrorFieldMaxDimensionsOutOfBound, FesaErrorNoneContextforMuxedField, FesaErrorNULLPointerToContext, FesaErrorWrongSourceContextAcquisitionField, fesa::MultiplexingContext::getAcquisitionAccessMask(), fesa::FieldStringArray::getFieldValue(), fesa::MultiplexingContext::getType(), fesa::FieldStringArray::maxSize1_, fesa::FieldStringArray::maxSize2_, fesa::AbstractField::multiplexingManager_, fesa::AbstractField::name_, fesa::MultiplexingContext::NoneCtxt, fesa::FieldValue< char *[]>::pendingBuffer(), fesa::FieldStringArray::pointers_, fesa::AbstractMultiplexingManager::requireSlot(), fesa::MultiplexingContext::SET_ALLOWED, fesa::FieldValue< char *[]>::setPendingCurrentSize(), and fesa::StringUtilities::toString().
void fesa::AcqFieldStringArray::setString | ( | const char * | val, | |
uint32_t | index, | |||
MultiplexingContext * | context | |||
) |
Method to set the one string of the pending buffer of the field.
val | new value of field | |
index | index of the string * | |
context | the multiplexing context |
Definition at line 154 of file AcquisitionField.cpp.
References FesaErrorFieldMaxDimensionsOutOfBound, FesaErrorNoneContextforMuxedField, FesaErrorNULLPointerToContext, FesaErrorWrongSourceContextAcquisitionField, fesa::MultiplexingContext::getAcquisitionAccessMask(), fesa::FieldStringArray::getFieldValue(), fesa::FieldValue< char *[]>::getPendingCurrentSize(), fesa::MultiplexingContext::getType(), fesa::FieldStringArray::maxSize1_, fesa::FieldStringArray::maxSize2_, fesa::AbstractField::multiplexingManager_, fesa::AbstractField::name_, fesa::MultiplexingContext::NoneCtxt, fesa::FieldValue< char *[]>::pendingBuffer(), fesa::FieldStringArray::pointers_, fesa::AbstractMultiplexingManager::requireSlot(), fesa::MultiplexingContext::SET_ALLOWED, fesa::FieldValue< char *[]>::setPendingCurrentSize(), and fesa::StringUtilities::toString().