ATLAS Offline Software
List of all members
IOVMetaDataContainer Class Reference

This class is a container for conditions data. It is intended to be used to store conditions data from COOL as file metadata. More...

#include <IOVMetaDataContainer.h>

Collaboration diagram for IOVMetaDataContainer:

Public Member Functions

structors
 IOVMetaDataContainer ()
 
 IOVMetaDataContainer (const std::string &folderName, const std::string &folderDescription)
 
 IOVMetaDataContainer (const IOVMetaDataContainer &cont)
 
IOVMetaDataContaineroperator= (const IOVMetaDataContainer &cont)
 
 ~IOVMetaDataContainer ()
 
Metadata information accessors
const std::string & folderName () const
 Folder name. More...
 
const std::string & folderDescription () const
 Folder description. More...
 
const IOVPayloadContainerpayloadContainer () const
 Access to payload container. More...
 

Metadata information setting

class IOVMetaDataContainerCnv_p1
 
class IOVMetaDataContainerPTCnv_p1
 
std::string m_folderName
 
std::string m_folderDescription
 
IOVPayloadContainerm_payload
 
void setFolderName (const std::string &folderName)
 Set folder name. More...
 
void setFolderDescription (const std::string &description)
 Set description. More...
 
bool merge (CondAttrListCollection *payload)
 Add in new payload. More...
 
void dump (std::ostringstream &stream) const
 Dump the content. More...
 

Detailed Description

This class is a container for conditions data. It is intended to be used to store conditions data from COOL as file metadata.

Definition at line 37 of file IOVMetaDataContainer.h.

Constructor & Destructor Documentation

◆ IOVMetaDataContainer() [1/3]

IOVMetaDataContainer::IOVMetaDataContainer ( )
inline

Definition at line 90 of file IOVMetaDataContainer.h.

92 {
93 }

◆ IOVMetaDataContainer() [2/3]

IOVMetaDataContainer::IOVMetaDataContainer ( const std::string &  folderName,
const std::string &  folderDescription 
)
inline

Definition at line 96 of file IOVMetaDataContainer.h.

◆ IOVMetaDataContainer() [3/3]

IOVMetaDataContainer::IOVMetaDataContainer ( const IOVMetaDataContainer cont)
inline

Definition at line 105 of file IOVMetaDataContainer.h.

106  : m_folderName(cont.m_folderName)
108  , m_payload(new IOVPayloadContainer(*(cont.m_payload)))
109 {
110 }

◆ ~IOVMetaDataContainer()

IOVMetaDataContainer::~IOVMetaDataContainer ( )

Definition at line 8 of file IOVMetaDataContainer.cxx.

9 {
10  delete (m_payload);
11 }

Member Function Documentation

◆ dump()

void IOVMetaDataContainer::dump ( std::ostringstream &  stream) const

Dump the content.

Definition at line 19 of file IOVMetaDataContainer.cxx.

20 {
21  stream << "IOVMetaDataContainer ::" << std::endl;
22  stream << "Payload size : " << m_payload->size() << std::endl;
23  stream << "IOVs and attribute lists : " << std::endl;
24 
25  for(CondAttrListCollection* attListCol : *m_payload ) {
26  attListCol->dump(stream);
27  }
28 }

◆ folderDescription()

const std::string & IOVMetaDataContainer::folderDescription ( ) const
inline

Folder description.

Definition at line 134 of file IOVMetaDataContainer.h.

135 {
136  return (m_folderDescription);
137 }

◆ folderName()

const std::string & IOVMetaDataContainer::folderName ( ) const
inline

Folder name.

Definition at line 127 of file IOVMetaDataContainer.h.

128 {
129  return (m_folderName);
130 }

◆ merge()

bool IOVMetaDataContainer::merge ( CondAttrListCollection payload)

Add in new payload.

Note that duplicates are NOT added.

Returns
value is true is payload was merged, false if it is a duplicate

Definition at line 14 of file IOVMetaDataContainer.cxx.

15 {
16  return m_payload->merge(payload);
17 }

◆ operator=()

IOVMetaDataContainer & IOVMetaDataContainer::operator= ( const IOVMetaDataContainer cont)
inline

Definition at line 114 of file IOVMetaDataContainer.h.

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 }

◆ payloadContainer()

const IOVPayloadContainer * IOVMetaDataContainer::payloadContainer ( ) const
inline

Access to payload container.

Definition at line 141 of file IOVMetaDataContainer.h.

142 {
143  return (m_payload);
144 }

◆ setFolderDescription()

void IOVMetaDataContainer::setFolderDescription ( const std::string &  description)
inline

Set description.

Definition at line 155 of file IOVMetaDataContainer.h.

156 {
158 }

◆ setFolderName()

void IOVMetaDataContainer::setFolderName ( const std::string &  folderName)
inline

Set folder name.

Definition at line 148 of file IOVMetaDataContainer.h.

149 {
151 }

Friends And Related Function Documentation

◆ IOVMetaDataContainerCnv_p1

friend class IOVMetaDataContainerCnv_p1
friend

Definition at line 80 of file IOVMetaDataContainer.h.

◆ IOVMetaDataContainerPTCnv_p1

friend class IOVMetaDataContainerPTCnv_p1
friend

Definition at line 81 of file IOVMetaDataContainer.h.

Member Data Documentation

◆ m_folderDescription

std::string IOVMetaDataContainer::m_folderDescription
private

Definition at line 84 of file IOVMetaDataContainer.h.

◆ m_folderName

std::string IOVMetaDataContainer::m_folderName
private

Definition at line 83 of file IOVMetaDataContainer.h.

◆ m_payload

IOVPayloadContainer* IOVMetaDataContainer::m_payload
private

Definition at line 85 of file IOVMetaDataContainer.h.


The documentation for this class was generated from the following files:
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
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
IOVPayloadContainer::size
size_type size() const
size of payload vector
Definition: IOVPayloadContainer.h:121
IOVMetaDataContainer::m_folderDescription
std::string m_folderDescription
Definition: IOVMetaDataContainer.h:84
IOVPayloadContainer
IOVPayloadContainer
Definition: IOVDbTPCnv.cxx:20
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
IOVPayloadContainer::merge
bool merge(CondAttrListCollection *attrListColl)
Add in new payload, checking that it is not a duplicate.
Definition: IOVPayloadContainer.cxx:36
description
std::string description
glabal timer - how long have I taken so far?
Definition: hcg.cxx:88