ATLAS Offline Software
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 
14 public:
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 
38 
39 };
40 
41 #endif
MuctpiXMLHelper::getAttribute
std::string getAttribute(const boost::property_tree::ptree &tree, const std::string &attr)
Definition: MuctpiXMLHelper.cxx:67
MuctpiXMLHelper
Definition: MuctpiXMLHelper.h:13
MuctpiXMLHelper::printAttributes
void printAttributes(const boost::property_tree::ptree &tree)
Definition: MuctpiXMLHelper.cxx:17
tree
TChain * tree
Definition: tile_monitor.h:30
MuctpiXMLHelper::getUIntAttribute
unsigned int getUIntAttribute(const boost::property_tree::ptree &tree, const std::string &attr)
Definition: MuctpiXMLHelper.cxx:116
MuctpiXMLHelper::readAttribute
std::string readAttribute(const boost::property_tree::ptree &tree, const std::string &attr)
Definition: MuctpiXMLHelper.cxx:51
MuctpiXMLHelper::hasAttribute
bool hasAttribute(const boost::property_tree::ptree &tree, const std::string &attr)
Definition: MuctpiXMLHelper.cxx:32
ptree
boost::property_tree::ptree ptree
Definition: JsonFileLoader.cxx:16
MuctpiXMLHelper::getIntAttribute
int getIntAttribute(const boost::property_tree::ptree &tree, const std::string &attr)
Definition: MuctpiXMLHelper.cxx:84
TrigConf::TrigConfMessaging
Class to provide easy access to TrigConf::MsgStream for TrigConf classes.
Definition: TrigConfMessaging.h:28
MuctpiXMLHelper::MuctpiXMLHelper
MuctpiXMLHelper()
Definition: MuctpiXMLHelper.cxx:12
TrigConfMessaging.h
Messaging base class for TrigConf code shared with Lvl1 ( AthMessaging)
MuctpiXMLHelper::getFloatAttribute
float getFloatAttribute(const boost::property_tree::ptree &tree, const std::string &attr)
Definition: MuctpiXMLHelper.cxx:140