This class represents an abstraction of the underlying device by defining the common fields of the FESA class devices (instance device and global one). More...
#include <AbstractDevice.h>
Public Member Functions | |
virtual | ~AbstractDevice () |
destructor | |
virtual const std::string | getName () |
returns the device name | |
virtual bool | isMultiplexed () |
Public Attributes | |
ConfigFieldString | name |
contains the name of the device | |
ConfigFieldString | mainMuxCriterion |
multiplexing criterion of the device | |
ConfigFieldString | timingDomain |
base field holding the device timing-domain | |
bool * | isLoggable_ |
Protected Member Functions | |
AbstractDevice () | |
Initializes the common device fields. | |
virtual int32_t | getSizeOfAdditionalFields () |
Get the size related to non-Fesa-type fields. | |
virtual void | mapAdditionalFields (char *p) |
Map the non-Fesa-type fields. | |
virtual void | initialize () |
initializes the device |
This class represents an abstraction of the underlying device by defining the common fields of the FESA class devices (instance device and global one).
Definition at line 22 of file AbstractDevice.h.
fesa::AbstractDevice::~AbstractDevice | ( | ) | [virtual] |
destructor
Definition at line 28 of file AbstractDevice.cpp.
fesa::AbstractDevice::AbstractDevice | ( | ) | [protected] |
const std::string fesa::AbstractDevice::getName | ( | ) | [virtual] |
returns the device name
Definition at line 23 of file AbstractDevice.cpp.
References fesa::ConfigFieldString::get(), and name.
Referenced by fesa::AbstractRTAction::AbstractRTAction(), fesa::SubscriptionTreeManager::addSubscriber(), fesa::AbstractServerAction::checkInvalidatingFields(), fesa::ServerAction< DeviceType, DataType, FilterType >::execute(), fesa::AbstractServerEquipment::getDeviceClassFromDeviceName(), fesa::AbstractServerAction::notify(), fesa::SubscriptionTreeManager::removeSubscriber(), and fesa::StoreManager::store().
int32_t fesa::AbstractDevice::getSizeOfAdditionalFields | ( | ) | [protected, virtual] |
Get the size related to non-Fesa-type fields.
Reimplemented from fesa::DataStore.
Definition at line 38 of file AbstractDevice.cpp.
Referenced by mapAdditionalFields().
fesa::AbstractDevice::initialize | ( | ) | [protected, virtual] |
initializes the device
Reimplemented from fesa::DataStore.
Definition at line 14 of file AbstractDevice.cpp.
References isLoggable_.
bool fesa::AbstractDevice::isMultiplexed | ( | ) | [virtual] |
Definition at line 33 of file AbstractDevice.cpp.
References fesa::ConfigFieldString::get(), and mainMuxCriterion.
Referenced by fesa::AbstractRTAction::AbstractRTAction(), fesa::SubscriptionParameter::addSubscriber(), fesa::Property::validateCycleSelector(), and fesa::Property::validateParameters().
void fesa::AbstractDevice::mapAdditionalFields | ( | char * | p | ) | [protected, virtual] |
Map the non-Fesa-type fields.
Pointer | to the allocated memory |
Reimplemented from fesa::DataStore.
Definition at line 45 of file AbstractDevice.cpp.
References getSizeOfAdditionalFields(), and isLoggable_.
Definition at line 57 of file AbstractDevice.h.
Referenced by initialize(), fesa::FesaLogger::isEnabledFor(), and mapAdditionalFields().
multiplexing criterion of the device
Definition at line 46 of file AbstractDevice.h.
Referenced by fesa::AbstractSubscriptionFilter::allCyclesFirstUpdate(), isMultiplexed(), and fesa::Property::validateCycleSelector().
contains the name of the device
Definition at line 41 of file AbstractDevice.h.
Referenced by getName().
base field holding the device timing-domain
Definition at line 52 of file AbstractDevice.h.
Referenced by fesa::AbstractRTAction::AbstractRTAction(), fesa::AbstractSubscriptionFilter::allCyclesFirstUpdate(), and fesa::Property::validateCycleSelector().