vdr  2.0.5
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 2.0 2007/06/10 08:50:21 kls Exp $
8  */
9 
10 #ifndef __NIT_H
11 #define __NIT_H
12 
13 #include "filter.h"
14 
15 #define MAXNITS 16
16 #define MAXNETWORKNAME Utf8BufSize(256)
17 
18 class cNitFilter : public cFilter {
19 private:
20 
21  class cNit {
22  public:
23  u_short networkId;
26  };
27 
30  u_short networkId;
31  int numNits;
32 protected:
33  virtual void Process(u_short Pid, u_char Tid, const u_char *Data, int Length);
34 public:
35  cNitFilter(void);
36  virtual void SetStatus(bool On);
37  };
38 
39 #endif //__NIT_H
u_short networkId
Definition: nit.h:23
u_short networkId
Definition: nit.h:30
int numNits
Definition: nit.h:31
#define MAXNITS
Definition: nit.h:15
Definition: nit.h:18
cSectionSyncer sectionSyncer
Definition: nit.h:28
Definition: filter.h:41
bool hasTransponder
Definition: nit.h:25
#define MAXNETWORKNAME
Definition: nit.h:16
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:37
cNit nits[MAXNITS]
Definition: nit.h:29
virtual void SetStatus(bool On)
Turns this filter on or off, depending on the value of On.
Definition: nit.c:29
unsigned char u_char
Definition: headers.h:24
char name[MAXNETWORKNAME]
Definition: nit.h:24
cNitFilter(void)
Definition: nit.c:22