casacore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
casacore::HDF5HidDataType Class Reference

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

#include <HDF5HidMeta.h>

Public Member Functions

 HDF5HidDataType ()
 Default constructor sets hid to invalid. More...
 
 HDF5HidDataType (hid_t hid)
 Construct from given hid. More...
 
 HDF5HidDataType (const HDF5HidDataType &that)
 Copy constructor makes a deep copy. More...
 
 ~HDF5HidDataType ()
 The destructor closes the hid. More...
 
HDF5HidDataTypeoperator= (const HDF5HidDataType &that)
 Assignment makes a deep copy. More...
 
void close ()
 Close the hid if valid. More...
 
void operator= (hid_t hid)
 Put hid in it. More...
 
hid_t getHid () const
 Get the hid. More...
 
 operator hid_t () const
 Convert automatically to hid_t. More...
 

Private Attributes

hid_t itsHid
 

Detailed Description

A class representing an HDF5 datatype hid.

Intended use:

Internal

Review Status

Test programs:
tHDF5Dataset

Synopsis

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

Definition at line 102 of file HDF5HidMeta.h.

Constructor & Destructor Documentation

casacore::HDF5HidDataType::HDF5HidDataType ( )
inline

Default constructor sets hid to invalid.

Definition at line 106 of file HDF5HidMeta.h.

casacore::HDF5HidDataType::HDF5HidDataType ( hid_t  hid)
inline

Construct from given hid.

Definition at line 109 of file HDF5HidMeta.h.

casacore::HDF5HidDataType::HDF5HidDataType ( const HDF5HidDataType that)

Copy constructor makes a deep copy.

casacore::HDF5HidDataType::~HDF5HidDataType ( )
inline

The destructor closes the hid.

Definition at line 114 of file HDF5HidMeta.h.

References close().

Member Function Documentation

void casacore::HDF5HidDataType::close ( )

Close the hid if valid.

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

hid_t casacore::HDF5HidDataType::getHid ( ) const
inline

Get the hid.

Definition at line 124 of file HDF5HidMeta.h.

References itsHid.

casacore::HDF5HidDataType::operator hid_t ( ) const
inline

Convert automatically to hid_t.

Definition at line 127 of file HDF5HidMeta.h.

References itsHid.

HDF5HidDataType& casacore::HDF5HidDataType::operator= ( const HDF5HidDataType that)

Assignment makes a deep copy.

void casacore::HDF5HidDataType::operator= ( hid_t  hid)
inline

Put hid in it.

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

Definition at line 121 of file HDF5HidMeta.h.

References close(), and itsHid.

Member Data Documentation

hid_t casacore::HDF5HidDataType::itsHid
private

Definition at line 130 of file HDF5HidMeta.h.

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


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