vdr 2.7.3
|
#include <filter.h>
Protected Member Functions | |
cFilter (void) | |
cFilter (u_short Pid, u_char Tid, u_char Mask=0xFF) | |
virtual | ~cFilter () |
virtual void | SetStatus (bool On) |
virtual void | Process (u_short Pid, u_char Tid, const u_char *Data, int Length)=0 |
int | Source (void) |
int | Transponder (void) |
const cChannel * | Channel (void) |
bool | Matches (u_short Pid, u_char Tid) |
void | Set (u_short Pid, u_char Tid, u_char Mask=0xFF) |
void | Add (u_short Pid, u_char Tid, u_char Mask=0xFF, bool Sticky=false) |
void | Del (u_short Pid, u_char Tid, u_char Mask=0xFF) |
Private Attributes | |
cSectionHandler * | sectionHandler |
cList< cFilterData > | data |
bool | on |
Friends | |
class | cSectionHandler |
Additional Inherited Members | |
![]() | |
cListObject (void) | |
virtual | ~cListObject () |
virtual int | Compare (const cListObject &ListObject) const |
void | Append (cListObject *Object) |
void | Insert (cListObject *Object) |
void | Unlink (void) |
int | Index (void) const |
cListObject * | Prev (void) const |
cListObject * | Next (void) const |
|
protected |
Definition at line 144 of file filter.c.
References on, and sectionHandler.
|
protected |
Definition at line 150 of file filter.c.
References on, sectionHandler, and Set().
|
protectedvirtual |
Definition at line 157 of file filter.c.
References sectionHandler.
|
protected |
Adds the given filter data to this filter.
If Sticky is true, this will survive a status change, otherwise it will be automatically deleted.
Definition at line 216 of file filter.c.
References data, on, and sectionHandler.
Referenced by cPatFilter::Process(), Set(), and cPatFilter::SwitchToNextPmtPid().
|
protected |
Returns the channel of the data delivered to this filter.
Definition at line 173 of file filter.c.
References sectionHandler.
Referenced by cNitFilter::Process(), cPatFilter::Process(), and cSdtFilter::Process().
|
protected |
Deletes the given filter data from this filter.
Definition at line 224 of file filter.c.
References data, on, and sectionHandler.
Referenced by cPatFilter::Process(), and cPatFilter::SwitchToNextPmtPid().
|
protected |
|
protectedpure virtual |
Processes the data delivered to this filter.
Pid and Tid is one of the combinations added to this filter by a previous call to Add(), Data is a pointer to Length bytes of data. This function will be called from the section handler's thread, so it has to use proper locking mechanisms in case it accesses any global data. It is guaranteed that if several cFilters are attached to the same cSectionHandler, only one of them has its Process() function called at any given time. It is allowed that more than one cFilter are set up to receive the same Pid/Tid. The Process() function must return as soon as possible.
Implemented in cEitFilter, cNitFilter, cPatFilter, and cSdtFilter.
|
protected |
Sets the given filter data by calling Add() with Sticky = true.
Definition at line 211 of file filter.c.
References Add().
Referenced by cEitFilter::cEitFilter(), cFilter(), cNitFilter::cNitFilter(), cPatFilter::cPatFilter(), and cSdtFilter::cSdtFilter().
|
protectedvirtual |
Turns this filter on or off, depending on the value of On.
If the filter is turned off, any filter data that has been added without the Sticky parameter set to 'true' will be automatically deleted. Those parameters that have been added with Sticky set to 'true' will be automatically reused when SetStatus(true) is called.
Reimplemented in cEitFilter, cNitFilter, cPatFilter, and cSdtFilter.
Definition at line 178 of file filter.c.
References data, cListObject::next, on, sectionHandler, and cFilterData::sticky.
Referenced by cSectionHandler::Attach(), cSectionHandler::Detach(), cEitFilter::SetStatus(), cNitFilter::SetStatus(), cPatFilter::SetStatus(), and cSdtFilter::SetStatus().
|
protected |
Returns the source of the data delivered to this filter.
Definition at line 163 of file filter.c.
References sectionHandler.
Referenced by cEitFilter::Process(), cNitFilter::Process(), cPatFilter::Process(), cSdtFilter::Process(), cPatFilter::TransponderChanged(), and cSdtFilter::Trigger().
|
protected |
Returns the transponder of the data delivered to this filter.
Definition at line 168 of file filter.c.
References sectionHandler.
Referenced by cPatFilter::PmtVersionChanged(), cEitFilter::Process(), cNitFilter::Process(), cPatFilter::Process(), cSdtFilter::Process(), and cPatFilter::TransponderChanged().
|
friend |
|
private |
|
private |
|
private |
Definition at line 83 of file filter.h.
Referenced by Add(), cSectionHandler::Attach(), cFilter(), cFilter(), Channel(), Del(), cSectionHandler::Detach(), SetStatus(), Source(), Transponder(), and ~cFilter().