Back to index

courier  0.68.2
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
TempFile Class Reference

#include <tempfile.h>

Inheritance diagram for TempFile:
Inheritance graph
[legend]
Collaboration diagram for TempFile:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TempFile ()
 ~TempFile ()
int Open (const char *, int, mode_t=0666)
void Close ()

Static Public Member Functions

static void onexit ()
static void onfork ()

Protected Member Functions

void cleanup ()
void forked ()
void name (const char *)
void descriptor (int fd_)
void destroying ()
void constructed ()

Protected Attributes

char * filename
int fd
int do_remove

Detailed Description

Definition at line 31 of file tempfile.h.


Constructor & Destructor Documentation


Member Function Documentation

void TempFile::cleanup ( ) [protected, virtual]

Implements ExitTrap.

Reimplemented in DeliverDotLock.

void TempFile::Close ( )
void ExitTrap::constructed ( ) [inline, protected, inherited]

Definition at line 26 of file exittrap.h.

{ callcleanup=1; }
void TempFile::descriptor ( int  fd_) [inline, protected]

Definition at line 54 of file tempfile.h.

{ fd=fd_; }
void ExitTrap::destroying ( ) [inline, protected, inherited]

Definition at line 25 of file exittrap.h.

{ callcleanup=0; }
void TempFile::forked ( ) [protected, virtual]

Implements ExitTrap.

void TempFile::name ( const char *  ) [protected]
static void ExitTrap::onexit ( ) [static, inherited]
static void ExitTrap::onfork ( ) [static, inherited]
int TempFile::Open ( const char *  ,
int  ,
mode_t  = 0666 
)

Member Data Documentation

int TempFile::do_remove [protected]

Definition at line 43 of file tempfile.h.

int TempFile::fd [protected]

Definition at line 41 of file tempfile.h.

char* TempFile::filename [protected]

Definition at line 40 of file tempfile.h.


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