ATLAS Offline Software
DbSessionObj.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // $Id: DbSessionObj.h 726071 2016-02-25 09:23:05Z krasznaa $
6 //====================================================================
7 // DbSessionObj object definition
8 //--------------------------------------------------------------------
9 //
10 // Package : System (The POOL project)
11 //
12 // Description: Generic data persistency
13 //
14 // @author M.Frank
15 //====================================================================
16 #ifndef POOL_DBSESSIONOBJ_H
17 #define POOL_DBSESSIONOBJ_H 1
18 
19 // Framework includes
20 #include "StorageSvc/DbAccessObj.h"
21 
22 /*
23  * POOL namespace declaration
24  */
25 namespace pool {
26 
27  // Forward declarations
28  class DbDomainObj;
29  class IOODatabase;
30 
45  class DbSessionObj : public DbAccessObj<DbType, DbDomainObj > {
46  private:
48  std::map<DbType, IOODatabase*> m_dbTypes;
49  public:
53  virtual ~DbSessionObj();
55  IOODatabase* db(const DbType& typ) ;
60  };
61 } // End namespace pool
62 #endif // POOL_DBSESSIONOBJ_H
pool::DbSessionObj::close
DbStatus close()
Close Database session.
pool::DbStatus
Definition: DbStatus.h:67
pool::DbSessionObj::DbSessionObj
DbSessionObj()
Standard constructor.
pool::DbSessionObj::db
IOODatabase * db(const DbType &typ)
Allow access to the Database implementation.
DbAccessObj.h
pool::DbSessionObj::m_dbTypes
std::map< DbType, IOODatabase * > m_dbTypes
Known Implementation types.
Definition: DbSessionObj.h:48
pool::DbSessionObj::open
DbStatus open()
Open session.
pool
pool namespace
Definition: libname.h:15
pool::DbAccessObj
Definition: DbAccessObj.h:47
pool::DbType
Definition: DbType.h:31
pool::DbSessionObj
Db objects: DbSessionObj.
Definition: DbSessionObj.h:45
pool::DbSessionObj::~DbSessionObj
virtual ~DbSessionObj()
Standard destructor.
pool::IOODatabase
Definition: IOODatabase.h:50