![]() |
ATLAS Offline Software
|
Description: Definition an option to be supplied to database objects. More...
#include <StorageSvc/DbOption.h>
Classes | |
| union | Value |
Public Member Functions | |
| template<class T> | |
| DbOption (const std::string &nam, const std::string &opt, T value) | |
| Initializing constructor. | |
| DbOption (const std::string &nam, const std::string &opt="") | |
| Initializing constructor with type definition. | |
| const std::string & | option () const |
| Access to column name. | |
| const std::string & | name () const |
| Access to column name. | |
| DbColumn::Type | type () const |
| Integer type identifier. | |
| template<class T> | |
| StatusCode | setValue (T value) |
| Set the option value. | |
| template<class T> | |
| StatusCode | getValue (T &value) const |
| Read the option value. | |
| StatusCode | i_setValue (const std::type_info &typ, const void *value) |
| Set the option value. | |
| StatusCode | i_getValue (const std::type_info &typ, void *value) const |
| Read the option value. | |
| std::string | typeName () const |
| Access to OS independent type name. | |
Public Attributes | |
| Value | m_value {} |
| Buffer holding option value. | |
| DbColumn::Type | m_type |
| Option data type. | |
| std::string | m_name |
| Option name identifier. | |
| std::string | m_opt |
| Optional identifier. | |
Description: Definition an option to be supplied to database objects.
Note: For any pointer argument, values are not copied. The values must outlive the lifetime of the DbOption.
Definition at line 36 of file DbOption.h.
|
inline |
Initializing constructor.
Definition at line 58 of file DbOption.h.
|
inline |
|
inline |
Read the option value.
Definition at line 81 of file DbOption.h.
| StatusCode pool::DbOption::i_getValue | ( | const std::type_info & | typ, |
| void * | value ) const |
Read the option value.
| StatusCode pool::DbOption::i_setValue | ( | const std::type_info & | typ, |
| const void * | value ) |
Set the option value.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Access to OS independent type name.
Definition at line 91 of file DbOption.h.
| std::string pool::DbOption::m_name |
Option name identifier.
Definition at line 52 of file DbOption.h.
| std::string pool::DbOption::m_opt |
Optional identifier.
Definition at line 54 of file DbOption.h.
| DbColumn::Type pool::DbOption::m_type |
Option data type.
Definition at line 50 of file DbOption.h.
| Value pool::DbOption::m_value {} |