GDAL
Public Member Functions | List of all members
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>

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. More...
 
CPLXMLNodeoperator-> () const
 Returns the node pointer/ Modifying the contents pointed to by the return is allowed. More...
 

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.8.8.