ATLAS Offline Software
Loading...
Searching...
No Matches
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
21
23
24/*
25 * POOL namespace declaration
26 */
27namespace pool {
28
29 // Forward declarations
30 class DbDomainObj;
31 class IOODatabase;
32
47 class DbSessionObj : public DbAccessObj<DbType, DbDomainObj>, public AthMessaging {
48 private:
50 std::map<DbType, IOODatabase*> m_dbTypes;
51 public:
55 virtual ~DbSessionObj();
57 IOODatabase* db(const DbType& typ) ;
62 };
63} // End namespace pool
64#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.
DbStatus close()
Close Database session.
DbSessionObj()
Standard constructor.
DbStatus open()
Open session.
virtual ~DbSessionObj()
Standard destructor.
IOODatabase * db(const DbType &typ)
Allow access to the Database implementation.
This class is highly inspired by the error code distribution system as it is used in DEC/VMS or MS/WN...
Definition DbStatus.h:64
pool namespace
Definition libname.h:15