ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DetectorDescription
AGDD
AGDDHandlers
src
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
5
#include "
AGDDHandlers/msgHandler.h
"
6
#include "
AGDDControl/AGDDController.h
"
7
8
#include <iostream>
9
10
msgHandler::msgHandler
(
const
std::string& s,
11
AGDDController
& c)
12
:
XMLHandler
(s, c)
13
{
14
// std::cout<<"Creating handler for msg"<<std::endl;
15
}
16
17
void
msgHandler::ElementHandle
(
AGDDController
& c,
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
}
AGDDController.h
res
std::pair< std::vector< unsigned int >, bool > res
Definition
JetGroupProductTest.cxx:11
AGDDController
Definition
AGDDController.h:30
XMLHandler::getAttributeAsDouble
double getAttributeAsDouble(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
Definition
XMLHandler.cxx:78
XMLHandler::XMLHandler
XMLHandler(const std::string &n, AGDDController &c)
Definition
XMLHandler.cxx:15
XMLHandler::getAttributeAsString
std::string getAttributeAsString(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
Definition
XMLHandler.cxx:69
msgHandler::msgHandler
msgHandler(const std::string &, AGDDController &c)
Definition
msgHandler.cxx:10
msgHandler::ElementHandle
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
Definition
msgHandler.cxx:17
msgHandler.h
Generated on
for ATLAS Offline Software by
1.17.0