ATLAS Offline Software
IOVMetaDataContainerCnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
9 #include "CoralBase/Date.h"
10 #include "CoralBase/TimeStamp.h"
11 //#include "CoralBase/AttributeListSpecification.h"
12 
13 void
15  IOVMetaDataContainer* transObj,
16  MsgStream &log)
17 {
18 
19  log << MSG::DEBUG << "IOVMetaDataContainerCnv_p1::persToTrans - entering "
20  << endmsg;
21 
22  // copy foldername and description
23  transObj->setFolderName (persObj->m_folderName);
24  transObj->setFolderDescription (persObj->m_folderDescription);
25 
26  // convert payload
27  m_payloadCnv.persToTrans(&(persObj->m_payload), transObj->m_payload, log);
28 }
29 
30 void
32  IOVMetaDataContainer_p1* persObj,
33  MsgStream &log)
34 {
35 
36  // copy foldername and description
37  persObj->m_folderName = transObj->folderName();
38  persObj->m_folderDescription = transObj->folderDescription();
39 
40  // convert payload
41  m_payloadCnv.transToPers(transObj->payloadContainer(), &(persObj->m_payload), log);
42 }
IOVPayloadContainer.h
This class is a container for the payload of conditions data. It is intended to be used to store cond...
IOVMetaDataContainer::payloadContainer
const IOVPayloadContainer * payloadContainer() const
Access to payload container.
Definition: IOVMetaDataContainer.h:141
IOVMetaDataContainer
This class is a container for conditions data. It is intended to be used to store conditions data fro...
Definition: IOVMetaDataContainer.h:37
IOVMetaDataContainer::folderDescription
const std::string & folderDescription() const
Folder description.
Definition: IOVMetaDataContainer.h:134
IOVMetaDataContainer::folderName
const std::string & folderName() const
Folder name.
Definition: IOVMetaDataContainer.h:127
IOVMetaDataContainer::setFolderName
void setFolderName(const std::string &folderName)
Set folder name.
Definition: IOVMetaDataContainer.h:148
IOVMetaDataContainer_p1
This class is a container_p1 for conditions data. It is intended to be used to store conditions data ...
Definition: IOVMetaDataContainer_p1.h:37
IOVMetaDataContainerCnv_p1::persToTrans
virtual void persToTrans(const IOVMetaDataContainer_p1 *persObj, IOVMetaDataContainer *transObj, MsgStream &log)
Definition: IOVMetaDataContainerCnv_p1.cxx:14
IOVMetaDataContainer_p1::m_folderName
std::string m_folderName
Definition: IOVMetaDataContainer_p1.h:42
IOVPayloadContainerCnv_p1::persToTrans
virtual void persToTrans(const IOVPayloadContainer_p1 *persObj, IOVPayloadContainer *transObj, MsgStream &log)
Definition: IOVPayloadContainerCnv_p1.cxx:17
IOVMetaDataContainer_p1::m_payload
IOVPayloadContainer_p1 m_payload
Definition: IOVMetaDataContainer_p1.h:44
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
IOVMetaDataContainer_p1.h
This class is a container for conditions data. It is intended to be used to store conditions data fro...
IOVMetaDataContainer.h
This class is a container for conditions data. It is intended to be used to store conditions data fro...
IOVMetaDataContainer::m_payload
IOVPayloadContainer * m_payload
Definition: IOVMetaDataContainer.h:85
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
IOVMetaDataContainer::setFolderDescription
void setFolderDescription(const std::string &description)
Set description.
Definition: IOVMetaDataContainer.h:155
IOVMetaDataContainerCnv_p1::m_payloadCnv
IOVPayloadContainerCnv_p1 m_payloadCnv
Definition: IOVMetaDataContainerCnv_p1.h:26
IOVMetaDataContainer_p1::m_folderDescription
std::string m_folderDescription
Definition: IOVMetaDataContainer_p1.h:43
IOVMetaDataContainerCnv_p1.h
IOVMetaDataContainerCnv_p1::transToPers
virtual void transToPers(const IOVMetaDataContainer *transObj, IOVMetaDataContainer_p1 *persObj, MsgStream &log)
Definition: IOVMetaDataContainerCnv_p1.cxx:31
IOVPayloadContainerCnv_p1::transToPers
virtual void transToPers(const IOVPayloadContainer *transObj, IOVPayloadContainer_p1 *persObj, MsgStream &log)
Definition: IOVPayloadContainerCnv_p1.cxx:213