ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
AthenaPOOL
AthenaPoolCnvSvc
AthenaPoolCnvSvc
TPCnvList.h
Go to the documentation of this file.
1
// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3
/*
4
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
5
*/
6
13
14
15
#ifndef ATHENAPOOLCNVSVC_TPCNVLIST_H
16
#define ATHENAPOOLCNVSVC_TPCNVLIST_H
17
18
19
#include "
AthenaPoolCnvSvc/TPCnvElt.h
"
20
#include <tuple>
21
22
23
namespace
AthenaPoolCnvSvc
{
24
25
29
template
<
class
CNV,
class
TRANS,
class
... TPCNVS>
30
class
TPCnvList
31
{
32
public
:
33
using
list_t
= std::tuple<TPCnvElt<CNV, TPCNVS>...>;
34
35
47
std::unique_ptr<TRANS>
48
createTransient
(CNV& parent,
const
Token
* token,
const
std::string& key, MsgStream&
msg
);
49
50
63
bool
persToTrans
(CNV& parent, TRANS* trans,
const
Token
* token,
const
std::string& key, MsgStream&
msg
);
64
65
66
private
:
68
list_t
m_list
{};
69
};
70
71
72
}
// namespace AthenaPoolCnvSvc
73
74
75
#include "
AthenaPoolCnvSvc/TPCnvList.icc
"
76
77
78
#endif
// not ATHENAPOOLCNVSVC_TPCNVLIST_H
79
80
TPCnvElt.h
Helper for calling a TP converter from an Athena converter.
TPCnvList.icc
AthenaPoolCnvSvc::TPCnvList
Helper for calling TP converters from an Athena converter.
Definition
TPCnvList.h:31
AthenaPoolCnvSvc::TPCnvList::list_t
std::tuple< TPCnvElt< CNV, TPCNVS >... > list_t
Definition
TPCnvList.h:33
AthenaPoolCnvSvc::TPCnvList::createTransient
std::unique_ptr< TRANS > createTransient(CNV &parent, const Token *token, const std::string &key, MsgStream &msg)
Read the persistent object and convert it to transient.
AthenaPoolCnvSvc::TPCnvList::m_list
list_t m_list
List of TP converter instances, wrapped by TPCnvElt.
Definition
TPCnvList.h:68
AthenaPoolCnvSvc::TPCnvList::persToTrans
bool persToTrans(CNV &parent, TRANS *trans, const Token *token, const std::string &key, MsgStream &msg)
Read the persistent object and convert it to transient.
Token
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition
Token.h:22
AthenaPoolCnvSvc
Definition
Database/AthenaPOOL/AthenaPoolCnvSvc/AthenaPoolCnvSvc/debug.h:26
msg
MsgStream & msg
Definition
testRead.cxx:32
Generated on
for ATLAS Offline Software by
1.17.0