A specialized field for faults. This type of field is meant to indicate a fault or a problem in the system. It is a template class that can accept the FaultField_DataType type or its derived types as the template parameter.
More...
|
| FaultField (const FieldConfig &fieldConfig, DataStore *dataStore, const std::string &description, FaultSeverity::FaultSeverity severity, const OnFaultNotificationConfig &onFaultNotificationConfig) |
| Constructor. More...
|
|
void | initializeDefaultValue (const std::string &value) |
| Initialize the default value with a value provided in the instantiation file. More...
|
|
| GenericFieldStruct (const FieldConfig &fieldConfig, DataStore *pDataStore) |
| Constructor. More...
|
|
| ~GenericFieldStruct () |
| destructor
|
|
const DataType * | get (const MultiplexingContext *) const |
| Method to retrieve the value of the field. More...
|
|
fesa::wrappers::PointerWrapper
< DataType,
fesa::FieldCallback > | getMutable (const MultiplexingContext *context) |
|
void | set (const DataType *val, const MultiplexingContext *) |
| Method to set the new value of the pending buffer of the field. More...
|
|
virtual std::string | getAsString (const MultiplexingContext *context) const |
| Method to retrieve the value of the field converted to string. More...
|
|
virtual | ~AbstractField () |
| destructor
|
|
AbstractMultiplexingManager * | getMultiplexingManager () |
|
uint32_t | getMuxDepth () const |
|
bool | isMultiplexed () const |
|
const std::string & | getName () const |
|
FieldCategory | getType () const |
|
bool | isMultiMux () const |
|
bool | isPersistent () const |
|
bool | isShared () const |
|
std::string | getAttributeAsStringByName (const std::string &attribute, MultiplexingContext *context=NULL) |
| Method to retrieve the struct attribute value converted to string. More...
|
|
virtual void | raise (int64_t time, const MultiplexingContext *context, int32_t errorCode=0)=0 |
| Raise a fault explicitly supplying its time of occurrence. If the fault field is already raised, the call will not do anything. More...
|
|
virtual void | raise (const MultiplexingContext *context, int32_t errorCode=0)=0 |
| Raise a fault. The time of occurrence will be set to the current time during the call. If the fault field is already raised, the call will not do anything. More...
|
|
virtual void | lower (int64_t time, const MultiplexingContext *context)=0 |
| Lower the fault explicitly supplying its time of disappearance. If the fault field is not raised, the call will not do anything. More...
|
|
virtual void | lower (const MultiplexingContext *context)=0 |
| Lower the fault. The time of disappearance will be set to the current time during the call. If the fault field is not raised, the call will not do anything. More...
|
|
virtual void | setState (bool raised, int64_t time, const MultiplexingContext *context, int32_t errorCode=0)=0 |
| Set the state of the fault explicitly supplying its time of occurrence/disappearance. If the new state is the same as the previous one, the call will not do anything. More...
|
|
virtual void | setState (bool raised, const MultiplexingContext *context, int32_t errorCode=0)=0 |
| Set the state of the fault. The time of occurrence/disappearance will be set to the current time during the call. If the new state is the same as the previous one, the call will not do anything. More...
|
|
virtual bool | isRaised (const MultiplexingContext *context) const =0 |
| Get the fault's state. More...
|
|
virtual
FaultSeverity::FaultSeverity | getSeverity () const =0 |
| Get the severity of the fault.
|
|
virtual std::string | getDescription () const =0 |
| Get the description of the fault.
|
|
virtual int64_t | getTimestamp (const MultiplexingContext *context) const =0 |
| Get the timestamp of the last change of the fault's state (the time of occurrence/disappearance of the fault) More...
|
|
|
void | initializeSeverity (const std::string &value) |
| Initialize the severity with a value provided in the instantiation file. More...
|
|
virtual void | setFieldValueAddress (char *fieldValueAddress, bool initFieldsFlag) |
| Maps an address in shared memory or on the heap to the field value member of the field class. More...
|
|
std::size_t | getFieldValueSize () const |
| Method to get the size of the field-value object. The template of the field-value class depends on the field type. More...
|
|
FieldValue< DataType > * | getFieldValue (int32_t slot) |
| Get the field's value for a given slot. More...
|
|
void | copyValue (uint32_t slot, const std::string &val) |
| this method puts in the slot the value passed by parameter in the corresponding format More...
|
|
void | getValueToStore (int32_t slot, std::string &str) const |
|
void | getAttributeValueToStore (int32_t slot, const std::string &attribute, std::string &str) |
|
virtual void | initializeDimensions (const boost::shared_ptr< FieldElement > &fieldElement) |
| Used to initialize dimensions coming from the instantation. More...
|
|
void | setMultiplexingManager (AbstractMultiplexingManager *muxManager) |
| changes the multiplexing manager of the field. More...
|
|
void | setDataIntegrity (DataIntegrity dataIntegrity) |
| changes the data integrity value of the field
|
|
void | restore (const PersistanceFieldElement &fieldElement) |
| gives the value to the field from the field element This method should be used to populate the fields at instantiation More...
|
|
void | store (PersistanceFieldElement &fieldElement) |
| Used to persist fields. More...
|
|
| AbstractField (const FieldConfig &fieldConfig, DataStore *dataStore) |
| Constructor. More...
|
|
template<typename T > |
T * | getSlotPointer (void *baseAddress, std::size_t slot) |
|
template<typename T > |
const T * | getSlotPointer (const void *baseAddress, std::size_t slot) const |
|
template<typename T > |
void | validateValue (const T &value) const |
|
template<typename T > |
void | validateValues (const T *values, const std::size_t count) const |
|
void | setMultiMuxFlag (bool flag) |
| Changes multi-multiplexing status of the field to parameter value of flag. More...
|
|
void | setMultiplexed (bool multiplexed) |
| changes the multiplexing status
|
|
template<typename DataType>
class fesa::FaultField< DataType >
A specialized field for faults. This type of field is meant to indicate a fault or a problem in the system. It is a template class that can accept the FaultField_DataType type or its derived types as the template parameter.