ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
EventBookkeeperAthenaPool
src
EventBookkeeperCollectionCnv.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// Header file for EventBookkeeperCollectionCnv
7
// Author: David Cote, September 2008. <david.cote@cern.ch>
8
// This class defines which persitent version is used for writing, and how to handle various pN versions when reading.
10
11
#ifndef EVENTBOOKKEEPERCOLLECTIONCNV__H
12
#define EVENTBOOKKEEPERCOLLECTIONCNV__H
13
14
#include "
AthenaPoolCnvSvc/T_AthenaPoolCustomCnv.h
"
15
#include "
EventBookkeeperMetaData/EventBookkeeperCollection.h
"
16
#include "
EventBookkeeperTPCnv/EventBookkeeperCollection_p2.h
"
17
#include "
EventBookkeeperTPCnv/EventBookkeeperCollectionCnv_p1.h
"
18
#include "
EventBookkeeperTPCnv/EventBookkeeperCollectionCnv_p2.h
"
19
20
// the latest persistent representation type of EventBookkeeperCollection
21
typedef
EventBookkeeperCollection_p2
EventBookkeeperCollection_PERS
;
22
typedef
T_AthenaPoolCustomCnv<EventBookkeeperCollection, EventBookkeeperCollection_PERS >
EventBookkeeperCollectionCnvBase
;
23
24
class
EventBookkeeperCollectionCnv
:
public
EventBookkeeperCollectionCnvBase
25
{
26
friend
class
CnvFactory
<
EventBookkeeperCollectionCnv
>;
27
protected
:
28
public
:
29
EventBookkeeperCollectionCnv
(ISvcLocator* svcloc) :
EventBookkeeperCollectionCnvBase
(svcloc) {}
30
protected
:
31
virtual
EventBookkeeperCollection_PERS
*
createPersistent
(
EventBookkeeperCollection
* transCont);
32
virtual
EventBookkeeperCollection
*
createTransient
(
const
Token
* token);
33
34
// virtual TopLevelTPCnvBase* getTopLevelTPCnv() { return &m_TPConverter; }
35
36
private
:
37
EventBookkeeperCollectionCnv_p1
m_TPConverterP1
;
38
EventBookkeeperCollectionCnv_p2
m_TPConverter
;
39
};
40
41
#endif
// EVENTBOOKKEEPERCOLLECTIONCNV__H
42
EventBookkeeperCollectionCnvBase
T_AthenaPoolCustomCnv< EventBookkeeperCollection, EventBookkeeperCollection_PERS > EventBookkeeperCollectionCnvBase
Definition
EventBookkeeperCollectionCnv.h:22
EventBookkeeperCollection_PERS
EventBookkeeperCollection_p2 EventBookkeeperCollection_PERS
Definition
EventBookkeeperCollectionCnv.h:21
EventBookkeeperCollectionCnv_p1.h
EventBookkeeperCollectionCnv_p1
T_AthenaPoolTPCnvVector< EventBookkeeperCollection, EventBookkeeperCollection_p1, EventBookkeeperCnv_p1 > EventBookkeeperCollectionCnv_p1
Definition
EventBookkeeperCollectionCnv_p1.h:19
EventBookkeeperCollectionCnv_p2.h
EventBookkeeperCollectionCnv_p2
T_AthenaPoolTPCnvVector< EventBookkeeperCollection, EventBookkeeperCollection_p2, EventBookkeeperCnv_p2 > EventBookkeeperCollectionCnv_p2
Definition
EventBookkeeperCollectionCnv_p2.h:19
EventBookkeeperCollection.h
EventBookkeeperCollection_p2.h
T_AthenaPoolCustomCnv.h
his file contains the class definition for the templated T_AthenaPoolCustomCnv class.
CnvFactory
Abstract factory to create the converter.
Definition
ToyConverter.h:16
EventBookkeeperCollectionCnv::m_TPConverterP1
EventBookkeeperCollectionCnv_p1 m_TPConverterP1
Definition
EventBookkeeperCollectionCnv.h:37
EventBookkeeperCollectionCnv::createPersistent
virtual EventBookkeeperCollection_PERS * createPersistent(EventBookkeeperCollection *transCont)
Definition
EventBookkeeperCollectionCnv.cxx:14
EventBookkeeperCollectionCnv::createTransient
virtual EventBookkeeperCollection * createTransient(const Token *token)
Definition
EventBookkeeperCollectionCnv.cxx:20
EventBookkeeperCollectionCnv::m_TPConverter
EventBookkeeperCollectionCnv_p2 m_TPConverter
Definition
EventBookkeeperCollectionCnv.h:38
EventBookkeeperCollectionCnv::EventBookkeeperCollectionCnv
EventBookkeeperCollectionCnv(ISvcLocator *svcloc)
Definition
EventBookkeeperCollectionCnv.h:29
EventBookkeeperCollection_p2
Definition
EventBookkeeperCollection_p2.h:12
EventBookkeeperCollection
Definition
EventBookkeeperCollection.h:21
T_AthenaPoolCustomCnv
Compatibility for old converter classes that don't get passed the key.
Definition
T_AthenaPoolCustomCnv.h:129
Token
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition
Token.h:22
Generated on
for ATLAS Offline Software by
1.17.0