ATLAS Offline Software
DataHeaderCnv_p4.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 PERSISTENTDATAMODELTPCNV_DATAHEADERCNV_P4_H
6 #define PERSISTENTDATAMODELTPCNV_DATAHEADERCNV_P4_H
7 
17 
22 public:
24  virtual ~DataHeaderElementCnv_p4();
25 
26  void persToTrans(const DataHeaderElement_p4* pers, DataHeaderElement* trans, const std::vector<std::string>& map);
27  void transToPers(const DataHeaderElement* trans, DataHeaderElement_p4* pers, std::vector<std::string>& map);
28 
29 friend class DataHeaderCnv_p4;
30 };
31 
36 public:
38  virtual ~DataHeaderCnv_p4();
39 
40  DataHeader* createTransient(const DataHeader_p4* persObj);
41  void persToTrans(const DataHeader_p4* pers, DataHeader* trans);
42  DataHeader_p4* createPersistent(const DataHeader* transObj);
43  void transToPers(const DataHeader* trans, DataHeader_p4* pers);
44 
45  void insertDHRef(DataHeader_p4* pers, const std::string& key, const std::string& token);
46 
47 private:
49 };
50 
52  DataHeader* trans = new DataHeader();
53  persToTrans(persObj, trans);
54  return(trans);
55 }
57  DataHeader_p4* pers = new DataHeader_p4();
58  transToPers(transObj, pers);
59  return(pers);
60 }
61 
62 #endif
DataHeader_p4
This class provides a persistent representation for the DataHeader class.
Definition: DataHeader_p4.h:53
DataHeaderCnv_p4::insertDHRef
void insertDHRef(DataHeader_p4 *pers, const std::string &key, const std::string &token)
Definition: DataHeaderCnv_p4.cxx:119
DataHeaderCnv_p4::~DataHeaderCnv_p4
virtual ~DataHeaderCnv_p4()
Definition: DataHeaderCnv_p4.cxx:98
DataHeaderCnv_p4::transToPers
void transToPers(const DataHeader *trans, DataHeader_p4 *pers)
Definition: DataHeaderCnv_p4.cxx:115
DataHeaderCnv_p4::createPersistent
DataHeader_p4 * createPersistent(const DataHeader *transObj)
Definition: DataHeaderCnv_p4.h:56
DataHeaderCnv_p4::m_elemCnv
DataHeaderElementCnv_p4 m_elemCnv
Definition: DataHeaderCnv_p4.h:48
DataHeaderElementCnv_p4::~DataHeaderElementCnv_p4
virtual ~DataHeaderElementCnv_p4()
Definition: DataHeaderCnv_p4.cxx:18
DataHeaderElement
This class provides a persistent form for the TransientAddress.
Definition: DataHeader.h:36
DataHeaderElementCnv_p4::transToPers
void transToPers(const DataHeaderElement *trans, DataHeaderElement_p4 *pers, std::vector< std::string > &map)
Definition: DataHeaderCnv_p4.cxx:90
DataHeader
This class provides the layout for summary information stored for data written to POOL.
Definition: DataHeader.h:124
DataHeaderElementCnv_p4::persToTrans
void persToTrans(const DataHeaderElement_p4 *pers, DataHeaderElement *trans, const std::vector< std::string > &map)
Definition: DataHeaderCnv_p4.cxx:21
DataHeader.h
This file contains the class definition for the DataHeader and DataHeaderElement classes.
DataHeaderCnv_p4::createTransient
DataHeader * createTransient(const DataHeader_p4 *persObj)
Definition: DataHeaderCnv_p4.h:51
DataHeader_p4.h
This file contains the class definition for the DataHeader_p4 and DataHeaderElement_p4 classes.
DataHeaderCnv_p4
This class provides the converter to customize the saving of DataHeader_p4.
Definition: DataHeaderCnv_p4.h:35
DataHeaderElementCnv_p4::DataHeaderElementCnv_p4
DataHeaderElementCnv_p4()
Definition: DataHeaderCnv_p4.cxx:17
DataHeaderElementCnv_p4
This class provides the converter to customize the saving of DataHeaderElement_p4.
Definition: DataHeaderCnv_p4.h:21
DataHeaderElement_p4
This class provides a persistent representation for the DataHeaderElement class.
Definition: DataHeader_p4.h:21
DataHeaderCnv_p4::persToTrans
void persToTrans(const DataHeader_p4 *pers, DataHeader *trans)
Definition: DataHeaderCnv_p4.cxx:100
DataHeaderCnv_p4::DataHeaderCnv_p4
DataHeaderCnv_p4()
Definition: DataHeaderCnv_p4.cxx:97
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37