CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FdGuard Class Reference

#include <file_guard.h>

Inheritance diagram for FdGuard:
Collaboration diagram for FdGuard:

Public Member Functions

 FdGuard ()
 FdGuard (const int fd)
 ~FdGuard ()
int fd () const

Private Attributes

int fd_

Additional Inherited Members

- Private Member Functions inherited from SingleCopy
 SingleCopy ()

Detailed Description

RAII object to close a file descriptor when it gets out of scope

Definition at line 51 of file file_guard.h.

Constructor & Destructor Documentation

FdGuard::FdGuard ( )

Definition at line 53 of file file_guard.h.

FdGuard::FdGuard ( const int  fd)

Definition at line 54 of file file_guard.h.

FdGuard::~FdGuard ( )

Definition at line 55 of file file_guard.h.

Member Function Documentation

int FdGuard::fd ( ) const

Definition at line 56 of file file_guard.h.

Member Data Documentation

int FdGuard::fd_

Definition at line 59 of file file_guard.h.

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