ATLAS Offline Software
Loading...
Searching...
No Matches
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
20#include <tuple>
21
22
23namespace AthenaPoolCnvSvc {
24
25
29template <class CNV, class TRANS, class ... TPCNVS>
31{
32public:
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
66private:
69};
70
71
72} // namespace AthenaPoolCnvSvc
73
74
76
77
78#endif // not ATHENAPOOLCNVSVC_TPCNVLIST_H
79
80
Helper for calling a TP converter from an Athena converter.
Helper for calling TP converters from an Athena converter.
Definition TPCnvList.h:31
std::tuple< TPCnvElt< CNV, TPCNVS >... > list_t
Definition TPCnvList.h:33
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.
list_t m_list
List of TP converter instances, wrapped by TPCnvElt.
Definition TPCnvList.h:68
bool persToTrans(CNV &parent, TRANS *trans, const Token *token, const std::string &key, MsgStream &msg)
Read the persistent object and convert it to transient.
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition Token.h:22
MsgStream & msg
Definition testRead.cxx:32