From f1832dd977078a60b343673c60092d3d5d030398 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 5 Jun 2017 17:51:47 +0200 Subject: Add initial implementation for FIG0/24 --- src/ConfigParser.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/ConfigParser.cpp') diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp index 8c7e6b4..3f977ad 100644 --- a/src/ConfigParser.cpp +++ b/src/ConfigParser.cpp @@ -511,6 +511,30 @@ void parse_ptree( serviceuid; } + try { + auto oelist = pt_service.get("other_ensembles", ""); + vector oe_string_list; + boost::split(oe_string_list, oelist, boost::is_any_of(",")); + + for (const auto& oe_string : oe_string_list) { + if (oe_string == "") { + continue; + } + try { + service->other_ensembles.push_back(hexparse(oe_string)); + } + catch (std::logic_error& e) { + etiLog.level(warn) << "Cannot parse '" << oelist << + "' announcement clusters for service " << serviceuid << + ": " << e.what(); + } + } + } + catch (ptree_error& e) { + etiLog.level(info) << "No other_sensmbles information for Service " << + serviceuid; + } + int success = -5; string servicelabel = pt_service.get("label"); -- cgit v1.2.3