12#ifndef POOL_DBOPTION_H
13#define POOL_DBOPTION_H 1
17#include "GaudiKernel/StatusCode.h"
58 template <
class T>
DbOption(
const std::string& nam,
59 const std::string& opt,
65 DbOption(
const std::string& nam,
const std::string& opt=
"")
81 template<
class T> StatusCode
getValue(T& value)
const
85 StatusCode
i_setValue(
const std::type_info& typ,
const void* value);
88 StatusCode
i_getValue(
const std::type_info& typ,
void* value)
const;
Description: Definition of the generic column in a (relational) Database.
const std::string & typeName() const
Access to OS independent type name.
std::string m_name
Option name identifier.
Value m_value
Buffer holding option value.
const std::string & name() const
Access to column name.
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.
StatusCode getValue(T &value) const
Read the option value.
DbColumn::Type m_type
Option data type.
std::string typeName() const
Access to OS independent type name.
const std::string & option() const
Access to column name.
std::string m_opt
Optional identifier.
DbColumn::Type type() const
Integer type identifier.
StatusCode setValue(T value)
Set the option value.
DbOption(const std::string &nam, const std::string &opt="")
Initializing constructor with type definition.
DbOption(const std::string &nam, const std::string &opt, T value)
Initializing constructor.