#include <PersistencySvc/ITechnologySpecificAttributes.h>
|
template<class T > |
T | attribute (const std::string &attributeName, const std::string &option="") |
| Templated method to retrieve an attribute. More...
|
|
template<class T > |
bool | setAttribute (const std::string &attributeName, const T &atttibuteValue, const std::string &option="") |
| Templated method to set an attribute. More...
|
|
ITechnologySpecificAttributes is the interface for an object holding technology-specific attributes
Definition at line 22 of file ITechnologySpecificAttributes.h.
◆ ~ITechnologySpecificAttributes()
virtual pool::ITechnologySpecificAttributes::~ITechnologySpecificAttributes |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ attribute()
template<class T >
T pool::ITechnologySpecificAttributes::attribute |
( |
const std::string & |
attributeName, |
|
|
const std::string & |
option = "" |
|
) |
| |
|
inline |
Templated method to retrieve an attribute.
Definition at line 25 of file ITechnologySpecificAttributes.h.
28 const std::type_info& typeInfo =
typeid(
T);
30 static_cast< void*
>( &
data ),
33 std::ostringstream
error;
34 error <<
"Failed to retrieve attribute " << attributeName <<
" of type " << typeInfo.name();
35 throw std::runtime_error(
error.str() +
" (APR: \" ITechnologySpecificAttributes \" from \" PersistencySvc \")");
◆ attributeOfType()
virtual bool pool::ITechnologySpecificAttributes::attributeOfType |
( |
const std::string & |
attributeName, |
|
|
void * |
data, |
|
|
const std::type_info & |
typeInfo, |
|
|
const std::string & |
option |
|
) |
| |
|
protectedpure virtual |
◆ setAttribute()
template<class T >
bool pool::ITechnologySpecificAttributes::setAttribute |
( |
const std::string & |
attributeName, |
|
|
const T & |
atttibuteValue, |
|
|
const std::string & |
option = "" |
|
) |
| |
|
inline |
◆ setAttributeOfType()
virtual bool pool::ITechnologySpecificAttributes::setAttributeOfType |
( |
const std::string & |
attributeName, |
|
|
const void * |
data, |
|
|
const std::type_info & |
typeInfo, |
|
|
const std::string & |
option |
|
) |
| |
|
protectedpure virtual |
The documentation for this class was generated from the following file:
virtual bool setAttributeOfType(const std::string &attributeName, const void *data, const std::type_info &typeInfo, const std::string &option)=0
The actual method setting the attribute data given a name.
virtual bool attributeOfType(const std::string &attributeName, void *data, const std::type_info &typeInfo, const std::string &option)=0
The actual method returning the attribute data given a name.