ATLAS Offline Software
Loading...
Searching...
No Matches
MuctpiXMLHelper.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TrigConfMuctpi_MuctpiXMLHelper
6#define TrigConfMuctpi_MuctpiXMLHelper
7
9#include "boost/property_tree/ptree.hpp"
10#include <string>
11
12
14public:
16
17 std::string readAttribute(const boost::property_tree::ptree & tree, const std::string & attr);
18
19 bool hasAttribute(const boost::property_tree::ptree & tree, const std::string & attr);
20
21 std::string getAttribute(const boost::property_tree::ptree & tree, const std::string & attr);
22
23 std::string getAttribute(const boost::property_tree::ptree & tree, const std::string & attr, const std::string & defval);
24
25 int getIntAttribute(const boost::property_tree::ptree & tree, const std::string & attr);
26
27 int getIntAttribute(const boost::property_tree::ptree & tree, const std::string & attr, int defval);
28
29 unsigned int getUIntAttribute(const boost::property_tree::ptree & tree, const std::string & attr);
30
31 unsigned int getUIntAttribute(const boost::property_tree::ptree & tree, const std::string & attr, unsigned int & defval);
32
33 float getFloatAttribute(const boost::property_tree::ptree & tree, const std::string & attr);
34
35 float getFloatAttribute(const boost::property_tree::ptree & tree, const std::string & attr, float & defval);
36
37 void printAttributes(const boost::property_tree::ptree & tree);
38
39};
40
41#endif
Messaging base class for TrigConf code shared with Lvl1 ( AthMessaging)
std::string readAttribute(const boost::property_tree::ptree &tree, const std::string &attr)
unsigned int getUIntAttribute(const boost::property_tree::ptree &tree, const std::string &attr)
float getFloatAttribute(const boost::property_tree::ptree &tree, const std::string &attr)
void printAttributes(const boost::property_tree::ptree &tree)
int getIntAttribute(const boost::property_tree::ptree &tree, const std::string &attr)
bool hasAttribute(const boost::property_tree::ptree &tree, const std::string &attr)
std::string getAttribute(const boost::property_tree::ptree &tree, const std::string &attr)
Class to provide easy access to TrigConf::MsgStream for TrigConf classes.
TChain * tree