Field3D
Hdf5Util::H5ScopedGopen Class Reference

Scoped object - opens a group on creation and closes it on destruction. More...

#include <Hdf5Util.h>

Inheritance diagram for Hdf5Util::H5ScopedGopen:
Hdf5Util::H5Base

List of all members.

Public Member Functions

 H5ScopedGopen ()
 H5ScopedGopen (hid_t parentLocation, const std::string &name)
 H5ScopedGopen (hid_t parentLocation, const std::string &name, hid_t gapl_id)
void open (hid_t parentLocation, const std::string &name)
void open (hid_t parentLocation, const std::string &name, hid_t gapl_id)
 ~H5ScopedGopen ()

Detailed Description

Scoped object - opens a group on creation and closes it on destruction.

Definition at line 176 of file Hdf5Util.h.


Constructor & Destructor Documentation

Hdf5Util::H5ScopedGopen::H5ScopedGopen ( ) [inline]

Definition at line 179 of file Hdf5Util.h.

    : H5Base()
  {
    // Empty
  }
Hdf5Util::H5ScopedGopen::H5ScopedGopen ( hid_t  parentLocation,
const std::string &  name 
) [inline]

Definition at line 184 of file Hdf5Util.h.

References open().

  {
    open(parentLocation, name);
  }
Hdf5Util::H5ScopedGopen::H5ScopedGopen ( hid_t  parentLocation,
const std::string &  name,
hid_t  gapl_id 
) [inline]

Definition at line 188 of file Hdf5Util.h.

References open().

  {
    open(parentLocation, name, gapl_id);
  }
Hdf5Util::H5ScopedGopen::~H5ScopedGopen ( ) [inline]

Definition at line 201 of file Hdf5Util.h.

References Hdf5Util::H5Base::m_id.

  {
    if (m_id >= 0)
      H5Gclose(m_id);
  }

Member Function Documentation

void Hdf5Util::H5ScopedGopen::open ( hid_t  parentLocation,
const std::string &  name 
) [inline]

Definition at line 192 of file Hdf5Util.h.

References Hdf5Util::H5Base::m_id.

Referenced by H5ScopedGopen().

  {
    m_id = H5Gopen(parentLocation, name.c_str(), H5P_DEFAULT);
  }
void Hdf5Util::H5ScopedGopen::open ( hid_t  parentLocation,
const std::string &  name,
hid_t  gapl_id 
) [inline]

Definition at line 196 of file Hdf5Util.h.

References Hdf5Util::H5Base::m_id.

  {
    m_id = H5Gopen(parentLocation, name.c_str(), gapl_id);
  }

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