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 27 of file recorder.c.


Constructor & Destructor Documentation

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

Definition at line 45 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 65 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 72 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 85 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 96 of file recorder.c.

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

Here is the call graph for this function:


Member Data Documentation

Definition at line 29 of file recorder.c.

Referenced by Action(), and cFileWriter().

Definition at line 30 of file recorder.c.

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

Definition at line 31 of file recorder.c.

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

Definition at line 32 of file recorder.c.

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

int cFileWriter::fileSize [private]

Definition at line 33 of file recorder.c.

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

Definition at line 34 of file recorder.c.

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

Definition at line 35 of file recorder.c.

Referenced by cFileWriter(), and RunningLowOnDiskSpace().


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

Generated on Tue Nov 4 19:59:01 2008 for VDR by  doxygen 1.5.6