ATLAS Offline Software
Loading...
Searching...
No Matches
IOVPayloadContainerCnv_p1.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef IOVDBDATAMODEL_IOVPAYLOADCONTAINERCNV_P1_H
6#define IOVDBDATAMODEL_IOVPAYLOADCONTAINERCNV_P1_H
7
8
9//<<<<<< INCLUDES >>>>>>
11#include "CoralBase/AttributeList.h"
14
15class MsgStream;
16class AttrListIndexes;
17
18class IOVPayloadContainerCnv_p1 : public T_AthenaPoolTPCnvBase<IOVPayloadContainer, IOVPayloadContainer_p1> {
19public:
21 virtual void persToTrans(const IOVPayloadContainer_p1* persObj,
22 IOVPayloadContainer* transObj, MsgStream &log);
23 virtual void transToPers(const IOVPayloadContainer* transObj,
24 IOVPayloadContainer_p1* persObj, MsgStream &log);
25private:
26 void fillPersAttrSpec(const IOVPayloadContainer* transObj,
27 IOVPayloadContainer_p1* persObj, MsgStream &log);
28
30
31 void fillAttributeData(unsigned int attrName,
32 unsigned int attrType,
33 const coral::Attribute& attr,
35 MsgStream & log);
36
37 void fillAttributeData(const IOVPayloadContainer_p1* persObj,
39 const std::string& name,
40 coral::AttributeList& attrList,
41 MsgStream & log);
42
43
44 // AttributeList map from attribute name to type index
45 typedef std::map<std::string, unsigned int>::value_type attrNameMapValue_t;
46 std::map<std::string, unsigned int> m_attrNameMap;
47
48 // Attribute types
49 std::map<std::string, unsigned int> m_attributeTypeMap;
50 std::vector<std::string> m_attributeTypes;
51
53
54};
55
56#endif
This class is a container for the payload of conditions data.
This class is the persistent version of a container for the payload of conditions data.
TPConverterBase< TRANS, PERS > T_AthenaPoolTPCnvBase
Indexes to attribute name, type name and object value for the persistent storage of an attribute list...
std::vector< std::string > m_attributeTypes
std::map< std::string, unsignedint >::value_type attrNameMapValue_t
virtual void persToTrans(const IOVPayloadContainer_p1 *persObj, IOVPayloadContainer *transObj, MsgStream &log)
std::map< std::string, unsigned int > m_attrNameMap
void fillAttributeData(unsigned int attrName, unsigned int attrType, const coral::Attribute &attr, IOVPayloadContainer_p1 *persObj, MsgStream &log)
unsigned int m_objIndexOffset[IOVPayloadContainer_p1::ATTR_TIME_STAMP+1]
void fillPersAttrSpec(const IOVPayloadContainer *transObj, IOVPayloadContainer_p1 *persObj, MsgStream &log)
std::map< std::string, unsigned int > m_attributeTypeMap
virtual void transToPers(const IOVPayloadContainer *transObj, IOVPayloadContainer_p1 *persObj, MsgStream &log)
This class is a container for the payload of conditions data.
Definition index.py:1