summaryrefslogtreecommitdiffstats
path: root/src/fig/FIG0.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-08-07 13:53:43 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-08-07 13:53:43 +0200
commit8ea5c5bf03335f0c95a292f400699ba98e6cf821 (patch)
tree7137862158cce516bdf95e6359bc1ae65145d189 /src/fig/FIG0.h
parente601ed83c8acbb0160b0d75ce0dd09852fb10fdf (diff)
downloaddabmux-8ea5c5bf03335f0c95a292f400699ba98e6cf821.tar.gz
dabmux-8ea5c5bf03335f0c95a292f400699ba98e6cf821.tar.bz2
dabmux-8ea5c5bf03335f0c95a292f400699ba98e6cf821.zip
Add FIG0/8 and 0/9
Diffstat (limited to 'src/fig/FIG0.h')
-rw-r--r--src/fig/FIG0.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/fig/FIG0.h b/src/fig/FIG0.h
index 06beb7e..14b658f 100644
--- a/src/fig/FIG0.h
+++ b/src/fig/FIG0.h
@@ -122,6 +122,45 @@ class FIG0_8 : public IFIG
std::vector<DabComponent*>::iterator componentFIG0_8;
};
+// FIG type 0/9
+// The Country, LTO and International table feature defines the local time
+// offset, the International Table and the Extended Country Code (ECC)
+class FIG0_9 : public IFIG
+{
+ public:
+ FIG0_9(FIGRuntimeInformation* rti);
+ virtual FillStatus fill(uint8_t *buf, size_t max_size);
+ virtual FIG_rate repetition_rate(void) { return FIG_rate::B; }
+
+ virtual const int figtype(void) const { return 0; }
+ virtual const int figextension(void) const { return 9; }
+
+ private:
+ FIGRuntimeInformation *m_rti;
+};
+
+
+// FIG type 0/10
+// The date and time feature is used to signal a location-independent timing
+// reference in UTC format.
+class FIG0_10 : public IFIG
+{
+ public:
+ FIG0_10(FIGRuntimeInformation* rti);
+ virtual FillStatus fill(uint8_t *buf, size_t max_size);
+ virtual FIG_rate repetition_rate(void) { return FIG_rate::B; }
+
+ virtual const int figtype(void) const { return 0; }
+ virtual const int figextension(void) const { return 10; }
+
+ private:
+ FIGRuntimeInformation *m_rti;
+
+ uint8_t m_watermarkData[128];
+ size_t m_watermarkSize;
+ size_t m_watermarkPos;
+};
+
// FIG type 0/13
// User Application Information
class FIG0_13 : public IFIG