#include <GenericField.h>
Public Member Functions | |
GenericFieldStringArray (const std::string &fieldName, bool multiplexed, DataStore *pDataStore, bool persistent, int32_t size1, int32_t size2, DataIntegrity bufferType=SingleBuffered) | |
Constructor. | |
~GenericFieldStringArray () | |
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 1048 of file GenericField.h.
fesa::GenericFieldStringArray::GenericFieldStringArray | ( | 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 53 of file GenericField.cpp.
fesa::GenericFieldStringArray::~GenericFieldStringArray | ( | ) |
destructor
Definition at line 60 of file GenericField.cpp.
const char ** fesa::GenericFieldStringArray::get | ( | uint32_t & | size1, | |
MultiplexingContext * | context | |||
) |
Method to retrieve the value of the field.
context | the multiplexing context |
Definition at line 64 of file GenericField.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::GenericFieldStringArray::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 83 of file GenericField.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::GenericFieldStringArray::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 108 of file GenericField.cpp.
References FesaErrorFieldMaxDimensionsOutOfBound, FesaErrorNoneContextforMuxedField, FesaErrorNULLPointerToContext, 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::FieldValue< char *[]>::setPendingCurrentSize(), and fesa::StringUtilities::toString().
void fesa::GenericFieldStringArray::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 144 of file GenericField.cpp.
References FesaErrorFieldMaxDimensionsOutOfBound, FesaErrorNoneContextforMuxedField, FesaErrorNULLPointerToContext, 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::FieldValue< char *[]>::setPendingCurrentSize(), and fesa::StringUtilities::toString().