vdr  1.7.27
Public Member Functions | Protected Member Functions | Private Attributes
cSdtFilter Class Reference

#include <sdt.h>

List of all members.

Public Member Functions

 cSdtFilter (cPatFilter *PatFilter)
virtual void SetStatus (bool On)
 cSdtFilter (cPatFilter *PatFilter)
virtual void SetStatus (bool On)

Protected Member Functions

virtual void Process (u_short Pid, u_char Tid, const u_char *Data, int Length)
virtual void Process (u_short Pid, u_char Tid, const u_char *Data, int Length)

Private Attributes

cSectionSyncer sectionSyncer
cPatFilterpatFilter

Detailed Description

Definition at line 16 of file include/vdr/sdt.h.


Constructor & Destructor Documentation

Definition at line 18 of file sdt.c.

References patFilter, and cFilter::Set().


Member Function Documentation

void cSdtFilter::Process ( u_short  Pid,
u_char  Tid,
const u_char *  Data,
int  Length 
) [protected, 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.

Implements cFilter.

Definition at line 30 of file sdt.c.

References cListBase::Add(), cFilter::Channel(), Channels, SI::CRCSection::CheckCRCAndParse(), compactspace(), cChannels::GetByChannelID(), SI::Descriptor::getDescriptorTag(), SI::NumberedSection::getLastSectionNumber(), SI::StructureLoop< T >::getNext(), SI::DescriptorLoop::getNext(), SI::SDT::getOriginalNetworkId(), SI::NVODReferenceDescriptor::Service::getOriginalNetworkId(), SI::NumberedSection::getSectionNumber(), SI::SDT::Service::getServiceId(), SI::NVODReferenceDescriptor::Service::getServiceId(), SI::ServiceDescriptor::getServiceType(), SI::String::getText(), SI::NVODReferenceDescriptor::Service::getTransportStream(), SI::SDT::getTransportStreamId(), SI::NumberedSection::getVersionNumber(), cSource::IsCable(), cRwLock::Lock(), cChannels::NewChannel(), SI::NVODReferenceDescriptorTag, patFilter, SI::ServiceDescriptor::providerName, sectionSyncer, SI::SDT::Service::serviceDescriptors, SI::ServiceDescriptorTag, SI::SDT::serviceLoop, SI::NVODReferenceDescriptor::serviceLoop, SI::ServiceDescriptor::serviceName, cChannel::SetId(), cChannel::SetLinkChannels(), cChannel::SetName(), Setup, skipspace(), cFilter::Source(), cSectionSyncer::Sync(), cFilter::Transponder(), cPatFilter::Trigger(), cRwLock::Unlock(), cSetup::UpdateChannels, and Utf8BufSize.

virtual void cSdtFilter::Process ( u_short  Pid,
u_char  Tid,
const u_char *  Data,
int  Length 
) [protected, 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.

Implements cFilter.

virtual void cSdtFilter::SetStatus ( bool  On) [virtual]

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 from cFilter.

void cSdtFilter::SetStatus ( bool  On) [virtual]

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 from cFilter.

Definition at line 24 of file sdt.c.

References cSectionSyncer::Reset(), and sectionSyncer.


Member Data Documentation

Definition at line 19 of file include/vdr/sdt.h.

Referenced by cSdtFilter(), and Process().

Definition at line 18 of file include/vdr/sdt.h.

Referenced by Process(), and SetStatus().


The documentation for this class was generated from the following files: