vdr  2.6.1
Public Member Functions | Private Attributes | List of all members
cFileName Class Reference

#include <recording.h>

Public Member Functions

 cFileName (const char *FileName, bool Record, bool Blocking=false, bool IsPesRecording=false)
 
 ~cFileName ()
 
const char * Name (void)
 
uint16_t Number (void)
 
bool GetLastPatPmtVersions (int &PatVersion, int &PmtVersion)
 
cUnbufferedFileOpen (void)
 
void Close (void)
 
cUnbufferedFileSetOffset (int Number, off_t Offset=0)
 
cUnbufferedFileNextFile (void)
 

Private Attributes

cUnbufferedFilefile
 
uint16_t fileNumber
 
char * fileName
 
char * pFileNumber
 
bool record
 
bool blocking
 
bool isPesRecording
 

Detailed Description

Definition at line 494 of file recording.h.

Constructor & Destructor Documentation

◆ cFileName()

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

◆ ~cFileName()

cFileName::~cFileName ( )

Definition at line 2945 of file recording.c.

References Close(), and fileName.

Member Function Documentation

◆ Close()

void cFileName::Close ( void  )

Definition at line 3026 of file recording.c.

References cUnbufferedFile::Close(), file, fileName, and LOG_ERROR_STR.

Referenced by SetOffset(), and ~cFileName().

◆ GetLastPatPmtVersions()

bool cFileName::GetLastPatPmtVersions ( int &  PatVersion,
int &  PmtVersion 
)

◆ Name()

const char* cFileName::Name ( void  )
inline

Definition at line 505 of file recording.h.

References fileName.

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

◆ NextFile()

cUnbufferedFile * cFileName::NextFile ( void  )

◆ Number()

uint16_t cFileName::Number ( void  )
inline

◆ Open()

cUnbufferedFile * cFileName::Open ( void  )

◆ SetOffset()

cUnbufferedFile * cFileName::SetOffset ( int  Number,
off_t  Offset = 0 
)

Member Data Documentation

◆ blocking

bool cFileName::blocking
private

Definition at line 500 of file recording.h.

Referenced by cFileName(), and Open().

◆ file

cUnbufferedFile* cFileName::file
private

Definition at line 496 of file recording.h.

Referenced by cFileName(), Close(), Open(), and SetOffset().

◆ fileName

char* cFileName::fileName
private

Definition at line 498 of file recording.h.

Referenced by cFileName(), Close(), GetLastPatPmtVersions(), Name(), Open(), SetOffset(), and ~cFileName().

◆ fileNumber

uint16_t cFileName::fileNumber
private

Definition at line 497 of file recording.h.

Referenced by cFileName(), NextFile(), Number(), and SetOffset().

◆ isPesRecording

bool cFileName::isPesRecording
private

Definition at line 501 of file recording.h.

Referenced by cFileName(), GetLastPatPmtVersions(), and SetOffset().

◆ pFileNumber

char * cFileName::pFileNumber
private

Definition at line 498 of file recording.h.

Referenced by cFileName(), GetLastPatPmtVersions(), and SetOffset().

◆ record

bool cFileName::record
private

Definition at line 499 of file recording.h.

Referenced by cFileName(), Open(), and SetOffset().


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