fesa::Field< T > Class Template Reference

Field template class for scalar fields. More...

#include <Field.h>

Inheritance diagram for fesa::Field< T >:
fesa::AbstractField fesa::AcqFieldScalar< T > fesa::AcqFieldStruct< T > fesa::ConfigFieldScalar< T > fesa::ConfigFieldStruct< T > fesa::GenericFieldScalar< T > fesa::GenericFieldStruct< T > fesa::SettingFieldScalar< T > fesa::SettingFieldStruct< T >

List of all members.

Public Member Functions

 Field (const std::string &fieldName, const FieldCategory fieldCategory, bool multiplexed, bool multiMultiplexed, bool persistent, DataIntegrity bufferType, DataStore *pDataStore)
 Constructor.
 ~Field ()
 destructor

Protected Member Functions

uint32_t getFieldValueSize ()
 Method to get the size of the field-value object. The template of the field-value class depends on the field type.
FieldValue< T > * getFieldValue (int32_t slot)
void setFieldValueAddress (char *pFV, bool initFieldsFlag)
 Maps an address in shared memory or on the heap to the field value member of the field class.
void copyValue (uint32_t slot, std::string &val)
 this method puts in the slot the value passed by parameter in the corresponding format
void getValueToStore (int32_t slot, std::string &str)

Protected Attributes

FieldValue< T > * fieldValue_
 value of the field in the first slot

Detailed Description

template<typename T>
class fesa::Field< T >

Field template class for scalar fields.

Field template class for string arrays.

Field template class for strings.

Field template class for 2D arrays of various numeric types and structure types.

], D>

Definition at line 23 of file Field.h.


Constructor & Destructor Documentation

template<typename T >
fesa::Field< T >::Field ( const std::string &  fieldName,
const FieldCategory  fieldCategory,
bool  multiplexed,
bool  multiMultiplexed,
bool  persistent,
DataIntegrity  bufferType,
DataStore pDataStore 
) [inline]

Constructor.

Parameters:
name of the field, field category, multiplexing criterion, pointer to DataStore

Definition at line 80 of file Field.h.

template<typename T >
fesa::Field< T >::~Field (  )  [inline]

destructor

Definition at line 90 of file Field.h.


Member Function Documentation

template<typename T >
void fesa::Field< T >::copyValue ( uint32_t  slot,
std::string &  val 
) [inline, protected, virtual]

this method puts in the slot the value passed by parameter in the corresponding format

Parameters:
slot to put the value
val value to put

Implements fesa::AbstractField.

Definition at line 135 of file Field.h.

References fesa::FieldValue< T >::activeBuffer(), and fesa::Field< T >::getFieldValue().

template<typename T >
FieldValue< T > * fesa::Field< T >::getFieldValue ( int32_t  slot  )  [inline, protected, virtual]
template<typename T >
uint32_t fesa::Field< T >::getFieldValueSize (  )  [inline, protected, virtual]

Method to get the size of the field-value object. The template of the field-value class depends on the field type.

Returns:
the size in bytes of the field value object.

Implements fesa::AbstractField.

Definition at line 103 of file Field.h.

References fesa::AbstractField::buffer_, and fesa::AbstractField::valueSize_.

template<typename T >
void fesa::Field< T >::getValueToStore ( int32_t  slot,
std::string &  str 
) [inline, protected, virtual]
template<typename T >
void fesa::Field< T >::setFieldValueAddress ( char *  pFV,
bool  initFieldsFlag 
) [inline, protected, virtual]

Maps an address in shared memory or on the heap to the field value member of the field class.

Parameters:
pFV pointer to a field value.

Implements fesa::AbstractField.

Definition at line 111 of file Field.h.

References fesa::AbstractField::buffer_, FesaErrorSettingFieldValueAddress, fesa::Field< T >::fieldValue_, fesa::AbstractMultiplexingManager::getDepth(), fesa::AbstractField::multiplexingManager_, fesa::AbstractField::name_, and fesa::AbstractField::valueSize_.


Member Data Documentation

template<typename T>
FieldValue<T>* fesa::Field< T >::fieldValue_ [protected]

The documentation for this class was generated from the following file:

Generated on 18 Jan 2013 for Fesa by  doxygen 1.6.1