15 #ifndef FAIR_MQ_JSONPARSER_H
16 #define FAIR_MQ_JSONPARSER_H
18 #include <fairmq/Properties.h>
19 #include <boost/property_tree/ptree_fwd.hpp>
27 struct ParserError : std::runtime_error {
using std::runtime_error::runtime_error; };
29 fair::mq::Properties PtreeParser(
const boost::property_tree::ptree& pt,
const std::string& deviceId);
31 fair::mq::Properties JSONParser(
const std::string& filename,
const std::string& deviceId);
36 fair::mq::Properties DeviceParser(
const boost::property_tree::ptree& tree,
const std::string& deviceId);
37 void ChannelParser(
const boost::property_tree::ptree& tree, fair::mq::Properties& properties);
38 void SubChannelParser(
const boost::property_tree::ptree& tree, fair::mq::Properties& properties,
const std::string& channelName,
const fair::mq::Properties& commonProperties);