From 5bea9241b246cfc4b9abef3d265a96d52a377c37 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 6 Mar 2018 17:52:07 +0100 Subject: Verify ETI FCT continuity before modulator --- src/EtiReader.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/EtiReader.cpp') 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 > 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 > EdiReader::getSubchannels() const { std::vector > sources; -- cgit v1.2.3