summaryrefslogtreecommitdiffstats
path: root/c++/src/H5DataType.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++/src/H5DataType.cpp')
-rw-r--r--c++/src/H5DataType.cpp45
1 files changed, 0 insertions, 45 deletions
diff --git a/c++/src/H5DataType.cpp b/c++/src/H5DataType.cpp
index ca3e67c..13b0dec 100644
--- a/c++/src/H5DataType.cpp
+++ b/c++/src/H5DataType.cpp
@@ -43,7 +43,6 @@ using std::endl;
//--------------------------------------------------------------------------
// Function: DataType default constructor
///\brief Default constructor: Creates a stub datatype
-// Programmer Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
DataType::DataType() : H5Object(), id(H5I_INVALID_HID), encoded_buf(NULL), buf_size(0)
{
@@ -56,7 +55,6 @@ DataType::DataType() : H5Object(), id(H5I_INVALID_HID), encoded_buf(NULL), buf_s
// Description
// Constructor creates a copy of an existing DataType using
// its id.
-// Programmer Binh-Minh Ribler - 2000
// Modification
// Dec, 2005
// Removed second argument, "predefined", after changing to the
@@ -73,7 +71,6 @@ DataType::DataType(const hid_t existing_id) : H5Object(), id(existing_id), encod
///\param type_class - IN: Class of datatype to create
///\param size - IN: Number of bytes in the datatype to create
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
DataType::DataType(const H5T_class_t type_class, size_t size)
: H5Object(), id{H5Tcreate(type_class, size)}, encoded_buf(NULL), buf_size(0)
@@ -92,7 +89,6 @@ DataType::DataType(const H5T_class_t type_class, size_t size)
///\param ref_type - IN: Reference type - default to H5R_OBJECT
///\param plist - IN: Property list - default to PropList::DEFAULT
///\exception H5::ReferenceException
-// Programmer Binh-Minh Ribler - Oct, 2006
//--------------------------------------------------------------------------
DataType::DataType(const H5Location &loc, const void *ref, H5R_type_t ref_type, const PropList &plist)
: H5Object(), id{H5Location::p_dereference(loc.getId(), ref, ref_type, plist,
@@ -110,7 +106,6 @@ DataType::DataType(const H5Location &loc, const void *ref, H5R_type_t ref_type,
// param ref_type - IN: Reference type - default to H5R_OBJECT
// param plist - IN: Property list - default to PropList::DEFAULT
// exception H5::ReferenceException
-// Programmer Binh-Minh Ribler - Oct, 2006
// Modification
// Jul, 2008
// Added for application convenience.
@@ -125,7 +120,6 @@ H5Object(), id(H5I_INVALID_HID), encoded_buf(NULL), buf_size(0)
//--------------------------------------------------------------------------
// Function: DataType copy constructor
///\brief Copy constructor: same HDF5 object as \a original
-// Programmer Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
DataType::DataType(const DataType &original) : H5Object(), id(original.id), encoded_buf(NULL), buf_size(0)
{
@@ -137,7 +131,6 @@ DataType::DataType(const DataType &original) : H5Object(), id(original.id), enco
///\brief Creates a DataType instance using a predefined type
///\param pred_type - IN: Predefined datatype
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - 2015
// Description
// Copying the type so that when a predefined type is passed in,
// a copy of it is made, not just a duplicate of the HDF5 id.
@@ -159,7 +152,6 @@ DataType::DataType(const PredType &pred_type)
///\param loc - IN: Location of the type
///\param dtype_name - IN: Datatype name
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - Dec 2016
// Description
// In 1.10.1, this constructor was introduced and may replace the
// existing function CommonFG::openDataType(const char*) to
@@ -178,7 +170,6 @@ DataType::DataType(const H5Location &loc, const char *dtype_name)
///\param loc - IN: Location of the type
///\param dtype_name - IN: Datatype name
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - Dec 2016
// Description
// In 1.10.1, this constructor was introduced and may replace the
// existing function CommonFG::openDataType(const H5std_string&) to
@@ -195,7 +186,6 @@ DataType::DataType(const H5Location &loc, const H5std_string &dtype_name)
///\brief Copies an existing datatype to this datatype object
///\param like_type - IN: Datatype to be copied
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - 2000
// Modification
// - Replaced resetIdComponent() with decRefCount() to use C
// library ID reference counting mechanism - BMR, Jun 1, 2004
@@ -224,7 +214,6 @@ DataType::copy(const DataType &like_type)
///\brief Copies the datatype of the given dataset to this datatype object
///\param dset - IN: Dataset
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - Jan, 2007
///\par Description
/// The resulted dataset will be transient and modifiable.
//--------------------------------------------------------------------------
@@ -251,7 +240,6 @@ DataType::copy(const DataSet &dset)
// Purpose Returns an id of a type by decoding the binary object
/// description of this datatype.
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - Aug 2017
//--------------------------------------------------------------------------
hid_t
DataType::p_decode() const
@@ -280,7 +268,6 @@ DataType::p_decode() const
/// description of this datatype.
///
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - Aug 2017
//--------------------------------------------------------------------------
DataType *
DataType::decode() const
@@ -302,7 +289,6 @@ DataType::decode() const
///\brief Creates a binary object description of this datatype.
///
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - Aug 2017
//--------------------------------------------------------------------------
void
DataType::encode()
@@ -333,7 +319,6 @@ DataType::encode()
/// description.
///
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - Aug 2017
//--------------------------------------------------------------------------
bool
DataType::hasBinaryDesc() const
@@ -350,7 +335,6 @@ DataType::hasBinaryDesc() const
// Description
// Makes a copy of the type on the right hand side and stores
// the new id in the left hand side object.
-// Programmer Binh-Minh Ribler - 2000
// Modification
// Changed operator= to simply copy the id of rhs instead of
// calling H5Tcopy because, when the operator= is invoked, a
@@ -376,7 +360,6 @@ DataType::operator=(const DataType &rhs)
///\param compared_type - IN: Reference to the datatype to compare
///\return true if the datatypes are equal, and false, otherwise.
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
bool
DataType::operator==(const DataType &compared_type) const
@@ -416,7 +399,6 @@ DataType::operator!=(const DataType &compared_type) const
// datatype, or attribute.
//\param name - IN: Name of the datatype
//\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - 2000
// Modification:
// Copied from DataType::commit and made into private function
// to be commonly used by several overloads of DataType::commit.
@@ -438,7 +420,6 @@ DataType::p_commit(hid_t loc_id, const char *name)
///\param loc - IN: A location (file, dataset, datatype, or group)
///\param name - IN: Name of the datatype
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - Jan, 2007
//--------------------------------------------------------------------------
void
DataType::commit(const H5Location &loc, const char *name)
@@ -454,7 +435,6 @@ DataType::commit(const H5Location &loc, const char *name)
// Param loc - IN: A location (file, dataset, datatype, or group)
// Param name - IN: Name of the datatype
// Exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - Jan, 2007
// Modification
// Planned for removal. -BMR, 2014/04/16
// Removed from documentation. -BMR, 2016/03/07 1.8.17 and 1.10.0
@@ -470,7 +450,6 @@ DataType::commit(const H5Location &loc, const char *name)
///\brief This is an overloaded member function, provided for convenience.
/// It differs from the above function only in the type of the
/// argument \a name.
-// Programmer Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
void
DataType::commit(const H5Location &loc, const H5std_string &name)
@@ -486,7 +465,6 @@ DataType::commit(const H5Location &loc, const H5std_string &name)
// Param loc - IN: A location (file, dataset, datatype, or group)
// Param name - IN: Name of the datatype
// Exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - Jan, 2007
// Modification
// Planned for removal. -BMR, 2014/04/16
// Removed from documentation. -BMR, 2016/03/07 1.8.17 and 1.10.0
@@ -504,7 +482,6 @@ DataType::commit(const H5Location &loc, const H5std_string &name)
///\return \c true if the datatype is a named type, and \c false,
/// otherwise.
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
bool
DataType::committed() const
@@ -528,7 +505,6 @@ DataType::committed() const
///\param pcdata - IN: Pointer to type conversion data
///\return Pointer to a suitable conversion function
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
H5T_conv_t
DataType::find(const DataType &dest, H5T_cdata_t **pcdata) const
@@ -552,7 +528,6 @@ DataType::find(const DataType &dest, H5T_cdata_t **pcdata) const
///\param plist - IN: Property list - default to PropList::DEFAULT
///\return Pointer to a suitable conversion function
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
void
DataType::convert(const DataType &dest, size_t nelmts, void *buf, void *background,
@@ -582,7 +557,6 @@ DataType::convert(const DataType &dest, size_t nelmts, void *buf, void *backgrou
///
/// Once a data type is locked it can never be unlocked unless
/// the entire library is closed.
-// Programmer Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
void
DataType::lock() const
@@ -599,7 +573,6 @@ DataType::lock() const
///\brief Returns the datatype class identifier.
///\return Datatype class identifier
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
H5T_class_t
DataType::getClass() const
@@ -618,7 +591,6 @@ DataType::getClass() const
///\brief Returns the size of a datatype.
///\return Datatype size in bytes
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
size_t
DataType::getSize() const
@@ -637,7 +609,6 @@ DataType::getSize() const
///\brief Returns the base datatype from which a datatype is derived.
///\return DataType object
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
DataType
DataType::getSuper() const
@@ -672,7 +643,6 @@ DataType::getSuper() const
///\par Description
/// For information, please refer to the H5Tregister API in
/// the HDF5 C Reference Manual.
-// Programmer Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
void
DataType::registerFunc(H5T_pers_t pers, const char *name, const DataType &dest, H5T_conv_t func) const
@@ -691,7 +661,6 @@ DataType::registerFunc(H5T_pers_t pers, const char *name, const DataType &dest,
///\brief This is an overloaded member function, provided for convenience.
/// It differs from the above function only in the type of the
/// argument \a name.
-// Programmer Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
void
DataType::registerFunc(H5T_pers_t pers, const H5std_string &name, const DataType &dest, H5T_conv_t func) const
@@ -710,7 +679,6 @@ DataType::registerFunc(H5T_pers_t pers, const H5std_string &name, const DataType
///\param func - IN: Function to convert between source and
/// destination datatypes.
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
void
DataType::unregister(H5T_pers_t pers, const char *name, const DataType &dest, H5T_conv_t func) const
@@ -729,7 +697,6 @@ DataType::unregister(H5T_pers_t pers, const char *name, const DataType &dest, H5
///\brief This is an overloaded member function, provided for convenience.
/// It differs from the above function only in the type of the
/// argument \a name.
-// Programmer Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
void
DataType::unregister(H5T_pers_t pers, const H5std_string &name, const DataType &dest, H5T_conv_t func) const
@@ -743,7 +710,6 @@ DataType::unregister(H5T_pers_t pers, const H5std_string &name, const DataType &
///\param tag - IN: Descriptive ASCII string with which the opaque
/// datatype is to be tagged.
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
void
DataType::setTag(const char *tag) const
@@ -760,7 +726,6 @@ DataType::setTag(const char *tag) const
///\brief This is an overloaded member function, provided for convenience.
/// It differs from the above function only in the type of the
/// argument \a name.
-// Programmer Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
void
DataType::setTag(const H5std_string &tag) const
@@ -773,7 +738,6 @@ DataType::setTag(const H5std_string &tag) const
///\brief Gets the tag associated with an opaque datatype.
///\return Tag associated with the opaque datatype
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
H5std_string
DataType::getTag() const
@@ -799,7 +763,6 @@ DataType::getTag() const
///\return true if this datatype contains or is the specified type,
/// and false, otherwise.
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - May, 2004
//--------------------------------------------------------------------------
bool
DataType::detectClass(H5T_class_t cls) const
@@ -820,7 +783,6 @@ DataType::detectClass(H5T_class_t cls) const
///\return true if this predtype is the specified type class, and false,
/// otherwise.
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - August, 2017
//--------------------------------------------------------------------------
bool
DataType::detectClass(const PredType &pred_type, H5T_class_t cls)
@@ -841,7 +803,6 @@ DataType::detectClass(const PredType &pred_type, H5T_class_t cls)
///\return true if this datatype is a variable-length string, and
/// false, otherwise.
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - May, 2004
//--------------------------------------------------------------------------
bool
DataType::isVariableStr() const
@@ -862,7 +823,6 @@ DataType::isVariableStr() const
/// creation.
///\return A property list object
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - March, 2017
// Description
// Currently, there is no datatype creation property list class
// in the C++ API because there is no associated functionality.
@@ -890,7 +850,6 @@ DataType::getCreatePlist() const
// AbstractDS and Attribute are moved out of H5Object. In
// addition, member IdComponent::id is moved into subclasses, and
// IdComponent::getId now becomes pure virtual function.
-// Programmer Binh-Minh Ribler - May, 2008
//--------------------------------------------------------------------------
hid_t
DataType::getId() const
@@ -905,7 +864,6 @@ DataType::getId() const
///\param loc - IN: Location of the type
///\param dtype_name - IN: Datatype name
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - Dec 2016
// Description
// This function was introduced in 1.10.1 to be used by the new
// XxxType constructors that open a datatype. -BMR, Dec 2016
@@ -930,7 +888,6 @@ DataType::p_opentype(const H5Location &loc, const char *dtype_name) const
// The underlying reference counting in the C library ensures
// that the current valid id of this object is properly closed.
// Then the object's id is reset to the new id.
-// Programmer Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
void
DataType::p_setId(const hid_t new_id)
@@ -952,7 +909,6 @@ DataType::p_setId(const hid_t new_id)
///\brief Closes the datatype if it is not a predefined type.
///
///\exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - Mar 9, 2005
//--------------------------------------------------------------------------
void
DataType::close()
@@ -976,7 +932,6 @@ DataType::close()
//--------------------------------------------------------------------------
// Function: DataType destructor
///\brief Properly terminates access to this datatype.
-// Programmer Binh-Minh Ribler - 2000
// Modification
// - Replaced resetIdComponent() with decRefCount() to use C
// library ID reference counting mechanism - BMR, Jun 1, 2004