This template provides a container which automatically release a given Xerces resource, when the pointer runs out of scope.
More...
#include <xercesc_helpers.h>
|
T * | resPtr |
| This pointer represent a releasable Xerces resource.
|
|
template<class T>
class uncover::io::SafeXRes< T >
This template provides a container which automatically release a given Xerces resource, when the pointer runs out of scope.
- Author
- Jan Stückrath
Generates a new SafeXRes with the specified resource pointer as content.
- Parameters
-
ptr | a resource pointer which will be safely stored |
Destroys this SafeXRes object.
The contained resource is thereby properly released.
Returns the content stored in this SafeXRes object.
Note that the returned pointer may not be released, since it will be released automatically when this object is destroyed.
- Returns
- the content stored in this SafeXRes object
Returns the pointer stored in this SafeXRes object.
In this way SafeXRes can be used as if it would be a pointer.
- Returns
- the pointer stored in this SafeXRes object
The documentation for this class was generated from the following file: