diff options
Diffstat (limited to 'src/EtiReader.cpp')
-rw-r--r-- | src/EtiReader.cpp | 16 |
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; |