ATLAS Offline Software
Loading...
Searching...
No Matches
varHandler.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
8#include <iostream>
9
10
11varHandler::varHandler(const std::string& s,
13 : XMLHandler(s, c)
14{
15}
16
18 xercesc::DOMNode *t)
19{
20 bool bres;
21 std::string name=getAttributeAsString(c, t, "name",bres);
22 double res=getAttributeAsDouble(c, t, "value",bres);
23 c.Evaluator().RegisterConstant(name,res);
24}
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
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
varHandler(const std::string &, AGDDController &c)