cFile Class Reference

#include <tools.h>

List of all members.

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 298 of file tools.h.


Constructor & Destructor Documentation

cFile::cFile ( void   ) 

Definition at line 1284 of file tools.c.

References f.

cFile::~cFile (  ) 

Definition at line 1289 of file tools.c.

References Close().

Here is the call graph for this function:


Member Function Documentation

cFile::operator int (  )  [inline]

Definition at line 306 of file tools.h.

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

Definition at line 1294 of file tools.c.

References esyslog, and IsOpen().

Referenced by cSVDRP::Process().

Here is the call graph for this function:

bool cFile::Open ( int  FileDes  ) 

Definition at line 1302 of file tools.c.

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

Here is the call graph for this function:

void cFile::Close ( void   ) 

Definition at line 1327 of file tools.c.

References f, and files.

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

bool cFile::IsOpen ( void   )  [inline]

Definition at line 310 of file tools.h.

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

bool cFile::Ready ( bool  Wait = true  ) 

Definition at line 1336 of file tools.c.

References AnyFileReady(), and f.

Referenced by cSVDRP::Process().

Here is the call graph for this function:

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

Definition at line 1341 of file tools.c.

References files, and maxFiles.

Referenced by Ready().

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

Definition at line 1359 of file tools.c.

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

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

Definition at line 1374 of file tools.c.


Member Data Documentation

bool cFile::files = { false } [static, private]

Definition at line 300 of file tools.h.

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

int cFile::maxFiles = 0 [static, private]

Definition at line 301 of file tools.h.

Referenced by AnyFileReady(), and Open().

int cFile::f [private]

Definition at line 302 of file tools.h.

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


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

Generated on Tue Nov 4 19:58:57 2008 for VDR by  doxygen 1.5.6