ATLAS Offline Software
IOVMetaDataContainer.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef IOVDBDATAMODEL_IOVMETADATACONTAINER_H
6 #define IOVDBDATAMODEL_IOVMETADATACONTAINER_H
7 
21 #include "GaudiKernel/ClassID.h"
23 
24 #include <string>
25 #include <vector>
26 #include <sstream>
27 
29 
38  public:
39 
41 
43  IOVMetaDataContainer(const std::string& folderName
44  , const std::string& folderDescription);
49 
51 
52 
54  const std::string& folderName () const;
55 
57  const std::string& folderDescription () const;
58 
60  const IOVPayloadContainer* payloadContainer () const;
61 
63 
64  void setFolderName (const std::string& folderName);
66 
68  void setFolderDescription (const std::string& description);
69 
73 
75 
77  void dump(std::ostringstream& stream) const;
78 
79  private:
82 
83  std::string m_folderName;
84  std::string m_folderDescription;
86 };
87 
88 
89 inline
91  : m_payload(new IOVPayloadContainer())
92 {
93 }
94 
95 inline
97  , const std::string& folderDescription)
98  : m_folderName(folderName)
99  , m_folderDescription(folderDescription)
100  , m_payload(new IOVPayloadContainer())
101 {
102 }
103 
104 inline
106  : m_folderName(cont.m_folderName)
107  , m_folderDescription(cont.m_folderDescription)
108  , m_payload(new IOVPayloadContainer(*(cont.m_payload)))
109 {
110 }
111 
112 inline
115 {
116  if (this != &cont) {
117  delete m_payload;
118  m_payload = new IOVPayloadContainer(*(cont.m_payload));
119  m_folderName = cont.m_folderName;
121  }
122  return *this;
123 }
124 
125 inline
126 const std::string&
128 {
129  return (m_folderName);
130 }
131 
132 inline
133 const std::string&
135 {
136  return (m_folderDescription);
137 }
138 
139 inline
140 const IOVPayloadContainer*
142 {
143  return (m_payload);
144 }
145 
146 inline
147 void
149 {
151 }
152 
153 inline
154 void
156 {
158 }
159 
160 #include "AthenaKernel/CLASS_DEF.h"
161 CLASS_DEF( IOVMetaDataContainer , 1316383046 , 1 )
162 #include "AthenaKernel/MetaCont.h"
163 CLASS_DEF( MetaCont<IOVMetaDataContainer> , 1158158193 , 1 )
164 #include "AthenaKernel/BaseInfo.h"
166 
167 #endif //
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::merge
bool merge(CondAttrListCollection *payload)
Add in new payload.
Definition: IOVMetaDataContainer.cxx:14
CSV_InDetExporter.new
new
Definition: CSV_InDetExporter.py:145
IOVMetaDataContainer::operator=
IOVMetaDataContainer & operator=(const IOVMetaDataContainer &cont)
Definition: IOVMetaDataContainer.h:114
IOVMetaDataContainer::IOVMetaDataContainer
IOVMetaDataContainer()
Definition: IOVMetaDataContainer.h:90
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
MetaContBase
Definition: MetaCont.h:24
IOVMetaDataContainer::m_folderDescription
std::string m_folderDescription
Definition: IOVMetaDataContainer.h:84
MetaCont
Definition: MetaCont.h:48
IOVMetaDataContainer::~IOVMetaDataContainer
~IOVMetaDataContainer()
Definition: IOVMetaDataContainer.cxx:8
IOVPayloadContainer
IOVPayloadContainer
Definition: IOVDbTPCnv.cxx:20
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
IOVMetaDataContainerPTCnv_p1
Definition: IOVMetaDataContainerPTCnv_p1.h:21
SG_BASE
SG_BASE(MetaCont< IOVMetaDataContainer >, MetaContBase)
CaloCellTimeCorrFiller.folderName
string folderName
Definition: CaloCellTimeCorrFiller.py:20
IOVMetaDataContainer::dump
void dump(std::ostringstream &stream) const
Dump the content.
Definition: IOVMetaDataContainer.cxx:19
IOVMetaDataContainer::m_folderName
std::string m_folderName
Definition: IOVMetaDataContainer.h:83
PixelModuleFeMask_create_db.payload
string payload
Definition: PixelModuleFeMask_create_db.py:69
IOVMetaDataContainer::m_payload
IOVPayloadContainer * m_payload
Definition: IOVMetaDataContainer.h:85
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
IOVMetaDataContainer::setFolderDescription
void setFolderDescription(const std::string &description)
Set description.
Definition: IOVMetaDataContainer.h:155
IOVMetaDataContainerCnv_p1
Definition: IOVMetaDataContainerCnv_p1.h:17
CLASS_DEF.h
macros to associate a CLID to a type
description
std::string description
glabal timer - how long have I taken so far?
Definition: hcg.cxx:88