summaryrefslogtreecommitdiffstats
path: root/src/utils.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-08-07 14:50:09 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-08-07 14:50:09 +0200
commit2773aecdea641ca8a0b362085eba3dc5273e0fa6 (patch)
treeb211a19d18cabecf26da3024167e86c34417b77a /src/utils.cpp
parentb53125dffd58e96ec586c40320827100c039398f (diff)
downloaddabmux-2773aecdea641ca8a0b362085eba3dc5273e0fa6.tar.gz
dabmux-2773aecdea641ca8a0b362085eba3dc5273e0fa6.tar.bz2
dabmux-2773aecdea641ca8a0b362085eba3dc5273e0fa6.zip
Create enum class subchannel_type_t
Diffstat (limited to 'src/utils.cpp')
-rw-r--r--src/utils.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/utils.cpp b/src/utils.cpp
index 42937c1..e79d023 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -479,21 +479,21 @@ void printSubchannels(vector<dabSubchannel*>& subchannels)
etiLog.log(info, " input");
etiLog.level(info) << " URI: " << (*subchannel)->inputUri;
switch ((*subchannel)->type) {
- case Audio:
- etiLog.log(info, " type: audio");
- break;
- case DataDmb:
- etiLog.log(info, " type: data");
- break;
- case Fidc:
- etiLog.log(info, " type: fidc");
- break;
- case Packet:
- etiLog.log(info, " type: packet");
- break;
- default:
- etiLog.log(info, " type: unknown");
- break;
+ case subchannel_type_t::Audio:
+ etiLog.log(info, " type: audio");
+ break;
+ case subchannel_type_t::DataDmb:
+ etiLog.log(info, " type: data");
+ break;
+ case subchannel_type_t::Fidc:
+ etiLog.log(info, " type: fidc");
+ break;
+ case subchannel_type_t::Packet:
+ etiLog.log(info, " type: packet");
+ break;
+ default:
+ etiLog.log(info, " type: unknown");
+ break;
}
etiLog.log(info, " id: %i",
(*subchannel)->id);