vdr 2.6.1
Public Member Functions | Static Public Member Functions | 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)
 
 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)
 
static bool FileReady (int FileDes, int TimeoutMs=1000)
 

Private Attributes

int f
 

Detailed Description

Definition at line 463 of file include/vdr/tools.h.

Constructor & Destructor Documentation

◆ cFile() [1/2]

cFile::cFile ( void  )

Definition at line 1641 of file tools.c.

◆ ~cFile() [1/2]

cFile::~cFile ( )

Definition at line 1646 of file tools.c.

◆ cFile() [2/2]

cFile::cFile ( void  )

◆ ~cFile() [2/2]

cFile::~cFile ( )

Member Function Documentation

◆ Close() [1/2]

void cFile::Close ( void  )

Definition at line 1686 of file tools.c.

Referenced by cSVDRPServer::Close(), and cSVDRPClient::Close().

◆ Close() [2/2]

void cFile::Close ( void  )

◆ FileReady() [1/2]

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

Definition at line 1722 of file tools.c.

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

◆ FileReady() [2/2]

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

◆ IsOpen() [1/2]

bool cFile::IsOpen ( void  )
inline

◆ IsOpen() [2/2]

bool cFile::IsOpen ( void  )
inline

Definition at line 477 of file tools.h.

◆ Open() [1/4]

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

Definition at line 1651 of file tools.c.

References esyslog.

Referenced by cSVDRPClient::cSVDRPClient(), and cSVDRPServer::cSVDRPServer().

◆ Open() [2/4]

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

◆ Open() [3/4]

bool cFile::Open ( int  FileDes)

Definition at line 1659 of file tools.c.

References esyslog.

◆ Open() [4/4]

bool cFile::Open ( int  FileDes)

◆ operator int() [1/2]

cFile::operator int ( )
inline

Definition at line 473 of file include/vdr/tools.h.

◆ operator int() [2/2]

cFile::operator int ( )
inline

Definition at line 473 of file tools.h.

◆ Ready() [1/2]

bool cFile::Ready ( bool  Wait = true)

Definition at line 1697 of file tools.c.

Referenced by cSVDRPClient::Process(), and cSVDRPServer::Process().

◆ Ready() [2/2]

bool cFile::Ready ( bool  Wait = true)

Member Data Documentation

◆ f

int cFile::f
private

Definition at line 469 of file include/vdr/tools.h.


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