ATLAS Offline Software
Loading...
Searching...
No Matches
msgHandler.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
10msgHandler::msgHandler(const std::string& s,
12 : XMLHandler(s, c)
13{
14// std::cout<<"Creating handler for msg"<<std::endl;
15}
16
18 xercesc::DOMNode *t)
19{
20// std::cout<<"handling for msg";
21 bool bres;
22 std::string text=getAttributeAsString(c, t, "text",bres);
23 std::string expression=getAttributeAsString(c, t, "expression",bres);
24 std::cout<<" msg: "<<text<<" expression="<<expression;
25 double res=getAttributeAsDouble(c, t, "expression",bres);
26 std::cout<<" evaluates to "<<res<<std::endl;
27}
std::pair< std::vector< unsigned int >, bool > res
double getAttributeAsDouble(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
XMLHandler(const std::string &n, AGDDController &c)
std::string getAttributeAsString(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
msgHandler(const std::string &, AGDDController &c)
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override