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

#include <file_guard.h>

Inheritance diagram for FileGuard:
Collaboration diagram for FileGuard:

Public Member Functions

 FileGuard ()
 FileGuard (FILE *file)
 ~FileGuard ()
const FILE * file () const

Private Attributes

FILE * file_

Additional Inherited Members

- Private Member Functions inherited from SingleCopy
 SingleCopy ()

Detailed Description

RAII object to close a FILE stream when it gets out of scope

Definition at line 66 of file file_guard.h.

Constructor & Destructor Documentation

FileGuard::FileGuard ( )

Definition at line 68 of file file_guard.h.

FileGuard::FileGuard ( FILE *  file)

Definition at line 69 of file file_guard.h.

FileGuard::~FileGuard ( )

Definition at line 70 of file file_guard.h.

Member Function Documentation

const FILE* FileGuard::file ( ) const

Definition at line 71 of file file_guard.h.

Member Data Documentation

FILE* FileGuard::file_

Definition at line 74 of file file_guard.h.

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