fdcloser Class Reference

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

#include <btree_util.h>

List of all members.

Public Member Functions

 fdcloser (int fd_)
 ~fdcloser ()
 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 46 of file flint_btreebase.cc.


Constructor & Destructor Documentation

fdcloser::fdcloser ( int  fd_  )  [inline]

Definition at line 48 of file flint_btreebase.cc.

fdcloser::~fdcloser (  )  [inline]

Definition at line 49 of file flint_btreebase.cc.

References fd.

fdcloser::fdcloser ( int  fd_  )  [inline]

Definition at line 128 of file btree_util.h.

fdcloser::~fdcloser (  )  [inline]

Definition at line 129 of file btree_util.h.

References fd, and sys_close().


Member Data Documentation

int fdcloser::fd [private]

Definition at line 55 of file flint_btreebase.cc.

Referenced by ~fdcloser().


The documentation for this class was generated from the following files:
Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.