cIndexFile Class Reference

#include <recording.h>

Collaboration diagram for cIndexFile:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 cIndexFile (const char *FileName, bool Record)
 ~cIndexFile ()
bool Ok (void)
bool Write (uchar PictureType, uchar FileNumber, int FileOffset)
bool Get (int Index, uchar *FileNumber, int *FileOffset, uchar *PictureType=NULL, int *Length=NULL)
int GetNextIFrame (int Index, bool Forward, uchar *FileNumber=NULL, int *FileOffset=NULL, int *Length=NULL, bool StayOffEnd=false)
int Get (uchar FileNumber, int FileOffset)
int Last (void)
int GetResume (void)
bool StoreResume (int Index)
bool IsStillRecording (void)

Private Member Functions

bool CatchUp (int Index=-1)

Private Attributes

int f
char * fileName
int size
int last
tIndexindex
cResumeFile resumeFile
cMutex mutex

Classes

struct  tIndex


Detailed Description

Definition at line 200 of file recording.h.


Constructor & Destructor Documentation

cIndexFile::cIndexFile ( const char *  FileName,
bool  Record 
)

Definition at line 1186 of file recording.c.

References esyslog, f, fileName, index, INDEXFILESUFFIX, isyslog, last, LOG_ERROR, LOG_ERROR_STR, MALLOC, safe_read(), size, and writechar().

Here is the call graph for this function:

cIndexFile::~cIndexFile (  ) 

Definition at line 1254 of file recording.c.

References f, fileName, and index.


Member Function Documentation

bool cIndexFile::CatchUp ( int  Index = -1  )  [private]

Definition at line 1262 of file recording.c.

References esyslog, f, fileName, index, INDEXSAFETYLIMIT, last, LOG_ERROR_STR, MININDEXAGE, mutex, safe_read(), size, and cCondWait::SleepMs().

Referenced by Get(), GetNextIFrame(), and Last().

Here is the call graph for this function:

bool cIndexFile::Ok ( void   )  [inline]

Definition at line 213 of file recording.h.

References index.

Referenced by cDvbPlayer::cDvbPlayer().

bool cIndexFile::Write ( uchar  PictureType,
uchar  FileNumber,
int  FileOffset 
)

Definition at line 1315 of file recording.c.

References f, fileName, last, LOG_ERROR_STR, and safe_write().

Referenced by cFileWriter::Action(), and cCuttingThread::Action().

Here is the call graph for this function:

bool cIndexFile::Get ( int  Index,
uchar FileNumber,
int *  FileOffset,
uchar PictureType = NULL,
int *  Length = NULL 
)

Definition at line 1330 of file recording.c.

References CatchUp(), index, last, cIndexFile::tIndex::number, cIndexFile::tIndex::offset, and cIndexFile::tIndex::type.

Referenced by cDvbPlayer::Action(), cCuttingThread::Action(), and cDvbPlayer::Resume().

Here is the call graph for this function:

int cIndexFile::GetNextIFrame ( int  Index,
bool  Forward,
uchar FileNumber = NULL,
int *  FileOffset = NULL,
int *  Length = NULL,
bool  StayOffEnd = false 
)

int cIndexFile::Get ( uchar  FileNumber,
int  FileOffset 
)

Definition at line 1389 of file recording.c.

References CatchUp(), index, and last.

Here is the call graph for this function:

int cIndexFile::Last ( void   )  [inline]

Definition at line 218 of file recording.h.

References CatchUp(), and last.

Referenced by cCuttingThread::Action(), and cDvbPlayer::GetIndex().

Here is the call graph for this function:

int cIndexFile::GetResume ( void   )  [inline]

Definition at line 219 of file recording.h.

References cResumeFile::Read(), and resumeFile.

Referenced by cDvbPlayer::Resume().

Here is the call graph for this function:

bool cIndexFile::StoreResume ( int  Index  )  [inline]

Definition at line 220 of file recording.h.

References resumeFile, and cResumeFile::Save().

Referenced by cDvbPlayer::Save().

Here is the call graph for this function:

bool cIndexFile::IsStillRecording ( void   ) 

Definition at line 1403 of file recording.c.

References f.

Referenced by cDvbPlayer::Action().


Member Data Documentation

int cIndexFile::f [private]

Definition at line 203 of file recording.h.

Referenced by CatchUp(), cIndexFile(), IsStillRecording(), Write(), and ~cIndexFile().

char* cIndexFile::fileName [private]

Definition at line 204 of file recording.h.

Referenced by CatchUp(), cIndexFile(), Write(), and ~cIndexFile().

int cIndexFile::size [private]

Definition at line 205 of file recording.h.

Referenced by CatchUp(), and cIndexFile().

int cIndexFile::last [private]

Definition at line 205 of file recording.h.

Referenced by CatchUp(), cIndexFile(), Get(), GetNextIFrame(), Last(), and Write().

Definition at line 206 of file recording.h.

Referenced by CatchUp(), cIndexFile(), Get(), GetNextIFrame(), Ok(), and ~cIndexFile().

Definition at line 207 of file recording.h.

Referenced by GetResume(), and StoreResume().

Definition at line 208 of file recording.h.

Referenced by CatchUp().


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

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