fesa-core  4.3.1
fesa::DataStoreElementImpl Class Reference

Implementation of abstract class DataStoreElement. More...

#include <DataStoreElementImpl.h>

Inheritance diagram for fesa::DataStoreElementImpl:
fesa::DataStoreElement fesa::DeviceElement fesa::DeviceElementImpl

Public Member Functions

 DataStoreElementImpl (const std::string &xpath, boost::shared_ptr< ElementXML > dataStoreElement, const ParserElementFactory &parserElementFactory)
 
const std::string & getDataStoreName () const
 returns name of the data store, presented by this data-store-element More...
 
bool isFieldElement (const std::string &fieldName) const
 returns true, if a field-element of the name "fieldName" was defined for this data-store in the instantiation-file More...
 
boost::shared_ptr< FieldElement > getFieldElement (const std::string &fieldName) const
 returns the requested field-element, if available. Throws an exception if the FieldElement is not found More...
 

Protected Member Functions

 DataStoreElementImpl ()
 used for mocking
 

Protected Attributes

std::string name_
 name of the data-store, which is represented by this element
 
boost::optional< int64_t > id_
 

Detailed Description

Implementation of abstract class DataStoreElement.

Constructor & Destructor Documentation

fesa::DataStoreElementImpl::DataStoreElementImpl ( const std::string &  xpath,
boost::shared_ptr< ElementXML dataStoreElement,
const ParserElementFactory &  parserElementFactory 
)
Parameters
xpathxpath which leads to the dataStoreElement
dataStoreElementhere the data-store related information comes from
parserElementFactoryfactory to create sub-classes of the instantiation element class-tree

Member Function Documentation

const std::string & fesa::DataStoreElementImpl::getDataStoreName ( ) const
virtual

returns name of the data store, presented by this data-store-element

Returns
name of the data store

Implements fesa::DataStoreElement.

boost::shared_ptr< FieldElement > fesa::DataStoreElementImpl::getFieldElement ( const std::string &  fieldName) const
virtual

returns the requested field-element, if available. Throws an exception if the FieldElement is not found

Parameters
fieldNamefieldName used for the search
Returns
the requested fieldElement

Implements fesa::DataStoreElement.

bool fesa::DataStoreElementImpl::isFieldElement ( const std::string &  fieldName) const
virtual

returns true, if a field-element of the name "fieldName" was defined for this data-store in the instantiation-file

Parameters
fieldNamename of the field to check
Returns
true, if fieldElement is defined

Implements fesa::DataStoreElement.

Member Data Documentation

boost::optional<int64_t> fesa::DataStoreElementImpl::id_
protected

Optional unique identifier of the data-store.


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