This class implements a guard that conditionally closes an open file descriptor upon its destruction.
Synopsis
Declared in <bdls_filedescriptorguard.h>
struct FileDescriptorGuard;
Member Functions
Name |
Description |
|
Create a guard object that will manage the specified |
|
If this guard object manages a file, close that file. |
Close the file managed by this guard and release that file from management by this object. The behavior is undefined unless this object is managing a file. |
|
If this guard is managing a file, return the file descriptor referring to that file, and return |
|
Release the file from management by this object (without closing it) and return the formerly managed descriptor. The behavior is undefined unless this object is managing a file. |
Data Members
Name |
Created with MrDocs