cFileWriter Class Reference

Inheritance diagram for cFileWriter:

Inheritance graph
[legend]
Collaboration diagram for cFileWriter:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 cFileWriter (const char *FileName, cRemux *Remux)
virtual ~cFileWriter ()

Protected Member Functions

virtual void Action (void)

Private Member Functions

bool RunningLowOnDiskSpace (void)
bool NextFile (void)

Private Attributes

cRemuxremux
cFileNamefileName
cIndexFileindex
uchar pictureType
int fileSize
cUnbufferedFilerecordFile
time_t lastDiskSpaceCheck


Detailed Description

Definition at line 24 of file recorder.c.


Constructor & Destructor Documentation

cFileWriter::cFileWriter ( const char *  FileName,
cRemux Remux 
)

Definition at line 42 of file recorder.c.

References esyslog, fileName, fileSize, index, lastDiskSpaceCheck, NO_PICTURE, cFileName::Open(), pictureType, recordFile, and remux.

Here is the call graph for this function:

cFileWriter::~cFileWriter (  )  [virtual]

Definition at line 62 of file recorder.c.

References cThread::Cancel(), fileName, and index.

Here is the call graph for this function:


Member Function Documentation

bool cFileWriter::RunningLowOnDiskSpace ( void   )  [private]

Definition at line 69 of file recorder.c.

References DISKCHECKINTERVAL, dsyslog, fileName, FreeDiskSpaceMB(), lastDiskSpaceCheck, MINFREEDISKSPACE, and cFileName::Name().

Referenced by NextFile().

Here is the call graph for this function:

bool cFileWriter::NextFile ( void   )  [private]

Definition at line 82 of file recorder.c.

References fileName, fileSize, I_FRAME, cSetup::MaxVideoFileSize, MEGABYTE, cFileName::NextFile(), pictureType, recordFile, RunningLowOnDiskSpace(), and Setup.

Referenced by Action().

Here is the call graph for this function:

void cFileWriter::Action ( void   )  [protected, virtual]

A derived cThread class must implement the code it wants to execute as a separate thread in this function. If this is a loop, it must check Running() repeatedly to see whether it's time to stop.

Implements cThread.

Definition at line 93 of file recorder.c.

References cRemux::Del(), cThread::EmergencyExit(), esyslog, fileName, fileSize, cRemux::Get(), I_FRAME, index, LOG_ERROR_STR, MAXBROKENTIMEOUT, cFileName::Name(), NextFile(), NO_PICTURE, cFileName::Number(), pictureType, recordFile, remux, cThread::Running(), cUnbufferedFile::Write(), and cIndexFile::Write().

Here is the call graph for this function:


Member Data Documentation

cRemux* cFileWriter::remux [private]

Definition at line 26 of file recorder.c.

Referenced by Action(), and cFileWriter().

cFileName* cFileWriter::fileName [private]

Definition at line 27 of file recorder.c.

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

cIndexFile* cFileWriter::index [private]

Definition at line 28 of file recorder.c.

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

uchar cFileWriter::pictureType [private]

Definition at line 29 of file recorder.c.

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

int cFileWriter::fileSize [private]

Definition at line 30 of file recorder.c.

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

cUnbufferedFile* cFileWriter::recordFile [private]

Definition at line 31 of file recorder.c.

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

time_t cFileWriter::lastDiskSpaceCheck [private]

Definition at line 32 of file recorder.c.

Referenced by cFileWriter(), and RunningLowOnDiskSpace().


The documentation for this class was generated from the following file:
Generated on Tue Nov 6 20:12:15 2007 for VDR by  doxygen 1.5.3-20071008