vdr  2.2.0
nit.h
Go to the documentation of this file.
1 /*
2  * nit.h: NIT section filter
3  *
4  * See the main source file 'vdr.c' for copyright information and
5  * how to reach the author.
6  *
7  * $Id: nit.h 3.1 2014/03/10 14:12:05 kls Exp $
8  */
9 
10 #ifndef __NIT_H
11 #define __NIT_H
12 
13 #include "filter.h"
14 #include "sdt.h"
15 
16 #define MAXNITS 16
17 #define MAXNETWORKNAME Utf8BufSize(256)
18 
19 class cNitFilter : public cFilter {
20 private:
21 
22  class cNit {
23  public:
24  u_short networkId;
27  };
28 
32  u_short networkId;
33  int numNits;
34 protected:
35  virtual void Process(u_short Pid, u_char Tid, const u_char *Data, int Length);
36 public:
37  cNitFilter(cSdtFilter *SdtFilter);
38  virtual void SetStatus(bool On);
39  };
40 
41 #endif //__NIT_H
cSdtFilter * sdtFilter
Definition: nit.h:30
u_short networkId
Definition: nit.h:24
u_short networkId
Definition: nit.h:32
Definition: sdt.h:16
int numNits
Definition: nit.h:33
#define MAXNITS
Definition: nit.h:16
Definition: nit.h:19
cSectionSyncer sectionSyncer
Definition: nit.h:29
Definition: filter.h:41
bool hasTransponder
Definition: nit.h:26
#define MAXNETWORKNAME
Definition: nit.h:17
virtual void Process(u_short Pid, u_char Tid, const u_char *Data, int Length)
Processes the data delivered to this filter.
Definition: nit.c:38
cNit nits[MAXNITS]
Definition: nit.h:31
virtual void SetStatus(bool On)
Turns this filter on or off, depending on the value of On.
Definition: nit.c:30
unsigned char u_char
Definition: headers.h:24
char name[MAXNETWORKNAME]
Definition: nit.h:25
cNitFilter(cSdtFilter *SdtFilter)
Definition: nit.c:22