vdr 2.7.6
cFile Class Reference

#include <tools.h>

Public Member Functions

 cFile (void)
 
 ~cFile ()
 
 operator int ()
 
bool Open (const char *FileName, int Flags, mode_t Mode=DEFFILEMODE)
 
bool Open (int FileDes)
 
void Close (void)
 
bool IsOpen (void)
 
bool Ready (bool Wait=true)
 

Static Public Member Functions

static bool FileReady (int FileDes, int TimeoutMs=1000)
 

Private Attributes

int f
 

Detailed Description

Definition at line 463 of file tools.h.

Constructor & Destructor Documentation

◆ cFile()

cFile::cFile ( void )

Definition at line 1682 of file tools.c.

References f.

◆ ~cFile()

cFile::~cFile ( )

Definition at line 1687 of file tools.c.

References Close().

Member Function Documentation

◆ Close()

void cFile::Close ( void )

Definition at line 1711 of file tools.c.

References f.

Referenced by ~cFile().

◆ FileReady()

bool cFile::FileReady ( int FileDes,
int TimeoutMs = 1000 )
static

Definition at line 1724 of file tools.c.

Referenced by cLircUsrRemote::Action(), Ready(), and cRcuRemote::ReceiveByte().

◆ IsOpen()

bool cFile::IsOpen ( void )
inline

Definition at line 473 of file tools.h.

References f.

Referenced by Open(), and Open().

◆ Open() [1/2]

bool cFile::Open ( const char * FileName,
int Flags,
mode_t Mode = DEFFILEMODE )

Definition at line 1692 of file tools.c.

References esyslog, IsOpen(), and Open().

Referenced by Open().

◆ Open() [2/2]

bool cFile::Open ( int FileDes)

Definition at line 1700 of file tools.c.

References esyslog, f, and IsOpen().

◆ operator int()

cFile::operator int ( )
inline

Definition at line 469 of file tools.h.

References f.

◆ Ready()

bool cFile::Ready ( bool Wait = true)

Definition at line 1719 of file tools.c.

References f, and FileReady().

Member Data Documentation

◆ f

int cFile::f
private

Definition at line 465 of file tools.h.

Referenced by cFile(), Close(), IsOpen(), Open(), operator int(), and Ready().


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