ATLAS Offline Software
Loading...
Searching...
No Matches
AbstractL1CaloPersistentCondition.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#include "CoralBase/AttributeListSpecification.h"
8
9#include <iostream>
10
12 std::cout << "ERROR - The makePersistent() method you are calling is not implemented by the current class !" << std::endl;
13 return 0;
14}
15
16void AbstractL1CaloPersistentCondition::makeTransient(const std::map<std::string, const CondAttrListCollection*>& /* condAttrListCollectionMap */) {
17 std::cout << "ERROR - The makeTransient(const map<std::string, const CondAttrListCollection*>) method you are calling is not implemented by the current class !" << std::endl;
18 return;
19}
20
21void AbstractL1CaloPersistentCondition::makeTransient(const std::map<std::string, const AthenaAttributeList*>& /* athenaAttributeList */) {
22 std::cout << "ERROR - The makeTransient(const map<std::string, const AthenaAttributeList*>) method you are calling is not implemented by the current class !" << std::endl;
23 return;
24}
25
26void AbstractL1CaloPersistentCondition::addSpecification(int specId, const std::string& specName, const std::string& specType) {
27 m_attrSpecificationNameMap[specId] = specName;
28 m_attrSpecificationTypeMap[specId] = specType;
32
33 coral::AttributeListSpecification* attrSpecification = new coral::AttributeListSpecification();
34
35 AttrSpecificationMap::const_iterator it_name = m_attrSpecificationNameMap.begin();
36 AttrSpecificationMap::const_iterator it_type = m_attrSpecificationTypeMap.begin();
37
38 for(;it_name!=m_attrSpecificationNameMap.end();++it_name,++it_type) {
39 attrSpecification->extend(it_name->second, it_type->second);
40 }
41 return attrSpecification;
42}
45 return m_attrSpecificationNameMap.find(specId)->second;
46}
47
49 return m_attrSpecificationTypeMap.find(specId)->second;
50}
51
53 std::cout << "ERROR - The clear() method you are calling is not implemented by the current class !" << std::endl;
54 return;
55}
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
void addSpecification(int specId, const std::string &specName, const std::string &specType)
coral::AttributeListSpecification * createAttributeListSpecification() const