casacore::HDF5HidAttribute Class Reference

A class representing an HDF5 attribute hid. More...

#include <HDF5HidMeta.h>

List of all members.

Public Member Functions

 HDF5HidAttribute ()
 Default constructor sets hid to invalid.
 HDF5HidAttribute (hid_t hid)
 Construct from given hid.
 ~HDF5HidAttribute ()
 The destructor closes the hid.
void close ()
 Close the hid if valid.
void operator= (hid_t hid)
 Put hid in it.
hid_t getHid () const
 Get the hid.
 operator hid_t () const
 Convert automatically to hid_t.

Private Member Functions

 HDF5HidAttribute (const HDF5HidAttribute &that)
 Copy constructor cannot be used.
HDF5HidAttributeoperator= (const HDF5HidAttribute &that)
 Assignment cannot be used.

Private Attributes

hid_t itsHid

Detailed Description

A class representing an HDF5 attribute hid.

Intended use:

Internal

Review Status

Test programs:
tHDF5Dataset

Synopsis

This class wraps an HDF5 attribute hid (hdf5 id). It offers two benefits:

Definition at line 200 of file HDF5HidMeta.h.


Constructor & Destructor Documentation

casacore::HDF5HidAttribute::HDF5HidAttribute (  )  [inline]

Default constructor sets hid to invalid.

Definition at line 204 of file HDF5HidMeta.h.

casacore::HDF5HidAttribute::HDF5HidAttribute ( hid_t  hid  )  [inline]

Construct from given hid.

Definition at line 207 of file HDF5HidMeta.h.

casacore::HDF5HidAttribute::~HDF5HidAttribute (  )  [inline]

The destructor closes the hid.

Definition at line 210 of file HDF5HidMeta.h.

References close().

casacore::HDF5HidAttribute::HDF5HidAttribute ( const HDF5HidAttribute that  )  [private]

Copy constructor cannot be used.


Member Function Documentation

void casacore::HDF5HidAttribute::close (  ) 

Close the hid if valid.

Referenced by operator=(), and ~HDF5HidAttribute().

hid_t casacore::HDF5HidAttribute::getHid (  )  const [inline]

Get the hid.

Definition at line 218 of file HDF5HidMeta.h.

References itsHid.

casacore::HDF5HidAttribute::operator hid_t (  )  const [inline]

Convert automatically to hid_t.

Definition at line 221 of file HDF5HidMeta.h.

References itsHid.

HDF5HidAttribute& casacore::HDF5HidAttribute::operator= ( const HDF5HidAttribute that  )  [private]

Assignment cannot be used.

void casacore::HDF5HidAttribute::operator= ( hid_t  hid  )  [inline]

Put hid in it.

If it already contains a hid, it will be closed.

Definition at line 215 of file HDF5HidMeta.h.

References close(), and itsHid.


Member Data Documentation

Definition at line 229 of file HDF5HidMeta.h.

Referenced by getHid(), operator hid_t(), and operator=().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1