xrootd
|
Smart descriptor - closes the descriptor on destruction. More...
#include <XrdClUtils.hh>
Public Member Functions | |
ScopedDescriptor (int descriptor) | |
Constructor. | |
~ScopedDescriptor () | |
Destructor. | |
int | Release () |
Release the descriptor being held. | |
int | GetDescriptor () |
Get the descriptor. | |
Private Attributes | |
int | pDescriptor |
Smart descriptor - closes the descriptor on destruction.
|
inline |
Constructor.
|
inline |
Destructor.
References close, and pDescriptor.
|
inline |
Get the descriptor.
References pDescriptor.
|
inline |
Release the descriptor being held.
References pDescriptor.
|
private |
Referenced by GetDescriptor(), Release(), and ~ScopedDescriptor().