fdcloser Class Reference

A tiny class used to close a filehandle safely in the presence of exceptions. More...

#include <utils.h>

List of all members.

Public Member Functions

 fdcloser (int fd_)
 ~fdcloser ()

Private Attributes

int fd


Detailed Description

A tiny class used to close a filehandle safely in the presence of exceptions.

Definition at line 80 of file utils.h.


Constructor & Destructor Documentation

fdcloser::fdcloser ( int  fd_  )  [inline]

Definition at line 82 of file utils.h.

fdcloser::~fdcloser (  )  [inline]

Definition at line 83 of file utils.h.

References fd.


Member Data Documentation

int fdcloser::fd [private]

Definition at line 89 of file utils.h.

Referenced by ~fdcloser().


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

Documentation for Xapian (version 1.2.8).
Generated on 14 Dec 2011 by Doxygen 1.5.9.