diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2017-10-05 21:24:25 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2017-10-05 21:24:25 (GMT) |
commit | b1819710bc3ef8b03e453d177b9a8b308100d96d (patch) | |
tree | ad4c92a27cbac7642ca9f6892112195cc58c7a76 /c++/src/H5ArrayType.h | |
parent | dd75930ef16b36644111f6e584b11388b63b43c9 (diff) | |
download | hdf5-b1819710bc3ef8b03e453d177b9a8b308100d96d.zip hdf5-b1819710bc3ef8b03e453d177b9a8b308100d96d.tar.gz hdf5-b1819710bc3ef8b03e453d177b9a8b308100d96d.tar.bz2 |
Adding new C++ wrappers
Description:
- Added wrappers for H5Tencode to class DataType and H5Tdecode to
classes DataType and its subclasses.
// Creates a binary object description of this datatype.
void DataType::encode()
// Returns the decoded type from the binary object description.
virtual DataType* DataType::decode() const;
virtual DataType* ArrayType::decode() const;
virtual DataType* CompType::decode() const;
virtual DataType* DataType::decode() const;
virtual DataType* EnumType::decode() const;
virtual DataType* FloatType::decode() const;
virtual DataType* IntType::decode() const;
virtual DataType* StrType::decode() const;
virtual DataType* VarLenType::decode() const;
- Replaced existing functions CommonFG::openXxxType with individual
data type constructors, XxxType, to improve usability.
Platforms tested:
Linux/32 2.6 (jam)
Linux/64 (platypus)
Darwin (osx1010test)
Diffstat (limited to 'c++/src/H5ArrayType.h')
-rw-r--r-- | c++/src/H5ArrayType.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/c++/src/H5ArrayType.h b/c++/src/H5ArrayType.h index 6de11f2..952aae1 100644 --- a/c++/src/H5ArrayType.h +++ b/c++/src/H5ArrayType.h @@ -28,9 +28,17 @@ class H5_DLLCPP ArrayType : public DataType { // specified base type. ArrayType(const DataType& base_type, int ndims, const hsize_t* dims); + // Constructors that open an array datatype, given a location. + ArrayType(const H5Location& loc, const char* name); + ArrayType(const H5Location& loc, const H5std_string& name); + // Assignment operator ArrayType& operator=(const ArrayType& rhs); + // Returns an ArrayType object via DataType* by decoding the + // binary object description of this type. + virtual DataType* decode() const; + // Returns the number of dimensions of this array datatype. int getArrayNDims() const; //int getArrayNDims(); // removed 1.8.18 and 1.10.1 |