ATLAS Offline Software
IOVPayloadContainerPTCnv_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 IOVDBPTCNV_IOVPAYLOADCONTAINERPTCNV_P1_H
6 #define IOVDBPTCNV_IOVPAYLOADCONTAINERPTCNV_P1_H
7 
15 //<<<<<< INCLUDES >>>>>>
16 #include "CoralBase/AttributeList.h"
19 
20 class AttrListIndexes;
21 
23 public:
25  virtual void persToTrans(const IOVPayloadContainer_p1* persObj, IOVPayloadContainer* transObj);
26 
27 private:
28  void fillPersAttrSpec(const IOVPayloadContainer* transObj, IOVPayloadContainer_p1* persObj);
29 
30  void fillAttributeTypeMap();
31 
32  void fillAttributeData(unsigned int attrName,
33  unsigned int attrType,
34  const coral::Attribute& attr,
35  IOVPayloadContainer_p1* persObj);
36 
37  void fillAttributeData(const IOVPayloadContainer_p1* persObj,
38  const AttrListIndexes& index,
39  const std::string& name,
40  coral::AttributeList& attrList);
41 
42 
43  // AttributeList map from attribute name to type index
44  typedef std::map<std::string, unsigned int>::value_type attrNameMapValue_t;
45  std::map<std::string, unsigned int> m_attrNameMap;
46 
47  // Attribute types
48  std::map<std::string, unsigned int> m_attributeTypeMap;
49  std::vector<std::string> m_attributeTypes;
50 
52 
53 };
54 
55 #endif // IOVDBPTCNV_IOVPAYLOADCONTAINERPTCNV_P1_H
IOVPayloadContainerPTCnv_p1::m_attributeTypeMap
std::map< std::string, unsigned int > m_attributeTypeMap
Definition: IOVPayloadContainerPTCnv_p1.h:48
IOVPayloadContainer.h
This class is a container for the payload of conditions data. It is intended to be used to store cond...
AttrListIndexes
Indexes to attribute name, type name and object value for the persistent storage of an attribute list...
Definition: AttrListIndexes.h:20
IOVPayloadContainerPTCnv_p1::fillAttributeData
void fillAttributeData(unsigned int attrName, unsigned int attrType, const coral::Attribute &attr, IOVPayloadContainer_p1 *persObj)
Definition: IOVPayloadContainerPTCnv_p1.cxx:287
index
Definition: index.py:1
python.PyKernel.AttributeList
AttributeList
Definition: PyKernel.py:36
IOVPayloadContainer_p1.h
This class is the persistent version of a container for the payload of conditions data....
IOVPayloadContainerPTCnv_p1::fillAttributeTypeMap
void fillAttributeTypeMap()
Definition: IOVPayloadContainerPTCnv_p1.cxx:242
IOVPayloadContainerPTCnv_p1::m_objIndexOffset
unsigned int m_objIndexOffset[IOVPayloadContainer_p1::ATTR_TIME_STAMP+1]
Definition: IOVPayloadContainerPTCnv_p1.h:51
IOVPayloadContainer
This class is a container for the payload of conditions data. It is intended to be used to store cond...
Definition: IOVPayloadContainer.h:35
IOVPayloadContainer_p1
Definition: IOVPayloadContainer_p1.h:27
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
IOVPayloadContainerPTCnv_p1::m_attrNameMap
std::map< std::string, unsigned int > m_attrNameMap
Definition: IOVPayloadContainerPTCnv_p1.h:45
IOVPayloadContainerPTCnv_p1::attrNameMapValue_t
std::map< std::string, unsigned int >::value_type attrNameMapValue_t
Definition: IOVPayloadContainerPTCnv_p1.h:44
python.PoolAttributeHelper.attrName
attrName
Definition: PoolAttributeHelper.py:100
IOVPayloadContainerPTCnv_p1::fillPersAttrSpec
void fillPersAttrSpec(const IOVPayloadContainer *transObj, IOVPayloadContainer_p1 *persObj)
Definition: IOVPayloadContainerPTCnv_p1.cxx:188
IOVPayloadContainerPTCnv_p1::m_attributeTypes
std::vector< std::string > m_attributeTypes
Definition: IOVPayloadContainerPTCnv_p1.h:49
IOVPayloadContainerPTCnv_p1::IOVPayloadContainerPTCnv_p1
IOVPayloadContainerPTCnv_p1()
Definition: IOVPayloadContainerPTCnv_p1.cxx:21
IOVPayloadContainerPTCnv_p1
Definition: IOVPayloadContainerPTCnv_p1.h:22
IOVPayloadContainerPTCnv_p1::persToTrans
virtual void persToTrans(const IOVPayloadContainer_p1 *persObj, IOVPayloadContainer *transObj)
Definition: IOVPayloadContainerPTCnv_p1.cxx:26
IOVPayloadContainer_p1::ATTR_TIME_STAMP
@ ATTR_TIME_STAMP
Definition: IOVPayloadContainer_p1.h:48