Home

Dokumentation

Impressum

Dokumentation VDR
 

Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

cFile Class Reference

#include <tools.h>


Detailed Description

File handling.

Definition at line 99 of file tools.h.

Public Methods

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

Static Public Methods

bool AnyFileReady (int FileDes=-1, int TimeoutMs=1000)
bool FileReady (int FileDes, int TimeoutMs=1000)
bool FileReadyForWriting (int FileDes, int TimeoutMs=1000)

Private Attributes

int f

Static Private Attributes

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


Constructor & Destructor Documentation

cFile::cFile void   
 

Definition at line 542 of file tools.c.

References f.

cFile::~cFile  
 

Definition at line 547 of file tools.c.

References Close().


Member Function Documentation

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

Definition at line 599 of file tools.c.

References files, and maxFiles.

Referenced by Ready().

void cFile::Close void   
 

Definition at line 585 of file tools.c.

References f, and files.

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

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

Definition at line 617 of file tools.c.

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

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

Definition at line 630 of file tools.c.

bool cFile::IsOpen void    [inline]
 

Definition at line 111 of file tools.h.

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

bool cFile::Open int    FileDes
 

Definition at line 560 of file tools.c.

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

bool cFile::Open const char *    FileName,
int    Flags,
mode_t    Mode = S_IRUSR|S_IWUSR|S_IRGRP
 

Definition at line 552 of file tools.c.

References esyslog, and IsOpen().

Referenced by cSVDRP::Process().

cFile::operator int   [inline]
 

Definition at line 107 of file tools.h.

bool cFile::Ready bool    Wait = true
 

Definition at line 594 of file tools.c.

References AnyFileReady(), and f.

Referenced by cSVDRP::Process().


Field Documentation

int cFile::f [private]
 

Definition at line 103 of file tools.h.

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

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

Definition at line 539 of file tools.c.

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

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

Definition at line 540 of file tools.c.

Referenced by AnyFileReady(), and Open().


The documentation for this class was generated from the following files:
Generated on Wed Feb 5 23:31:13 2003 for VDR by doxygen1.3-rc2