vdr 2.6.1
sdt.h
Go to the documentation of this file.
1/*
2 * sdt.h: SDT section filter
3 *
4 * See the main source file 'vdr.c' for copyright information and
5 * how to reach the author.
6 *
7 * $Id: sdt.h 4.1 2020/05/04 08:50:20 kls Exp $
8 */
9
10#ifndef __SDT_H
11#define __SDT_H
12
13#include "filter.h"
14#include "pat.h"
15
16class cSdtFilter : public cFilter {
17private:
21 int source;
22 int lastSource;
24 int lastNid;
25 int lastTid;
28protected:
29 virtual void Process(u_short Pid, u_char Tid, const u_char *Data, int Length);
30public:
32 virtual void SetStatus(bool On);
33 void Trigger(int Source);
34 bool TransponderVerified(void) const { return transponderState == tsVerified; } // returns true if the expected NIT/TID have been received in the SDT
35 bool TransponderWrong(void) const { return transponderState == tsWrong; } // returns true if an expected change of NIT/TID has not happened
36 };
37
38#endif //__SDT_H
Definition: filter.h:80
int Source(void)
Returns the source of the data delivered to this filter.
Definition: filter.c:163
bool TransponderVerified(void) const
Definition: sdt.h:34
void Trigger(int Source)
virtual void SetStatus(bool On)
Turns this filter on or off, depending on the value of On.
virtual void Process(u_short Pid, u_char Tid, const u_char *Data, int Length)
Processes the data delivered to this filter.
cSdtFilter(cPatFilter *PatFilter)
bool TransponderWrong(void) const
Definition: sdt.h:35
enum eTransponderState transponderState
cSectionSyncer sectionSyncer
cPatFilter * patFilter
unsigned char u_char