ATLAS Offline Software
Loading...
Searching...
No Matches
DbSessionObj.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5//====================================================================
6// DbSessionObj object definition
7//--------------------------------------------------------------------
8//
9// Package : System (The POOL project)
10//
11// Description: Generic data persistency
12//
13// @author M.Frank
14//====================================================================
15#ifndef POOL_DBSESSIONOBJ_H
16#define POOL_DBSESSIONOBJ_H 1
17
18// Framework includes
20
22
23/*
24 * POOL namespace declaration
25 */
26namespace pool {
27
28 // Forward declarations
29 class DbDomainObj;
30 class IOODatabase;
31
46 class DbSessionObj : public DbAccessObj<DbType, DbDomainObj>, public AthMessaging {
47 private:
49 std::map<DbType, IOODatabase*> m_dbTypes;
50 public:
54 virtual ~DbSessionObj();
56 IOODatabase* db(const DbType& typ) ;
58 StatusCode open();
60 StatusCode close();
61 };
62} // End namespace pool
63#endif // POOL_DBSESSIONOBJ_H
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
DbAccessObj(const std::string &n, DbAccessMode m, const DbType &t, IOODatabase *s=0)
Definition DbAccessObj.h:70
Db objects: DbDomainObj.
Definition DbDomainObj.h:40
std::map< DbType, IOODatabase * > m_dbTypes
Known Implementation types.
DbSessionObj()
Standard constructor.
virtual ~DbSessionObj()
Standard destructor.
IOODatabase * db(const DbType &typ)
Allow access to the Database implementation.
StatusCode close()
Close Database session.
StatusCode open()
Open session.
pool namespace
Definition libname.h:15