Passenger::TempFile Class Reference
[Apache-independent support classes and function]

#include <Utils.h>

List of all members.


Detailed Description

Represents a temporary file.

The associated file is automatically deleted upon object destruction.

Public Member Functions

 TempFile (bool anonymous=true)
 Create an empty, temporary file, and open it for reading and writing.

Public Attributes

string filename
 The filename.
FILE * handle
 The file handle.


Constructor & Destructor Documentation

Passenger::TempFile::TempFile ( bool  anonymous = true  )  [inline]

Create an empty, temporary file, and open it for reading and writing.

Parameters:
anonymous Set to true if this temp file should be unlinked immediately. Anonymous temp files are useful if one just wants a big not-in-memory buffer to work with.
Exceptions:
SystemException Something went wrong.


Member Data Documentation

The filename.

If this temp file is anonymous, then the filename is an empty string.

The file handle.


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

Generated on Tue Jun 24 14:03:45 2008 for Passenger by  doxygen 1.5.5