ATLAS Offline Software
Loading...
Searching...
No Matches
AGDDSectionStore.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
7
8#include <iostream>
9
14{
15 if (m_theSections.find(n) != m_theSections.end())
16 return m_theSections[n];
17 else
18 {
19 std::cout<<" Section "<<n<<" not found in store!"<<std::endl;
20 return 0;
21 }
22}
24{
25 std::string n=s->Name();
26 if (m_theSections.find(n) != m_theSections.end())
27 std::cout<<" Section "<<n<<" already in store "<<std::endl;
28 else
29 m_theSections[n]=s;
31}
33{
34 sectionList::const_iterator it;
35 for (it=m_theSections.begin();it!=m_theSections.end();++it)
36 {
37 (*it).second->Print();
38 }
39}
40
42{
43 sectionList::const_iterator it;
44 for (it=m_theSections.begin();it!=m_theSections.end();++it)
45 {
46 delete (*it).second;
47 }
48 m_theSections.clear();
49}
50
AGDDSection * GetSection(const std::string &)
AGDDSection * m_currentSection
void PrintAllSections() const
void RegisterSection(AGDDSection *)
sectionList m_theSections