OW_NAMESPACE::HDBHandleLock Class Reference

The HDBHandleLock class helps facilitate the releasing of HDBHandle objects that are acquired through calls to GenericHDBRepository:: getHandle. More...

#include <OW_GenericHDBRepository.hpp>

Collaboration diagram for OW_NAMESPACE::HDBHandleLock:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 HDBHandleLock (GenericHDBRepository *pr, const HDBHandle &hdl)
 ~HDBHandleLock ()
HDBHandleoperator-> ()
HDBHandleoperator * ()
HDBHandle getHandle ()

Private Attributes

GenericHDBRepositorym_pr
HDBHandle m_hdl

Detailed Description

The HDBHandleLock class helps facilitate the releasing of HDBHandle objects that are acquired through calls to GenericHDBRepository:: getHandle.

Instances of HDBHandleLock will automatically call GenericHDBRepository::freeHandle when they go out of scope. Instances of this class are essentially smart pointers for HDBHandle instances returned from GenericHDBRepository::getHandle.

Definition at line 181 of file OW_GenericHDBRepository.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::HDBHandleLock::HDBHandleLock GenericHDBRepository pr,
const HDBHandle hdl
[inline]
 

Definition at line 184 of file OW_GenericHDBRepository.hpp.

OW_NAMESPACE::HDBHandleLock::~HDBHandleLock  )  [inline]
 

Definition at line 186 of file OW_GenericHDBRepository.hpp.

References m_hdl.


Member Function Documentation

HDBHandle OW_NAMESPACE::HDBHandleLock::getHandle  )  [inline]
 

Definition at line 199 of file OW_GenericHDBRepository.hpp.

References m_hdl.

HDBHandle& OW_NAMESPACE::HDBHandleLock::operator *  )  [inline]
 

Definition at line 198 of file OW_GenericHDBRepository.hpp.

References m_hdl.

HDBHandle* OW_NAMESPACE::HDBHandleLock::operator->  )  [inline]
 

Definition at line 197 of file OW_GenericHDBRepository.hpp.

References m_hdl.


Member Data Documentation

HDBHandle OW_NAMESPACE::HDBHandleLock::m_hdl [private]
 

Definition at line 202 of file OW_GenericHDBRepository.hpp.

GenericHDBRepository* OW_NAMESPACE::HDBHandleLock::m_pr [private]
 

Definition at line 201 of file OW_GenericHDBRepository.hpp.


The documentation for this class was generated from the following file:
Generated on Thu Feb 9 09:16:36 2006 for openwbem by  doxygen 1.4.6