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

string Passenger::TempFile::filename

The filename.

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


The documentation for this class was generated from the following file:
Generated on Fri Jan 23 08:28:57 2009 for Passenger by  doxygen 1.4.7