Home

Dokumentation

Impressum

Dokumentation VDR
 

Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

cReceiver Class Reference

#include <receiver.h>

Inheritance diagram for cReceiver:

Inheritance graph
[legend]
Collaboration diagram for cReceiver:

Collaboration graph
[legend]

Detailed Description

Receiver interface.

Definition at line 18 of file receiver.h.

Public Methods

 cReceiver (int Ca, int Priority, int NumPids,...)
 Creates new receiver.

virtual ~cReceiver ()

Protected Methods

void Detach (void)
virtual void Activate (bool On)
virtual void Receive (uchar *Data, int Length)=0

Private Methods

bool WantsPid (int Pid)

Private Attributes

cDevicedevice
int ca
int priority
int pids [MAXRECEIVEPIDS]

Friends

class cDevice


Constructor & Destructor Documentation

cReceiver::cReceiver int    Ca,
int    Priority,
int    NumPids,
...   
 

Creates new receiver.

Creates a new receiver that requires conditional access Ca and has the given Priority. NumPids defines the number of PIDs that follow this parameter. If any of these PIDs are 0, they will be silently ignored. The total number of non-zero PIDs must not exceed MAXRECEIVEPIDS. Priority may be any value in the range 0..99. Negative values indicate that this cReceiver may be detached at any time (without blocking the cDevice it is attached to).

Definition at line 27 of file receiver.c.

References ca, device, esyslog, MAXRECEIVEPIDS, pids, and priority.

cReceiver::~cReceiver   [virtual]
 

Definition at line 58 of file receiver.c.

References Detach().


Member Function Documentation

virtual void cReceiver::Activate bool    On [inline, protected, virtual]
 

This function is called just before the cReceiver gets attached to (On == true) or detached from (On == false) a cDevice. It can be used to do things like starting/stopping a thread. It is guaranteed that Receive() will not be called before Activate(true).

Reimplemented in cRecorder, and cTransfer.

Definition at line 35 of file receiver.h.

Referenced by cDevice::AttachReceiver(), and cDevice::Detach().

void cReceiver::Detach void    [protected]
 

Definition at line 76 of file receiver.c.

References cDevice::Detach(), and device.

Referenced by ~cReceiver(), cRecorder::~cRecorder(), and cTransfer::~cTransfer().

virtual void cReceiver::Receive uchar   Data,
int    Length
[protected, pure virtual]
 

This function is called from the cDevice we are attached to, and delivers one TS packet from the set of PIDs the cReceiver has requested. The data packet must be accepted immediately, and the call must return as soon as possible, without any unnecessary delay. Each TS packet will be delivered only ONCE, so the cReceiver must make sure that it will be able to buffer the data if necessary.

Implemented in cRecorder, and cTransfer.

bool cReceiver::WantsPid int    Pid [private]
 

Definition at line 63 of file receiver.c.

References MAXRECEIVEPIDS, and pids.

Referenced by cDevice::Action().


Friends And Related Function Documentation

friend class cDevice [friend]
 

Definition at line 19 of file receiver.h.


Field Documentation

int cReceiver::ca [private]
 

Definition at line 22 of file receiver.h.

Referenced by cDevice::Ca(), and cReceiver().

cDevice* cReceiver::device [private]
 

Definition at line 21 of file receiver.h.

Referenced by cDevice::AttachReceiver(), cReceiver(), Detach(), and cDevice::Detach().

int cReceiver::pids[MAXRECEIVEPIDS] [private]
 

Definition at line 24 of file receiver.h.

Referenced by cDevice::AttachReceiver(), cReceiver(), cDevice::Detach(), and WantsPid().

int cReceiver::priority [private]
 

Definition at line 23 of file receiver.h.

Referenced by cReceiver(), and cDevice::Receiving().


The documentation for this class was generated from the following files:
Generated on Wed Feb 5 23:31:49 2003 for VDR by doxygen1.3-rc2