HDF5 C++ API  1.8.18
 All Classes Namespaces Functions Variables Typedefs Friends Pages
H5ArrayType.h
1 // C++ informative line for the emacs editor: -*- C++ -*-
2 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3  * Copyright by The HDF Group. *
4  * Copyright by the Board of Trustees of the University of Illinois. *
5  * All rights reserved. *
6  * *
7  * This file is part of HDF5. The full HDF5 copyright notice, including *
8  * terms governing use, modification, and redistribution, is contained in *
9  * the files COPYING and Copyright.html. COPYING can be found at the root *
10  * of the source code distribution tree; Copyright.html can be found at the *
11  * root level of an installed copy of the electronic HDF5 document set and *
12  * is linked from the top-level documents page. It can also be found at *
13  * http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have *
14  * access to either file, you may request a copy from help@hdfgroup.org. *
15  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
16 
17 #ifndef __H5ArrayType_H
18 #define __H5ArrayType_H
19 
20 namespace H5 {
21 
26 class H5_DLLCPP ArrayType : public DataType {
27  public:
28  // Constructor that creates a new array data type based on the
29  // specified base type.
30  ArrayType(const DataType& base_type, int ndims, const hsize_t* dims);
31 
32  // Assignment operator
33  ArrayType& operator=(const ArrayType& rhs);
34 
35  // Returns the number of dimensions of this array datatype.
36  int getArrayNDims() const;
37  //int getArrayNDims(); // removed 1.8.18 and 1.10.1
38 
39  // Returns the sizes of dimensions of this array datatype.
40  int getArrayDims(hsize_t* dims) const;
41  //int getArrayDims(hsize_t* dims); // removed 1.8.18 and 1.10.1
42 
44  virtual H5std_string fromClass () const { return("ArrayType"); }
45 
46  // Copy constructor: makes copy of the original object.
47  ArrayType( const ArrayType& original );
48 
49  // Constructor that takes an existing id
50  ArrayType( const hid_t existing_id );
51 
52  // Noop destructor
53  virtual ~ArrayType();
54 
55  // Default constructor
56  ArrayType();
57 };
58 }
59 #endif // __H5ArrayType_H
virtual H5std_string fromClass() const
Returns this class name.
Definition: H5ArrayType.h:44
Class DataType provides generic operations on HDF5 datatypes.
Definition: H5DataType.h:32
Class ArrayType inherits from DataType and provides wrappers for the HDF5's Array Datatypes...
Definition: H5ArrayType.h:26


The HDF Group Help Desk:
  Copyright by The HDF Group
and the Board of Trustees of the University of Illinois