ATLAS Offline Software
Public Member Functions | List of all members
AthenaAttributeList Class Reference

An AttributeList represents a logical row of attributes in a metadata table. The name and type of each attribute is given in an AttributeListSpecification. AthenaAttributeList is an AttributeList which is also a DataObject and thus can be saved in an Athena data store, e.g. the Event Store. More...

#include <AthenaAttributeList.h>

Inheritance diagram for AthenaAttributeList:
Collaboration diagram for AthenaAttributeList:

Public Member Functions

 AthenaAttributeList ()
 Construct empty attribute list with empty specification. More...
 
 AthenaAttributeList (const coral::AttributeList &rhs)
 Copy attribute lists. More...
 
 AthenaAttributeList (const coral::AttributeListSpecification &rhs)
 Construct attribute list according to the specification. More...
 
 ~AthenaAttributeList ()
 
void print (std::ostream &os) const
 print to simulate function provided by old POOL AttributeList More...
 
const coral::AttributeList & coralList () const
 

Detailed Description

An AttributeList represents a logical row of attributes in a metadata table. The name and type of each attribute is given in an AttributeListSpecification. AthenaAttributeList is an AttributeList which is also a DataObject and thus can be saved in an Athena data store, e.g. the Event Store.

Definition at line 43 of file PersistentDataModel/PersistentDataModel/AthenaAttributeList.h.

Constructor & Destructor Documentation

◆ AthenaAttributeList() [1/3]

AthenaAttributeList::AthenaAttributeList ( )

Construct empty attribute list with empty specification.

Definition at line 7 of file AthenaAttributeList.cxx.

8 {}

◆ AthenaAttributeList() [2/3]

AthenaAttributeList::AthenaAttributeList ( const coral::AttributeList &  rhs)
explicit

Copy attribute lists.

Definition at line 10 of file AthenaAttributeList.cxx.

11 {}

◆ AthenaAttributeList() [3/3]

AthenaAttributeList::AthenaAttributeList ( const coral::AttributeListSpecification &  rhs)
explicit

Construct attribute list according to the specification.

The link to the specification is kept internally. User must make sure that the lifetime of the specification covers the lifetime of the attribute list.

Definition at line 13 of file AthenaAttributeList.cxx.

14 {}

◆ ~AthenaAttributeList()

AthenaAttributeList::~AthenaAttributeList ( )
inline

Member Function Documentation

◆ coralList()

const coral::AttributeList& AthenaAttributeList::coralList ( ) const
inline

Definition at line 65 of file PersistentDataModel/PersistentDataModel/AthenaAttributeList.h.

65 {return *static_cast<const coral::AttributeList*>(this);}

◆ print()

void AthenaAttributeList::print ( std::ostream &  os) const

print to simulate function provided by old POOL AttributeList

Definition at line 16 of file AthenaAttributeList.cxx.

16  {
17  os << "{";
18  for (coral::AttributeList::const_iterator itr=this->begin();
19  itr!=this->end();++itr) {
20  if (itr!=this->begin()) os << ",";
21  itr->toOutputStream(os);
22  }
23  os << "}";
24 }

The documentation for this class was generated from the following files:
CaloCondBlobAlgs_fillNoiseFromASCII.spec
spec
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:47
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
python.PyKernel.AttributeList
AttributeList
Definition: PyKernel.py:36
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231