![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
21 #ifndef DBDATAOBJECTS_TAGATHENAATTRIBUTELIST_H
22 # define DBDATAOBJECTS_TAGATHENAATTRIBUTELIST_H
25 #include "CoralBase/Attribute.h"
26 #include "CoralBase/AttributeList.h"
27 #include "CoralBase/AttributeListSpecification.h"
31 #include "GaudiKernel/DataObject.h"
72 template<
typename T>
void extend(
const std::string&
name );
76 const std::type_info&
type );
81 void print(std::ostream&
os)
const;
101 if(m_desc!=0) m_desc->release();
137 coral::AttributeList::operator= (rhs);
138 DataObject::operator= (rhs);
155 this->coral::AttributeList::extend(
i->name(),
i->attributeType().typeName() );
161 template<
typename T>
void
164 this->
extend( name,
typeid(
T) );
178 const std::type_info&
type )
181 this->coral::AttributeList::extend(
name,
type );
189 this->coral::AttributeList::extend(
name,
type.typeName() );
196 for (coral::AttributeList::const_iterator itr=this->
begin();
197 itr!=this->
end();++itr) {
198 if (itr!=this->
begin()) os <<
",";
199 itr->toOutputStream(
os);
217 #endif // DBDATAOBJECTS_TAGATHENAATTRIBUTELIST_H
~TagAthenaAttributeList()
void print(std::ostream &os) const
print to simulate function provided by old POOL AttributeList
const coral::AttributeList & coralList() const
void extend(const std::string &name, const std::string &unitName="UNKNOWN", const std::string &groupName="UNKNOWN")
Appends a new specification.
TagAthenaAttributeList & operator=(const TagAthenaAttributeList &rhs)
Assignment.
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
void extend(const std::string &name)
Extends the AttributeList by one attribute, given a specification.
const AthenaAttributeListSpecification * getDesc() const
void release() const
Decrements the reference counter.
TagAthenaAttributeList()
Construct empty attribute list with empty specification.
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
AthenaAttributeListSpecification * m_desc
The specification (empty if created with coral version)
macros to associate a CLID to a type