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, bool IsPesRecording=false)
 ~cIndexFile ()
bool Ok (void)
bool Write (bool Independent, uint16_t FileNumber, off_t FileOffset)
bool Get (int Index, uint16_t *FileNumber, off_t *FileOffset, bool *Independent=NULL, int *Length=NULL)
int GetNextIFrame (int Index, bool Forward, uint16_t *FileNumber=NULL, off_t *FileOffset=NULL, int *Length=NULL, bool StayOffEnd=false)
int Get (uint16_t FileNumber, off_t FileOffset)
int Last (void)
int GetResume (void)
bool StoreResume (int Index)
bool IsStillRecording (void)

Private Member Functions

void ConvertFromPes (tIndexTs *IndexTs, int Count)
bool CatchUp (int Index=-1)

Private Attributes

int f
char * fileName
int size
int last
tIndexTsindex
bool isPesRecording
cResumeFile resumeFile
cMutex mutex


Detailed Description

Definition at line 221 of file recording.h.


Constructor & Destructor Documentation

cIndexFile::cIndexFile ( const char *  FileName,
bool  Record,
bool  IsPesRecording = false 
)

Definition at line 1341 of file recording.c.

References ConvertFromPes(), esyslog, f, fileName, index, INDEXFILESUFFIX, isPesRecording, 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 1413 of file recording.c.

References f, fileName, and index.


Member Function Documentation

void cIndexFile::ConvertFromPes ( tIndexTs IndexTs,
int  Count 
) [private]

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

Definition at line 1433 of file recording.c.

References ConvertFromPes(), esyslog, f, fileName, index, INDEXSAFETYLIMIT, isPesRecording, 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 235 of file recording.h.

References index.

Referenced by cDvbPlayer::cDvbPlayer().

bool cIndexFile::Write ( bool  Independent,
uint16_t  FileNumber,
off_t  FileOffset 
)

Definition at line 1488 of file recording.c.

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

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

Here is the call graph for this function:

bool cIndexFile::Get ( int  Index,
uint16_t *  FileNumber,
off_t *  FileOffset,
bool *  Independent = NULL,
int *  Length = NULL 
)

Definition at line 1503 of file recording.c.

References CatchUp(), tIndexTs::independent, index, last, tIndexTs::number, and tIndexTs::offset.

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

Here is the call graph for this function:

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

int cIndexFile::Get ( uint16_t  FileNumber,
off_t  FileOffset 
)

Definition at line 1562 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 240 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 241 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 242 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 1576 of file recording.c.

References f.

Referenced by cDvbPlayer::Action().


Member Data Documentation

int cIndexFile::f [private]

Definition at line 223 of file recording.h.

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

char* cIndexFile::fileName [private]

Definition at line 224 of file recording.h.

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

int cIndexFile::size [private]

Definition at line 225 of file recording.h.

Referenced by CatchUp(), and cIndexFile().

int cIndexFile::last [private]

Definition at line 225 of file recording.h.

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

Definition at line 226 of file recording.h.

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

Definition at line 227 of file recording.h.

Referenced by CatchUp(), and cIndexFile().

Definition at line 228 of file recording.h.

Referenced by GetResume(), and StoreResume().

Definition at line 229 of file recording.h.

Referenced by CatchUp().


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

Generated on Tue Jan 13 14:29:06 2009 for VDR by  doxygen 1.5.6