![]() |
ATLAS Offline Software
|
Db objects: DbSessionObj. More...
#include <DbSessionObj.h>
Public Types | |
| typedef DbAccessObj< DbType, DbDomainObj > | Base |
| Type definitions. More... | |
| typedef std::map< DbType, DbDomainObj * > | Keys |
| typedef Keys::iterator | iterator |
| typedef Keys::const_iterator | const_iterator |
Public Member Functions | |
| DbSessionObj () | |
| Standard constructor. More... | |
| virtual | ~DbSessionObj () |
| Standard destructor. More... | |
| IOODatabase * | db (const DbType &typ) |
| Allow access to the Database implementation. More... | |
| DbStatus | open () |
| Open session. More... | |
| DbStatus | close () |
| Close Database session. More... | |
| const std::string & | name () const |
| Access the instance name. More... | |
| void | setName (const std::string &n) |
| Access the instance name. More... | |
| DbAccessMode | mode () const |
| Access mode. More... | |
| void | setMode (DbAccessMode m) |
| Set Access mode. More... | |
| const DbType & | type () const |
| const IOODatabase * | db () const |
| Allow access to the Database implementation. More... | |
| int | refCount () const |
| Access reference counter. More... | |
| int | addRef () const |
| Add reference count. More... | |
| int | release () const |
| Remove reference count. More... | |
| size_t | size () const |
| Object size. More... | |
| DbStatus | clearEntries () |
| Object cleanup: remove all entries. More... | |
| const DbDomainObj * | find (const DbType &key) const |
| Find object by key (CONST) More... | |
| DbDomainObj * | find (const DbType &key) |
| Find object by key. More... | |
| DbStatus | add (const DbType &key, DbDomainObj *val) |
| Add entry to container. More... | |
| DbStatus | remove (const DbDomainObj *val) |
| Remove entry from container. More... | |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| bool | msgLvl (const MSG::Level lvl) const |
| Test the output level. More... | |
| MsgStream & | msg () const |
| The standard message stream. More... | |
| MsgStream & | msg (const MSG::Level lvl) const |
| The standard message stream. More... | |
| void | setLevel (MSG::Level lvl) |
| Change the current logging level. More... | |
Private Member Functions | |
| void | initMessaging () const |
| Initialize our message level and MessageSvc. More... | |
Private Attributes | |
| std::map< DbType, IOODatabase * > | m_dbTypes |
| Known Implementation types. More... | |
| std::atomic< int > | m_refCount |
| Reference counter. More... | |
| DbAccessMode | m_mode |
| Access mode. More... | |
| std::string | m_name |
| Name of the instance. More... | |
| DbType | m_type |
| Database type. More... | |
| Keys | m_keys |
| Key entry buffer. More... | |
| IOODatabase * | m_pool |
| Pointer to specific pool implementation. More... | |
| std::string | m_nm |
| Message source name. More... | |
| boost::thread_specific_ptr< MsgStream > | m_msg_tls |
| MsgStream instance (a std::cout like with print-out levels) More... | |
| std::atomic< IMessageSvc * > | m_imsg { nullptr } |
| MessageSvc pointer. More... | |
| std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
| Current logging level. More... | |
| std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
| Messaging initialized (initMessaging) More... | |
Db objects: DbSessionObj.
Description: Implementation independent part of a Database session object.
There is a ring of protection around the object. The object can only be accessed through its handle, the technology dependent code and the DbDatabaseObj object hosting the container. This should ensure proper reference counting and inhibit non existing references flying around.
Definition at line 47 of file DbSessionObj.h.
|
inherited |
Type definitions.
Definition at line 50 of file DbAccessObj.h.
|
inherited |
Definition at line 53 of file DbAccessObj.h.
|
inherited |
Definition at line 52 of file DbAccessObj.h.
|
inherited |
Definition at line 51 of file DbAccessObj.h.
| pool::DbSessionObj::DbSessionObj | ( | ) |
Standard constructor.
|
virtual |
Standard destructor.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 163 of file DbAccessObj.h.
|
inlineinherited |
Definition at line 164 of file DbAccessObj.h.
|
inlineinherited |
| DbStatus pool::DbSessionObj::close | ( | ) |
Close Database session.
|
inlineinherited |
| IOODatabase* pool::DbSessionObj::db | ( | const DbType & | typ | ) |
Allow access to the Database implementation.
|
inlineinherited |
Definition at line 165 of file DbAccessObj.h.
|
inlineinherited |
Definition at line 166 of file DbAccessObj.h.
|
inlineinherited |
|
inlineinherited |
Find object by key (CONST)
Definition at line 132 of file DbAccessObj.h.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
inlineinherited |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 163 of file AthMessaging.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 178 of file AthMessaging.h.
|
inlineinherited |
Test the output level.
| lvl | The message level to test against |
| true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
|
inlineinherited |
| DbStatus pool::DbSessionObj::open | ( | ) |
Open session.
|
inlineinherited |
|
inlineinherited |
Remove reference count.
Definition at line 103 of file DbAccessObj.h.
|
inlineinherited |
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 84 of file DbAccessObj.h.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
private |
Known Implementation types.
Definition at line 50 of file DbSessionObj.h.
|
mutableprivateinherited |
MessageSvc pointer.
Definition at line 135 of file AthMessaging.h.
|
privateinherited |
Key entry buffer.
Definition at line 64 of file DbAccessObj.h.
|
mutableprivateinherited |
Current logging level.
Definition at line 138 of file AthMessaging.h.
|
privateinherited |
Access mode.
Definition at line 58 of file DbAccessObj.h.
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
privateinherited |
Name of the instance.
Definition at line 60 of file DbAccessObj.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
privateinherited |
Pointer to specific pool implementation.
Definition at line 66 of file DbAccessObj.h.
|
mutableprivateinherited |
Reference counter.
Definition at line 56 of file DbAccessObj.h.
|
privateinherited |
Database type.
Definition at line 62 of file DbAccessObj.h.
1.8.18