ATLAS Offline Software
Loading...
Searching...
No Matches
AGDDSectionStore Class Reference

#include <AGDDSectionStore.h>

Collaboration diagram for AGDDSectionStore:

Public Member Functions

 AGDDSectionStore ()
AGDDSectionGetSection (const std::string &)
AGDDSectionGetCurrentSection ()
void RegisterSection (AGDDSection *)
void PrintAllSections () const
void Clean ()

Private Attributes

AGDDSectionm_currentSection
sectionList m_theSections

Detailed Description

Definition at line 15 of file AGDDSectionStore.h.

Constructor & Destructor Documentation

◆ AGDDSectionStore()

AGDDSectionStore::AGDDSectionStore ( )

Definition at line 10 of file AGDDSectionStore.cxx.

11{
12}
AGDDSection * m_currentSection

Member Function Documentation

◆ Clean()

void AGDDSectionStore::Clean ( )

Definition at line 41 of file AGDDSectionStore.cxx.

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}
sectionList m_theSections

◆ GetCurrentSection()

AGDDSection * AGDDSectionStore::GetCurrentSection ( )
inline

Definition at line 19 of file AGDDSectionStore.h.

19{return m_currentSection;}

◆ GetSection()

AGDDSection * AGDDSectionStore::GetSection ( const std::string & n)

Definition at line 13 of file AGDDSectionStore.cxx.

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}

◆ PrintAllSections()

void AGDDSectionStore::PrintAllSections ( ) const

Definition at line 32 of file AGDDSectionStore.cxx.

33{
34 sectionList::const_iterator it;
35 for (it=m_theSections.begin();it!=m_theSections.end();++it)
36 {
37 (*it).second->Print();
38 }
39}

◆ RegisterSection()

void AGDDSectionStore::RegisterSection ( AGDDSection * s)

Definition at line 23 of file AGDDSectionStore.cxx.

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
31}

Member Data Documentation

◆ m_currentSection

AGDDSection* AGDDSectionStore::m_currentSection
private

Definition at line 24 of file AGDDSectionStore.h.

◆ m_theSections

sectionList AGDDSectionStore::m_theSections
private

Definition at line 25 of file AGDDSectionStore.h.


The documentation for this class was generated from the following files: