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 ( )
inline

Definition at line 53 of file file_guard.h.

FdGuard::FdGuard ( const int  fd)
inlineexplicit

Definition at line 54 of file file_guard.h.

FdGuard::~FdGuard ( )
inline

Definition at line 55 of file file_guard.h.

Member Function Documentation

int FdGuard::fd ( ) const
inline

Definition at line 56 of file file_guard.h.

Member Data Documentation

int FdGuard::fd_
private

Definition at line 59 of file file_guard.h.


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