xmltooling 3.0.4

xmltooling::XercesJanitor< T > Class Template Reference

RAII wrapper for Xerces resources. More...

#include <xmltooling/util/XMLHelper.h>

List of all members.

Public Member Functions

 XercesJanitor (T *resource)
 Constructor.
T * get ()
 Returns resource held by this object.
T * operator-> ()
 Returns resource held by this object.
T * release ()
 Returns resource held by this object and releases it to the caller.

Detailed Description

template<class T>
class xmltooling::XercesJanitor< T >

RAII wrapper for Xerces resources.


Constructor & Destructor Documentation

template<class T >
xmltooling::XercesJanitor< T >::XercesJanitor ( T *  resource) [inline]

Constructor.

Parameters:
resourceobject to release when leaving scope

Member Function Documentation

template<class T >
T* xmltooling::XercesJanitor< T >::get ( ) [inline]

Returns resource held by this object.

Returns:
the resource held or nullptr
template<class T >
T* xmltooling::XercesJanitor< T >::operator-> ( ) [inline]

Returns resource held by this object.

Returns:
the resource held or nullptr
template<class T >
T* xmltooling::XercesJanitor< T >::release ( ) [inline]

Returns resource held by this object and releases it to the caller.

Returns:
the resource held or nullptr

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