GDAL
Public Member Functions
CPLXMLTreeCloser Class Reference

Manage a tree of XML nodes so that all nodes are freed when the instance goes out of scope. More...

#include <cpl_minixml.h>

List of all members.

Public Member Functions

 CPLXMLTreeCloser (CPLXMLNode *data)
 Constructor.
 ~CPLXMLTreeCloser ()
 Destructor.
CPLXMLNodeget () const
 Returns the node pointer/ Modifying the contents pointed to by the return is allowed.
CPLXMLNodeoperator-> () const
 Returns the node pointer/ Modifying the contents pointed to by the return is allowed.

Detailed Description

Manage a tree of XML nodes so that all nodes are freed when the instance goes out of scope.

Only the top level node should be in a CPLXMLTreeCloser.


Member Function Documentation

CPLXMLNode* CPLXMLTreeCloser::get ( ) const [inline]

Returns the node pointer/ Modifying the contents pointed to by the return is allowed.

Returns:
the node pointer
CPLXMLNode* CPLXMLTreeCloser::operator-> ( ) const [inline]

Returns the node pointer/ Modifying the contents pointed to by the return is allowed.

Returns:
the node pointer

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

Generated for GDAL by doxygen 1.7.6.1.