summaryrefslogtreecommitdiffstats
path: root/src/fig/FIG0.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-08-15 00:03:04 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-08-15 00:03:04 +0200
commit3dab3da3f669e1f2c70fd81c13f67c9c5c77278a (patch)
tree17ad5b8949654a03cc741d7e910fecf3eb35a71a /src/fig/FIG0.h
parentebe8447f4cee32e2a096438ca0b458036f646b28 (diff)
downloaddabmux-3dab3da3f669e1f2c70fd81c13f67c9c5c77278a.tar.gz
dabmux-3dab3da3f669e1f2c70fd81c13f67c9c5c77278a.tar.bz2
dabmux-3dab3da3f669e1f2c70fd81c13f67c9c5c77278a.zip
Implement FIG0/18 for announcements
Diffstat (limited to 'src/fig/FIG0.h')
-rw-r--r--src/fig/FIG0.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/fig/FIG0.h b/src/fig/FIG0.h
index 14b658f..0c11ced 100644
--- a/src/fig/FIG0.h
+++ b/src/fig/FIG0.h
@@ -180,7 +180,6 @@ class FIG0_13 : public IFIG
std::vector<DabComponent*>::iterator componentFIG0_13;
};
-
// FIG type 0/17
class FIG0_17 : public IFIG
{
@@ -198,6 +197,23 @@ class FIG0_17 : public IFIG
std::vector<std::shared_ptr<DabService> >::iterator serviceFIG0_17;
};
+// FIG type 0/18
+class FIG0_18 : public IFIG
+{
+ public:
+ FIG0_18(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 18; }
+
+ private:
+ FIGRuntimeInformation *m_rti;
+ bool m_initialised;
+ std::vector<std::shared_ptr<DabService> >::iterator service;
+};
+
} // namespace FIC
#endif // __FIG0_H_