ATLAS Offline Software
Database
APR
StorageSvc
src
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
#include "
AthenaBaseComps/AthMessaging.h
"
23
24
/*
25
* POOL namespace declaration
26
*/
27
namespace
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
:
53
DbSessionObj
();
55
virtual
~DbSessionObj
();
57
IOODatabase
*
db
(
const
DbType
& typ) ;
59
DbStatus
open
();
61
DbStatus
close
();
62
};
63
}
// End namespace pool
64
#endif // POOL_DBSESSIONOBJ_H
pool::DbSessionObj::close
DbStatus close()
Close Database session.
pool::DbStatus
Definition:
DbStatus.h:64
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:50
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:30
AthMessaging
Class to provide easy MsgStream access and capabilities.
Definition:
AthMessaging.h:55
pool::DbSessionObj
Db objects: DbSessionObj.
Definition:
DbSessionObj.h:47
AthMessaging.h
pool::DbSessionObj::~DbSessionObj
virtual ~DbSessionObj()
Standard destructor.
pool::IOODatabase
Definition:
IOODatabase.h:50
Generated on Tue Nov 25 2025 21:08:52 for ATLAS Offline Software by
1.8.18