Common base class for GlobalDeviceElement, DeviceElement and DomainStoreElement. More...
#include <ParserElements.h>
Public Member Functions | |
DataStoreElement (std::string name) | |
constructor | |
~DataStoreElement () | |
destructor | |
FieldElement * | getFieldElement (const std::string fieldName) |
returns the fieldElement whose name is passed as a parameter | |
const std::map< std::string, FieldElement * > & | getFieldElementMap () |
the map <fieldName,FieldElement> | |
const std::string & | getFieldValue (const std::string fieldName) |
returns the value of the field whose name is passed as a parameter | |
void | addFieldElement (FieldElement *fieldElement) |
this method adds a new field to the list | |
void | setFieldValue (const std::string fieldName, const std::string fieldValue) |
this method changes the value of a particular field | |
const std::string & | getName () |
int32_t | getSize () |
const std::string & | getTimingDomain () |
returns the timing domain of the device | |
const std::string & | getTimingCriterion () |
bool | isMultiplexed () |
Private Attributes | |
std::map< std::string, FieldElement * > | fieldElements_ |
list of fields <fieldName,fieldElement> |
Common base class for GlobalDeviceElement, DeviceElement and DomainStoreElement.
Definition at line 150 of file ParserElements.h.
fesa::DataStoreElement::DataStoreElement | ( | std::string | name | ) |
constructor
name | of the data store |
Definition at line 72 of file ParserElements.cpp.
References setFieldValue().
fesa::DataStoreElement::~DataStoreElement | ( | ) |
void fesa::DataStoreElement::addFieldElement | ( | FieldElement * | fieldElement | ) |
this method adds a new field to the list
fieldElement | the field to add |
Definition at line 126 of file ParserElements.cpp.
References fieldElements_, and fesa::FieldElement::fieldName_.
Referenced by fesa::StoreManager::fillElements(), fesa::InitializeDataStoreManager::processDeviceFields(), fesa::InitializeDataStoreManager::retrieveDomainStoreElements(), and fesa::InitializeDataStoreManager::retrieveGlobalDeviceElement().
FieldElement * fesa::DataStoreElement::getFieldElement | ( | const std::string | fieldName | ) |
returns the fieldElement whose name is passed as a parameter
fieldName | name of the field to look for |
Definition at line 87 of file ParserElements.cpp.
References fieldElements_.
Referenced by fesa::DeviceFactoryImp< GlobalDeviceType, DomainStoreType, DevInstType >::configureFields(), fesa::DataStore::initializeFromElement(), and fesa::DataStore::restoreFromElement().
const std::map< std::string, FieldElement * > & fesa::DataStoreElement::getFieldElementMap | ( | ) |
the map <fieldName,FieldElement>
Definition at line 98 of file ParserElements.cpp.
References fieldElements_.
const std::string & fesa::DataStoreElement::getFieldValue | ( | const std::string | fieldName | ) |
returns the value of the field whose name is passed as a parameter
fieldName | name of the field to retrieve the value from |
Definition at line 103 of file ParserElements.cpp.
References FesaErrorDataStoreElementRetrievingFieldValue, fieldElements_, and fesa::FieldElement::fieldValuesCol_.
Referenced by fesa::DeviceElement::getAccelerator(), fesa::GlobalDeviceElement::getClassName(), fesa::DeviceElement::getDescription(), fesa::GlobalDeviceElement::getDescription(), fesa::DomainStoreElement::getMultiplexingCriterion(), getName(), getTimingCriterion(), fesa::DomainStoreElement::getTimingDomain(), getTimingDomain(), and fesa::DeviceElement::isMultiplexed().
const std::string & fesa::DataStoreElement::getName | ( | ) |
Definition at line 163 of file ParserElements.cpp.
References getFieldValue().
int32_t fesa::DataStoreElement::getSize | ( | ) |
Definition at line 168 of file ParserElements.cpp.
References fieldElements_.
const std::string & fesa::DataStoreElement::getTimingCriterion | ( | ) |
Definition at line 177 of file ParserElements.cpp.
References getFieldValue().
Referenced by fesa::DeviceFactoryImp< GlobalDeviceType, DomainStoreType, DevInstType >::configureFields(), and isMultiplexed().
const std::string & fesa::DataStoreElement::getTimingDomain | ( | ) |
returns the timing domain of the device
Reimplemented in fesa::DomainStoreElement.
Definition at line 173 of file ParserElements.cpp.
References getFieldValue().
Referenced by fesa::DeviceFactoryImp< GlobalDeviceType, DomainStoreType, DevInstType >::configureFields(), and isMultiplexed().
bool fesa::DataStoreElement::isMultiplexed | ( | ) |
Reimplemented in fesa::DeviceElement.
Definition at line 182 of file ParserElements.cpp.
References getTimingCriterion(), and getTimingDomain().
Referenced by fesa::DeviceFactoryImp< GlobalDeviceType, DomainStoreType, DevInstType >::configureFields().
void fesa::DataStoreElement::setFieldValue | ( | const std::string | fieldName, | |
const std::string | fieldValue | |||
) |
this method changes the value of a particular field
fieldName | name of the field | |
fieldValue | new value for the field |
Definition at line 139 of file ParserElements.cpp.
References fieldElements_, fesa::FieldElement::fieldName_, and fesa::FieldElement::fieldValuesCol_.
Referenced by DataStoreElement().
std::map<std::string, FieldElement*> fesa::DataStoreElement::fieldElements_ [private] |
list of fields <fieldName,fieldElement>
Definition at line 229 of file ParserElements.h.
Referenced by addFieldElement(), getFieldElement(), getFieldElementMap(), getFieldValue(), getSize(), setFieldValue(), and ~DataStoreElement().