vdr  2.0.6
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
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 AnyFileReady (int FileDes=-1, int TimeoutMs=1000)
 
static bool FileReady (int FileDes, int TimeoutMs=1000)
 
static bool FileReadyForWriting (int FileDes, int TimeoutMs=1000)
 

Private Attributes

int f
 

Static Private Attributes

static bool files [] = { false }
 
static int maxFiles = 0
 

Detailed Description

Definition at line 373 of file tools.h.

Constructor & Destructor Documentation

cFile::cFile ( void  )

Definition at line 1470 of file tools.c.

References f.

cFile::~cFile ( )

Definition at line 1475 of file tools.c.

References Close().

Member Function Documentation

bool cFile::AnyFileReady ( int  FileDes = -1,
int  TimeoutMs = 1000 
)
static

Definition at line 1527 of file tools.c.

References files, and maxFiles.

Referenced by Ready().

void cFile::Close ( void  )

Definition at line 1513 of file tools.c.

References f, and files.

Referenced by cSVDRP::Close(), and ~cFile().

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

Definition at line 1545 of file tools.c.

Referenced by cLircRemote::Action(), and cRcuRemote::ReceiveByte().

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

Definition at line 1560 of file tools.c.

bool cFile::IsOpen ( void  )
inline

Definition at line 385 of file tools.h.

Referenced by cSVDRP::Close(), cSVDRP::HasConnection(), Open(), cSVDRP::Process(), and cSVDRP::Reply().

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

Definition at line 1480 of file tools.c.

References esyslog, and IsOpen().

Referenced by cSVDRP::Process().

bool cFile::Open ( int  FileDes)

Definition at line 1488 of file tools.c.

References esyslog, f, files, IsOpen(), and maxFiles.

cFile::operator int ( )
inline

Definition at line 381 of file tools.h.

bool cFile::Ready ( bool  Wait = true)

Definition at line 1522 of file tools.c.

References AnyFileReady(), and f.

Referenced by cSVDRP::Process().

Member Data Documentation

int cFile::f
private

Definition at line 377 of file tools.h.

Referenced by cFile(), Close(), Open(), and Ready().

bool cFile::files = { false }
staticprivate

Definition at line 375 of file tools.h.

Referenced by AnyFileReady(), Close(), and Open().

int cFile::maxFiles = 0
staticprivate

Definition at line 376 of file tools.h.

Referenced by AnyFileReady(), and Open().


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