diff options
| author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-06-05 17:51:47 +0200 | 
|---|---|---|
| committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-06-05 17:51:47 +0200 | 
| commit | f1832dd977078a60b343673c60092d3d5d030398 (patch) | |
| tree | c1d585a637a24732507b0b6f94ebe5151fb493c2 /src/ConfigParser.cpp | |
| parent | 7378fc903a26f779c48114e6305a89e59a3285d6 (diff) | |
| download | dabmux-f1832dd977078a60b343673c60092d3d5d030398.tar.gz dabmux-f1832dd977078a60b343673c60092d3d5d030398.tar.bz2 dabmux-f1832dd977078a60b343673c60092d3d5d030398.zip | |
Add initial implementation for FIG0/24
Diffstat (limited to 'src/ConfigParser.cpp')
| -rw-r--r-- | src/ConfigParser.cpp | 24 | 
1 files changed, 24 insertions, 0 deletions
| 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<std::string>("other_ensembles", ""); +            vector<string> 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<string>("label"); | 
