vdr 2.6.3
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;
28protected:
29 virtual void Process(u_short Pid, u_char Tid, const u_char *Data, int Length);
30public:
31 cSdtFilter(cPatFilter *PatFilter);
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
Definition: thread.h:67
Definition: pat.h:21
Definition: sdt.h:16
bool TransponderVerified(void) const
Definition: sdt.h:34
cMutex mutex
Definition: sdt.h:19
virtual void SetStatus(bool On)
Turns this filter on or off, depending on the value of On.
Definition: sdt.c:35
void Trigger(int Source)
Definition: sdt.c:45
cPatFilter * patFilter
Definition: sdt.h:26
eTransponderState
Definition: sdt.h:18
@ tsVerified
Definition: sdt.h:18
@ tsUnknown
Definition: sdt.h:18
@ tsAccepted
Definition: sdt.h:18
@ tsWrong
Definition: sdt.h:18
bool TransponderWrong(void) const
Definition: sdt.h:35
enum eTransponderState transponderState
Definition: sdt.h:27
virtual void Process(u_short Pid, u_char Tid, const u_char *Data, int Length)
Processes the data delivered to this filter.
Definition: sdt.c:51
int source
Definition: sdt.h:21
int lastTransponder
Definition: sdt.h:23
cSectionSyncer sectionSyncer
Definition: sdt.h:20
int lastSource
Definition: sdt.h:22
int lastNid
Definition: sdt.h:24
int lastTid
Definition: sdt.h:25