My Project  1.10.11
H5ArrayType.h
1 // C++ informative line for the emacs editor: -*- C++ -*-
2 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3  * Copyright by The HDF Group. *
4  * All rights reserved. *
5  * *
6  * This file is part of HDF5. The full HDF5 copyright notice, including *
7  * terms governing use, modification, and redistribution, is contained in *
8  * the COPYING file, which can be found at the root of the source code *
9  * distribution tree, or in https://www.hdfgroup.org/licenses. *
10  * If you do not have access to either file, you may request a copy from *
11  * help@hdfgroup.org. *
12  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
13 
14 #ifndef H5ArrayType_H
15 #define H5ArrayType_H
16 
17 namespace H5 {
18 
23 // Inheritance: DataType -> H5Object -> H5Location -> IdComponent
24 class H5_DLLCPP ArrayType : public DataType {
25  public:
26  // Constructor that creates a new array data type based on the
27  // specified base type.
28  ArrayType(const DataType &base_type, int ndims, const hsize_t *dims);
29 
30  // Assignment operator
31  ArrayType &operator=(const ArrayType &rhs);
32 
33  // Constructors that open an array datatype, given a location.
34  ArrayType(const H5Location &loc, const char *name);
35  ArrayType(const H5Location &loc, const H5std_string &name);
36 
37  // Returns an ArrayType object via DataType* by decoding the
38  // binary object description of this type.
39  virtual DataType *decode() const;
40 
41  // Returns the number of dimensions of this array datatype.
42  int getArrayNDims() const;
43  // int getArrayNDims(); // removed 1.8.18 and 1.10.1
44 
45  // Returns the sizes of dimensions of this array datatype.
46  int getArrayDims(hsize_t *dims) const;
47  // int getArrayDims(hsize_t* dims); // removed 1.8.18 and 1.10.1
48 
50  virtual H5std_string
51  fromClass() const
52  {
53  return ("ArrayType");
54  }
55 
56  // Copy constructor: same as the original ArrayType.
57  ArrayType(const ArrayType &original);
58 
59  // Constructor that takes an existing id
60  ArrayType(const hid_t existing_id);
61 
62  // Noop destructor
63  virtual ~ArrayType();
64 
65  // Default constructor
66  ArrayType();
67 
68 }; // end of ArrayType
69 } // namespace H5
70 
71 #endif // H5ArrayType_H
H5::ArrayType::fromClass
virtual H5std_string fromClass() const
Returns this class name.
Definition: H5ArrayType.h:51
H5::Exception
Exception provides wrappers of HDF5 error handling functions.
Definition: H5Exception.h:27
H5::DataType::getId
virtual hid_t getId() const
Get the id of this datatype.
Definition: H5DataType.cpp:900
H5::ArrayType::getArrayDims
int getArrayDims(hsize_t *dims) const
Retrieves the size of all dimensions of an array datatype.
Definition: H5ArrayType.cpp:198
H5::ArrayType::getArrayNDims
int getArrayNDims() const
Returns the number of dimensions for an array datatype.
Definition: H5ArrayType.cpp:178
H5::ArrayType::operator=
ArrayType & operator=(const ArrayType &rhs)
Assignment operator.
Definition: H5ArrayType.cpp:131
H5::DataTypeIException
Definition: H5Exception.h:109
H5::ArrayType::ArrayType
ArrayType()
Default constructor: Creates a stub ArrayType.
Definition: H5ArrayType.cpp:36
H5::ArrayType::decode
virtual DataType * decode() const
Returns an ArrayType object via DataType* by decoding the binary object description of this type.
Definition: H5ArrayType.cpp:156
H5::ArrayType::~ArrayType
virtual ~ArrayType()
Properly terminates access to this array datatype.
Definition: H5ArrayType.cpp:214
H5::ArrayType
Class ArrayType inherits from DataType and provides wrappers for the HDF5's Array Datatypes.
Definition: H5ArrayType.h:24
H5::Exception::getDetailMsg
H5std_string getDetailMsg() const
Returns the detailed message set at the time the exception is thrown.
Definition: H5Exception.cpp:264
H5::IdComponent::setId
void setId(const hid_t new_id)
Sets the identifier of this object to a new value.
Definition: H5IdComponent.cpp:315
H5
Definition: H5AbstractDs.cpp:33
H5::DataType
Class DataType provides generic operations on HDF5 datatypes.
Definition: H5DataType.h:27
H5::H5Location
H5Location is an abstract base class, added in version 1.8.12.
Definition: H5Location.h:30


The HDF Group Help Desk:
  Copyright by The HDF Group