12#ifndef TRIGCONFSTORAGE_JSONFILELOADER_H
13#define TRIGCONFSTORAGE_JSONFILELOADER_H
18#include "boost/property_tree/ptree.hpp"
49 bool loadFile(
const std::string & filename,
50 boost::property_tree::ptree &
data,
51 const std::string & pathToChild =
"")
const;
59 bool loadFile(
const std::string & filename,
61 const std::string & pathToChild =
"")
const;
69 bool saveFile(
const std::string & filename,
76 std::string
getFileType(
const std::string & filename )
const;
84 std::string & level )
const;
91 std::string
findFile(
const std::string & filename)
const;
char data[hepevt_bytes_allocation_ATLAS]
Messaging base class for TrigConf code shared with Lvl1 ( AthMessaging)
Base class for Trigger configuration data and wrapper around underlying representation.
bool saveFile(const std::string &filename, const DataStructure &data) const
Save content of DataStructure (underlying ptree) to a file.
bool checkTriggerLevel(const std::string &filename, std::string &level) const
Checks the trigger level of a given json file.
JsonFileLoader()
Constructor.
std::string findFile(const std::string &filename) const
MSGTC::Level outputLevel() const
void setLevel(MSGTC::Level lvl)
std::string getFileType(const std::string &filename) const
Checks the trigger level of a given json file.
bool loadFile(const std::string &filename, boost::property_tree::ptree &data, const std::string &pathToChild="") const
Load content of json file into a ptree.
virtual ~JsonFileLoader() override=default
Destructor.
void setLevel(MSGTC::Level lvl)
Set message level of stream.
MSGTC::Level level()
Return message level of stream.
MsgStreamTC & msg() const
The standard message stream.
TrigConfMessaging(const std::string &name)
Constructor with parameters.
Forward iterator to traverse the main components of the trigger configuration.