vdr  2.6.9
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 
16 class cSdtFilter : public cFilter {
17 private:
21  int source;
24  int lastNid;
25  int lastTid;
28 protected:
29  virtual void Process(u_short Pid, u_char Tid, const u_char *Data, int Length);
30 public:
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
cSdtFilter(cPatFilter *PatFilter)
Definition: sdt.c:23
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
unsigned char u_char
Definition: headers.h:24