ATLAS Offline Software
Database
APR
StorageSvc
StorageSvc
DbObjectAccessor.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
//====================================================================
6
//
7
// @author M.Frank
8
//====================================================================
9
#ifndef POOL_DBOBJECTACCESSOR_H
10
#define POOL_DBOBJECTACCESSOR_H 1
11
12
#ifndef POOL_DBOBJECT_H
13
#error "The header file DbObjectAccessor can only be included by DbObject.h"
14
#endif
15
16
/*
17
* POOL namespace declaration
18
*/
19
namespace
pool
{
20
29
class
DbObjectAccessor
{
30
public
:
40
static
DbStatus
read
(
void
**
ptr
,
41
ShapeH
shape,
42
DbContainer
& cntH,
43
const
Token::OID_t
& oid );
44
46
static
const
DbContainer
&
containedIn
(
const
DbObject
* pObj);
47
49
static
Token::OID_t
&
objectOid
(
DbObject
*
ptr
);
50
52
static
const
Token::OID_t
&
objectOid
(
const
DbObject
*
ptr
);
53
55
static
DbStatus
makeObjectLink
ATLAS_NOT_THREAD_SAFE
56
(
const
DbObject
* pObj,
57
Token
* pToken,
58
Token::OID_t
& tokenH );
59
60
};
61
}
// End namespace pool
62
#endif // POOL_DBOBJECTACCESSOR_H
pool::DbObject
void DbObject
Definition:
Database/APR/StorageSvc/StorageSvc/pool.h:35
pool::DbStatus
Definition:
DbStatus.h:67
pool
pool namespace
Definition:
libname.h:15
dbg::ptr
void * ptr(T *p)
Definition:
SGImplSvc.cxx:74
pool::DbObjectAccessor::containedIn
static const DbContainer & containedIn(const DbObject *pObj)
Retrieve hosting container.
Token
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition:
Token.h:21
Token::OID_t
Definition:
Token.h:24
pool::ShapeH
const class Shape * ShapeH
Definition:
DbContainerObj.h:27
pool::DbObjectAccessor::ATLAS_NOT_THREAD_SAFE
static DbStatus makeObjectLink ATLAS_NOT_THREAD_SAFE(const DbObject *pObj, Token *pToken, Token::OID_t &tokenH)
Add persistent association entry.
pool::DbContainer
Definition:
DbContainer.h:51
pool::DbObjectAccessor::objectOid
static Token::OID_t & objectOid(DbObject *ptr)
Access object oid.
pool::DbObjectAccessor::read
static DbStatus read(void **ptr, ShapeH shape, DbContainer &cntH, const Token::OID_t &oid)
Read object from a container, using its OID.
pool::DbObjectAccessor
Db objects: class DbObjectAccessor.
Definition:
DbObjectAccessor.h:29
pool::DbObjectAccessor::objectOid
static const Token::OID_t & objectOid(const DbObject *ptr)
Access object oid.
Generated on Fri Jan 10 2025 21:09:09 for ATLAS Offline Software by
1.8.18