summaryrefslogtreecommitdiffstats
path: root/src/utils.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-08-15 11:53:55 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-08-15 11:53:55 +0200
commit55a66f6408042abfd102f92fd0072a000d8e0235 (patch)
tree12269221fd70e6a2a33a9e68aeecbbfb9fed1014 /src/utils.cpp
parent3dab3da3f669e1f2c70fd81c13f67c9c5c77278a (diff)
downloaddabmux-55a66f6408042abfd102f92fd0072a000d8e0235.tar.gz
dabmux-55a66f6408042abfd102f92fd0072a000d8e0235.tar.bz2
dabmux-55a66f6408042abfd102f92fd0072a000d8e0235.zip
Add cluster handling for announcements
Diffstat (limited to 'src/utils.cpp')
-rw-r--r--src/utils.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/utils.cpp b/src/utils.cpp
index 2559cb0..1f6754d 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -25,6 +25,7 @@
#include <cstring>
#include <iostream>
#include <boost/shared_ptr.hpp>
+#include <boost/algorithm/string/join.hpp>
#include "DabMux.h"
#include "utils.h"
@@ -389,6 +390,12 @@ void printServices(const vector<shared_ptr<DabService> >& services)
service->language, service->language);
etiLog.log(info, " announcements: 0x%x",
service->ASu);
+
+ std::vector<std::string> clusters_s;
+ for (const auto& cluster : service->clusters) {
+ clusters_s.push_back(std::to_string(cluster));
+ }
+ etiLog.level(info) << " clusters: " << boost::join(clusters_s, ",");
++index;
}
}