vdr  1.7.31
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
cRecorder Class Reference

#include <recorder.h>

Public Member Functions

 cRecorder (const char *FileName, const cChannel *Channel, int Priority)
virtual ~cRecorder ()
 cRecorder (const char *FileName, const cChannel *Channel, int Priority)
virtual ~cRecorder ()
- Public Member Functions inherited from cReceiver
 cReceiver (const cChannel *Channel=NULL, int Priority=MINPRIORITY)
virtual ~cReceiver ()
bool AddPid (int Pid)
bool AddPids (const int *Pids)
bool AddPids (int Pid1, int Pid2, int Pid3=0, int Pid4=0, int Pid5=0, int Pid6=0, int Pid7=0, int Pid8=0, int Pid9=0)
bool SetPids (const cChannel *Channel)
tChannelID ChannelID (void)
bool IsAttached (void)
 cReceiver (const cChannel *Channel=NULL, int Priority=MINPRIORITY)
virtual ~cReceiver ()
bool AddPid (int Pid)
bool AddPids (const int *Pids)
bool AddPids (int Pid1, int Pid2, int Pid3=0, int Pid4=0, int Pid5=0, int Pid6=0, int Pid7=0, int Pid8=0, int Pid9=0)
bool SetPids (const cChannel *Channel)
tChannelID ChannelID (void)
bool IsAttached (void)

Protected Member Functions

virtual void Activate (bool On)
virtual void Receive (uchar *Data, int Length)
virtual void Action (void)
virtual void Activate (bool On)
virtual void Receive (uchar *Data, int Length)
virtual void Action (void)
- Protected Member Functions inherited from cReceiver
void Detach (void)
virtual void Activate (bool On)
virtual void Receive (uchar *Data, int Length)=0
void Detach (void)
virtual void Activate (bool On)
virtual void Receive (uchar *Data, int Length)=0

Private Member Functions

bool RunningLowOnDiskSpace (void)
bool NextFile (void)
bool RunningLowOnDiskSpace (void)
bool NextFile (void)
- Private Member Functions inherited from cThread
 cThread (const char *Description=NULL)
virtual ~cThread ()
void SetDescription (const char *Description,...) __attribute__((format(printf
void bool Start (void)
bool Active (void)
 cThread (const char *Description=NULL)
virtual ~cThread ()
void SetDescription (const char *Description,...) __attribute__((format(printf
void bool Start (void)
bool Active (void)
void SetPriority (int Priority)
void SetIOPriority (int Priority)
void Lock (void)
void Unlock (void)
virtual void Action (void)=0
bool Running (void)
void Cancel (int WaitSeconds=0)
void SetPriority (int Priority)
void SetIOPriority (int Priority)
void Lock (void)
void Unlock (void)
virtual void Action (void)=0
bool Running (void)
void Cancel (int WaitSeconds=0)

Private Attributes

cRingBufferLinearringBuffer
cFrameDetectorframeDetector
cPatPmtGenerator patPmtGenerator
cFileNamefileName
cIndexFileindex
cUnbufferedFilerecordFile
char * recordingName
off_t fileSize
time_t lastDiskSpaceCheck

Additional Inherited Members

- Static Private Member Functions inherited from cThread
static tThreadId ThreadId (void)
static tThreadId IsMainThread (void)
static void SetMainThreadId (void)
static tThreadId ThreadId (void)
static tThreadId IsMainThread (void)
static void SetMainThreadId (void)

Detailed Description

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

Constructor & Destructor Documentation

cRecorder::cRecorder ( const char *  FileName,
const cChannel Channel,
int  Priority 
)
cRecorder::~cRecorder ( )
virtual

Definition at line 67 of file recorder.c.

References cReceiver::Detach(), fileName, frameDetector, index, recordingName, and ringBuffer.

cRecorder::cRecorder ( const char *  FileName,
const cChannel Channel,
int  Priority 
)
virtual cRecorder::~cRecorder ( )
virtual

Member Function Documentation

void cRecorder::Action ( void  )
protectedvirtual
virtual void cRecorder::Action ( void  )
protectedvirtual
virtual void cRecorder::Activate ( bool  On)
protectedvirtual
void cRecorder::Activate ( bool  On)
protectedvirtual

Definition at line 101 of file recorder.c.

References cThread::Cancel(), and cThread::Start().

bool cRecorder::NextFile ( void  )
private
bool cRecorder::NextFile ( void  )
private
virtual void cRecorder::Receive ( uchar Data,
int  Length 
)
protectedvirtual
void cRecorder::Receive ( uchar Data,
int  Length 
)
protectedvirtual
bool cRecorder::RunningLowOnDiskSpace ( void  )
private
bool cRecorder::RunningLowOnDiskSpace ( void  )
private

Member Data Documentation

cFileName * cRecorder::fileName
private

Definition at line 24 of file include/vdr/recorder.h.

Referenced by Action(), cRecorder(), NextFile(), RunningLowOnDiskSpace(), and ~cRecorder().

off_t cRecorder::fileSize
private

Definition at line 28 of file include/vdr/recorder.h.

Referenced by Action(), cRecorder(), and NextFile().

cFrameDetector * cRecorder::frameDetector
private

Definition at line 22 of file include/vdr/recorder.h.

Referenced by Action(), cRecorder(), NextFile(), and ~cRecorder().

cIndexFile * cRecorder::index
private

Definition at line 25 of file include/vdr/recorder.h.

Referenced by Action(), cRecorder(), and ~cRecorder().

time_t cRecorder::lastDiskSpaceCheck
private

Definition at line 29 of file include/vdr/recorder.h.

Referenced by cRecorder(), and RunningLowOnDiskSpace().

cPatPmtGenerator cRecorder::patPmtGenerator
private

Definition at line 23 of file include/vdr/recorder.h.

Referenced by Action(), and cRecorder().

cUnbufferedFile * cRecorder::recordFile
private

Definition at line 26 of file include/vdr/recorder.h.

Referenced by Action(), cRecorder(), and NextFile().

char * cRecorder::recordingName
private

Definition at line 27 of file include/vdr/recorder.h.

Referenced by Action(), cRecorder(), and ~cRecorder().

cRingBufferLinear * cRecorder::ringBuffer
private

Definition at line 21 of file include/vdr/recorder.h.

Referenced by Action(), cRecorder(), Receive(), and ~cRecorder().


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