xrootd
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
XrdCl::ScopedDescriptor Class Reference

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
 

Detailed Description

Smart descriptor - closes the descriptor on destruction.

Constructor & Destructor Documentation

◆ ScopedDescriptor()

XrdCl::ScopedDescriptor::ScopedDescriptor ( int  descriptor)
inline

Constructor.

◆ ~ScopedDescriptor()

XrdCl::ScopedDescriptor::~ScopedDescriptor ( )
inline

Destructor.

References close, and pDescriptor.

Member Function Documentation

◆ GetDescriptor()

int XrdCl::ScopedDescriptor::GetDescriptor ( )
inline

Get the descriptor.

References pDescriptor.

◆ Release()

int XrdCl::ScopedDescriptor::Release ( )
inline

Release the descriptor being held.

References pDescriptor.

Member Data Documentation

◆ pDescriptor

int XrdCl::ScopedDescriptor::pDescriptor
private

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