summaryrefslogtreecommitdiffstats
path: root/src/MuxElements.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-09-30 12:22:22 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-09-30 12:22:22 +0200
commit72374f4ba67a8330d197bc3c91dc6a44fa16a69c (patch)
treee3881e588cd5b8d4af1ba32afb0b80f61225bb75 /src/MuxElements.cpp
parent2e3d29936f70c3c8183a4e2dcb0f967b73de2ec0 (diff)
downloaddabmux-72374f4ba67a8330d197bc3c91dc6a44fa16a69c.tar.gz
dabmux-72374f4ba67a8330d197bc3c91dc6a44fa16a69c.tar.bz2
dabmux-72374f4ba67a8330d197bc3c91dc6a44fa16a69c.zip
Print linking info on startup
Diffstat (limited to 'src/MuxElements.cpp')
-rw-r--r--src/MuxElements.cpp17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/MuxElements.cpp b/src/MuxElements.cpp
index 60f49be..656e294 100644
--- a/src/MuxElements.cpp
+++ b/src/MuxElements.cpp
@@ -664,25 +664,20 @@ unsigned short DabSubchannel::getSizeDWord(void) const
LinkageSet::LinkageSet(string name, uint16_t lsn, bool hard, bool international) :
RemoteControllable(name),
- m_lsn(lsn),
- m_active(false),
- m_hard(hard),
- m_international(international)
+ lsn(lsn),
+ active(false),
+ hard(hard),
+ international(international)
{
RC_ADD_PARAMETER(active, "Activate this linkage set [0 or 1]");
}
-void LinkageSet::set_active(bool active)
-{
- m_active = active;
-}
-
void LinkageSet::set_parameter(const string& parameter, const string& value)
{
if (parameter == "active") {
stringstream ss;
ss << value;
- ss >> m_active;
+ ss >> active;
}
else {
stringstream ss;
@@ -696,7 +691,7 @@ const string LinkageSet::get_parameter(const string& parameter) const
{
stringstream ss;
if (parameter == "active") {
- ss << m_active;
+ ss << active;
}
else {
ss << "Parameter '" << parameter <<