|
ATLAS Offline Software
|
Go to the documentation of this file.
12 #ifndef POOL_DBSTATUS_H
13 #define POOL_DBSTATUS_H 1
128 {
m_code = (lvl&
Error)+((fac&0x0FFF)<<16)+(cod&0xFFFF); }
130 {
return a.m_code <
b.m_code; }
132 {
return a.m_code <
b.m_code; }
135 #endif // POOL_DBSTATUS_H
unsigned int facility() const
Access facility code.
static unsigned int info()
Access bit mask field for Informational messages.
DbStatus & operator=(const DbStatus &)=default
@ u
Enums for curvilinear frames.
bool operator>(const DbStatus &a, const DbStatus &b)
bool isInfo() const
Check if the return code indicated an informational message.
unsigned int code() const
Access error code value.
bool isWarning() const
Check if the return code indicated a warning.
~DbStatus()=default
Default destructor. Non virtual for performance reasons. Do NOT inherit.
bool operator<(const DbStatus &a, const DbStatus &b)
bool isError() const
Check if the return code indicated an error.
static unsigned int error()
Access bit mask field for Error messages.
bool isSuccess() const
Check if the return code indicated success.
friend bool operator>(const DbStatus &a, const DbStatus &b)
Comparison operator greater.
unsigned int severity() const
Access severity code.
static unsigned int warning()
Access bit mask field for Warning messages.
unsigned int reserved() const
Access the reserved bits.
friend bool operator<(const DbStatus &a, const DbStatus &b)
Comparison operator lesser.
unsigned int value() const
Acces fully encoded value.
DbStatus(unsigned int code)
Standard constructor with initialization from long value.
DbStatus(const DbStatus &)=default
Default copy constructor.
DbStatus & operator=(unsigned int value)
Assignment operator.
DbStatus()
Standard Constructor. Defaults to Error.
static unsigned int success()
Access bit mask field for Success messages.