summaryrefslogtreecommitdiffstats
path: root/src/EtiReader.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-03-06 17:52:07 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-03-06 17:52:07 +0100
commit5bea9241b246cfc4b9abef3d265a96d52a377c37 (patch)
treeaab1fcb6b9a707c27283cc4f961e84244d1fe5bb /src/EtiReader.cpp
parent0bdd2960707a8abb5d9e435d1313aec4cf264ab1 (diff)
downloaddabmod-5bea9241b246cfc4b9abef3d265a96d52a377c37.tar.gz
dabmod-5bea9241b246cfc4b9abef3d265a96d52a377c37.tar.bz2
dabmod-5bea9241b246cfc4b9abef3d265a96d52a377c37.zip
Verify ETI FCT continuity before modulator
Diffstat (limited to 'src/EtiReader.cpp')
-rw-r--r--src/EtiReader.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/EtiReader.cpp b/src/EtiReader.cpp
index d1c7110..56c0fbb 100644
--- a/src/EtiReader.cpp
+++ b/src/EtiReader.cpp
@@ -85,6 +85,14 @@ unsigned EtiReader::getFp()
return eti_fc.FP;
}
+unsigned EtiReader::getFct()
+{
+ if (not eti_fc_valid) {
+ throw std::runtime_error("Trying to access FCT before it is ready!");
+ }
+ return eti_fc.FCT;
+}
+
const std::vector<std::shared_ptr<SubchannelSource> > EtiReader::getSubchannels() const
{
@@ -329,6 +337,14 @@ unsigned EdiReader::getFp()
return m_fc.fp;
}
+unsigned EdiReader::getFct()
+{
+ if (not m_fc_valid) {
+ throw std::runtime_error("Trying to access FCT before it is ready!");
+ }
+ return m_fc.fct;
+}
+
const std::vector<std::shared_ptr<SubchannelSource> > EdiReader::getSubchannels() const
{
std::vector<std::shared_ptr<SubchannelSource> > sources;