fesa::DataStoreElement Class Reference

Common base class for GlobalDeviceElement, DeviceElement and DomainStoreElement. More...

#include <ParserElements.h>

Inheritance diagram for fesa::DataStoreElement:
fesa::DeviceElement fesa::DomainStoreElement fesa::GlobalDeviceElement

List of all members.

Public Member Functions

 DataStoreElement (std::string name)
 constructor
 ~DataStoreElement ()
 destructor
FieldElementgetFieldElement (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>

Detailed Description

Common base class for GlobalDeviceElement, DeviceElement and DomainStoreElement.

Definition at line 150 of file ParserElements.h.


Constructor & Destructor Documentation

fesa::DataStoreElement::DataStoreElement ( std::string  name  ) 

constructor

Parameters:
name of the data store

Definition at line 72 of file ParserElements.cpp.

References setFieldValue().

fesa::DataStoreElement::~DataStoreElement (  ) 

destructor

Definition at line 77 of file ParserElements.cpp.

References fieldElements_.


Member Function Documentation

void fesa::DataStoreElement::addFieldElement ( FieldElement fieldElement  ) 
FieldElement * fesa::DataStoreElement::getFieldElement ( const std::string  fieldName  ) 

returns the fieldElement whose name is passed as a parameter

Returns:
the fieldElement
Parameters:
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>

Returns:
the map

Definition at line 98 of file ParserElements.cpp.

References fieldElements_.

const std::string & fesa::DataStoreElement::getFieldValue ( const std::string  fieldName  ) 
const std::string & fesa::DataStoreElement::getName (  ) 
Returns:
the name of the field

Definition at line 163 of file ParserElements.cpp.

References getFieldValue().

int32_t fesa::DataStoreElement::getSize (  ) 
Returns:
the size of the field

Definition at line 168 of file ParserElements.cpp.

References fieldElements_.

const std::string & fesa::DataStoreElement::getTimingCriterion (  ) 
Returns:
multiplexing criterion

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

Returns:
the timing domain

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 (  ) 
Returns:
true if the datastore is multiplexed

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

Parameters:
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().


Member Data Documentation

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().


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

Generated on 18 Jan 2013 for Fesa by  doxygen 1.6.1