ATLAS Offline Software
Database
APR
PersistencySvc
src
PersistencySvc.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
#ifndef PERSISTENCYSVC_PERSISTENCYSVC
6
#define PERSISTENCYSVC_PERSISTENCYSVC
7
8
// includes
9
#include "
PersistencySvc/IPersistencySvc.h
"
10
11
namespace
pool
{
12
13
namespace
PersistencySvc {
14
// forward declarations
15
class
UserSession;
16
22
class
PersistencySvc
:
virtual
public
IPersistencySvc
{
23
public
:
25
explicit
PersistencySvc
(
IFileCatalog
& fileCatalog );
26
28
~PersistencySvc
();
29
30
PersistencySvc
(
const
PersistencySvc
&) =
delete
;
31
PersistencySvc
&
operator=
(
const
PersistencySvc
&) =
delete
;
32
/*
34
IFileCatalog& fileCatalog();
35
37
void setFileCatalog( IFileCatalog& catalog );
38
*/
51
void
*
readObject
(
const
Token
& token,
void
*
object
= 0 );
52
63
Token
*
registerForWrite
(
const
Placement
& place,
64
const
void
*
object
,
65
const
RootType
&
type
);
66
68
ISession
&
session
();
69
70
private
:
72
UserSession
*
m_session
;
73
74
};
75
}
76
}
77
78
#endif // PERSISTENCYSVC_PERSISTENCYSVC
pool::PersistencySvc::PersistencySvc::PersistencySvc
PersistencySvc(IFileCatalog &fileCatalog)
Constructor.
Placement
This class holds all the necessary information to guide the writing of an object in a physical place.
Definition:
Placement.h:19
pool::PersistencySvc::PersistencySvc::PersistencySvc
PersistencySvc(const PersistencySvc &)=delete
pool
pool namespace
Definition:
libname.h:15
IPersistencySvc.h
pool::PersistencySvc::PersistencySvc::~PersistencySvc
~PersistencySvc()
Destructor.
pool::ISession
Definition:
ISession.h:31
Token
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition:
Token.h:21
pool::PersistencySvc::PersistencySvc::operator=
PersistencySvc & operator=(const PersistencySvc &)=delete
pool::IFileCatalog
Definition:
IFileCatalog.h:23
pool::PersistencySvc::PersistencySvc::registerForWrite
Token * registerForWrite(const Placement &place, const void *object, const RootType &type)
registerForWrite registers an object for writing to the persistent medium higher level interactions w...
pool::PersistencySvc::PersistencySvc
Definition:
PersistencySvc.h:22
pool::PersistencySvc::UserSession
Definition:
UserSession.h:28
pool::PersistencySvc::PersistencySvc::session
ISession & session()
Returns the underlying global session.
pool::IPersistencySvc
Definition:
IPersistencySvc.h:31
pool::PersistencySvc::PersistencySvc::m_session
UserSession * m_session
The session object.
Definition:
PersistencySvc.h:72
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
TScopeAdapter
Definition:
RootType.h:119
pool::PersistencySvc::PersistencySvc::readObject
void * readObject(const Token &token, void *object=0)
Retrieves an object from persistent store and return with type information The handle to the reflecti...
Generated on Wed Jan 8 2025 21:15:14 for ATLAS Offline Software by
1.8.18