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

#include <XMLHandlerStore.h>

Inheritance diagram for XMLHandlerStore:
Collaboration diagram for XMLHandlerStore:

Public Member Functions

 XMLHandlerStore ()
 
void RegisterHandler (XMLHandler *)
 
XMLHandlerGetHandler (const std::string &name)
 
XMLHandlerGetHandler (xercesc::DOMNode *)
 
void Handle (AGDDController &c, xercesc::DOMNode *)
 

Public Attributes

keys
 STL member. More...
 
elements
 STL member. More...
 

Detailed Description

Definition at line 20 of file XMLHandlerStore.h.

Constructor & Destructor Documentation

◆ XMLHandlerStore()

XMLHandlerStore::XMLHandlerStore ( )

Definition at line 12 of file XMLHandlerStore.cxx.

13 {
14 }

Member Function Documentation

◆ GetHandler() [1/2]

XMLHandler * XMLHandlerStore::GetHandler ( const std::string &  name)

Definition at line 36 of file XMLHandlerStore.cxx.

37 {
38  auto it = this->find (name);
39  if (it != this->end()) {
40  return it->second;
41  }
42  std::cout<<" Handler for "<<name<<" not found! continuing"<<std::endl;
43  return nullptr;
44 }

◆ GetHandler() [2/2]

XMLHandler* XMLHandlerStore::GetHandler ( xercesc::DOMNode *  )

◆ Handle()

void XMLHandlerStore::Handle ( AGDDController c,
xercesc::DOMNode *   
)

Definition at line 25 of file XMLHandlerStore.cxx.

26 {
27  char* temp=XMLString::transcode(element->getNodeName());
28  std::string name=temp;
30  if (this->find(name)!=this->end())
31  ((*this)[name])->Handle(c, element);
32  else
33  std::cout<<" Handler for "<<name<<" not found! continuing"<<std::endl;
34 }

◆ RegisterHandler()

void XMLHandlerStore::RegisterHandler ( XMLHandler handler)

Definition at line 16 of file XMLHandlerStore.cxx.

17 {
18  std::string name=handler->GetName();
19  if (this->find(name)!=this->end())
20  std::cout<<" handler "<<name<<" already defined!"<<std::endl;
21  else
22  (*this)[name]=handler;
23 }

Member Data Documentation

◆ elements

T std::map< K, T >::elements
inherited

STL member.

◆ keys

K std::map< K, T >::keys
inherited

STL member.


The documentation for this class was generated from the following files:
temp
Definition: JetEventDict.h:21
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
skel.it
it
Definition: skel.GENtoEVGEN.py:396
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
handler
void handler(int sig)
signal handler
Definition: rmain.cxx:98
python.EventInfoMgtInit.release
release
Definition: EventInfoMgtInit.py:24
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
XMLHandlerStore::Handle
void Handle(AGDDController &c, xercesc::DOMNode *)
Definition: XMLHandlerStore.cxx:25