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#include <string_view>
12
13
15public:
17
18 std::string readAttribute(const boost::property_tree::ptree & tree, std::string_view attr);
19
20 bool hasAttribute(const boost::property_tree::ptree & tree, std::string_view attr);
21
22 std::string getAttribute(const boost::property_tree::ptree & tree, std::string_view attr);
23
24 std::string getAttribute(const boost::property_tree::ptree & tree, std::string_view attr, std::string_view defval);
25
26 int getIntAttribute(const boost::property_tree::ptree & tree, std::string_view attr);
27
28 int getIntAttribute(const boost::property_tree::ptree & tree, std::string_view attr, int defval);
29
30 unsigned int getUIntAttribute(const boost::property_tree::ptree & tree, std::string_view attr);
31
32 unsigned int getUIntAttribute(const boost::property_tree::ptree & tree, std::string_view attr, unsigned int & defval);
33
34 float getFloatAttribute(const boost::property_tree::ptree & tree, std::string_view attr);
35
36 float getFloatAttribute(const boost::property_tree::ptree & tree, const std::string_view attr, float & defval);
37
38 void printAttributes(const boost::property_tree::ptree & tree);
39
40};
41
42#endif
Messaging base class for TrigConf code shared with Lvl1 ( AthMessaging).
std::string readAttribute(const boost::property_tree::ptree &tree, std::string_view attr)
float getFloatAttribute(const boost::property_tree::ptree &tree, std::string_view attr)
int getIntAttribute(const boost::property_tree::ptree &tree, std::string_view attr)
void printAttributes(const boost::property_tree::ptree &tree)
bool hasAttribute(const boost::property_tree::ptree &tree, std::string_view attr)
std::string getAttribute(const boost::property_tree::ptree &tree, std::string_view attr)
unsigned int getUIntAttribute(const boost::property_tree::ptree &tree, std::string_view attr)
Class to provide easy access to TrigConf::MsgStream for TrigConf classes.
TChain * tree