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.
| XrdCl::ScopedDescriptor::ScopedDescriptor | ( | int | descriptor | ) | [inline] |
Constructor.
| XrdCl::ScopedDescriptor::~ScopedDescriptor | ( | ) | [inline] |
Destructor.
References close, and pDescriptor.
| int XrdCl::ScopedDescriptor::GetDescriptor | ( | ) | [inline] |
Get the descriptor.
References pDescriptor.
| int XrdCl::ScopedDescriptor::Release | ( | ) | [inline] |
Release the descriptor being held.
References pDescriptor.
int XrdCl::ScopedDescriptor::pDescriptor [private] |
Referenced by GetDescriptor(), Release(), and ~ScopedDescriptor().
1.6.1