aboutsummaryrefslogtreecommitdiffstats
path: root/src/MuxElements.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-09-30 11:39:53 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-09-30 11:39:53 +0200
commit35ae5602e9c72077cf9439c2806ad9a625ee6079 (patch)
treefbd4fe9fce027af3774aa72157de4fd636d179d6 /src/MuxElements.cpp
parent9db03b9e567ca4c716aedd017013069a54f0d66f (diff)
downloaddabmux-35ae5602e9c72077cf9439c2806ad9a625ee6079.tar.gz
dabmux-35ae5602e9c72077cf9439c2806ad9a625ee6079.tar.bz2
dabmux-35ae5602e9c72077cf9439c2806ad9a625ee6079.zip
Clarify how to declare several linking sets
Diffstat (limited to 'src/MuxElements.cpp')
-rw-r--r--src/MuxElements.cpp17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/MuxElements.cpp b/src/MuxElements.cpp
index b2f8bca..ad623b9 100644
--- a/src/MuxElements.cpp
+++ b/src/MuxElements.cpp
@@ -662,21 +662,8 @@ unsigned short DabSubchannel::getSizeDWord(void) const
return (bitrate * 3) >> 3;
}
-static string lsn_to_rc_name(uint16_t lsn)
-{
- std::stringstream ss;
- ss << "linkset" <<
- std::uppercase <<
- std::setfill('0') <<
- std::setw(4) <<
- std::hex <<
- lsn;
-
- return ss.str();
-}
-
-LinkageSet::LinkageSet(uint16_t lsn, bool hard, bool international) :
- RemoteControllable(lsn_to_rc_name(lsn)),
+LinkageSet::LinkageSet(string name, uint16_t lsn, bool hard, bool international) :
+ RemoteControllable(name),
m_lsn(lsn),
m_active(false),
m_hard(hard),