From eb91bc3b5c8079e8e9486dba342d5d123ac483e0 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Thu, 1 Mar 2018 16:33:09 +0100 Subject: Rework frequency information representation --- src/MuxElements.h | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'src/MuxElements.h') diff --git a/src/MuxElements.h b/src/MuxElements.h index 16db414..f28a687 100644 --- a/src/MuxElements.h +++ b/src/MuxElements.h @@ -251,7 +251,7 @@ class dabEnsemble : public RemoteControllable { std::vector > clusters; std::vector > linkagesets; - std::vector > frequency_information; + std::vector frequency_information; std::vector service_other_ensemble; }; @@ -531,11 +531,17 @@ struct FrequencyInfoAmss { std::vector frequencies; }; -struct FrequencyListEntry { +/* One FI database entry. DB key are oe, rm, and idfield, which is + * inside the fi_XXX field + */ +struct FrequencyInformation { std::string uid; + bool other_ensemble = false; - RangeModulation rm; - bool continuity; + // The latest draft spec does not specify the RegionId anymore, it's + // now a reserved field. + RangeModulation rm = RangeModulation::dab_ensemble; + bool continuity = false; // Only one of those must contain information, which // must be consistent with RangeModulation @@ -545,16 +551,6 @@ struct FrequencyListEntry { FrequencyInfoAmss fi_amss; }; -struct FrequencyInformation { - std::string uid; - - bool other_ensemble = false; - - // The latest draft spec does not specify the RegionId anymore, it's - // now a reserved field. - std::vector frequency_information; -}; - vec_sp_subchannel::iterator getSubchannel( vec_sp_subchannel& subchannels, int id); -- cgit v1.2.3