HDF5 C++ API Reference Manual

 

 

 

Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Examples

H5ArrayType.h

Go to the documentation of this file.
00001 // C++ informative line for the emacs editor: -*- C++ -*- 00002 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 00003 * Copyright by the Board of Trustees of the University of Illinois. * 00004 * All rights reserved. * 00005 * * 00006 * This file is part of HDF5. The full HDF5 copyright notice, including * 00007 * terms governing use, modification, and redistribution, is contained in * 00008 * the files COPYING and Copyright.html. COPYING can be found at the root * 00009 * of the source code distribution tree; Copyright.html can be found at the * 00010 * root level of an installed copy of the electronic HDF5 document set and * 00011 * is linked from the top-level documents page. It can also be found at * 00012 * http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have * 00013 * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * 00014 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 00015 00016 // Class ArrayType inherits from DataType and provides wrappers for the 00017 // HDF5 C's Array Datatypes. 00018 00019 #ifndef _H5ArrayType_H 00020 #define _H5ArrayType_H 00021 00022 #ifndef H5_NO_NAMESPACE 00023 namespace H5 { 00024 #endif 00025 class H5_DLLCPP ArrayType : public DataType { 00026 public: 00027 // Constructor that creates a new array data type based on the 00028 // specified base type. 00029 ArrayType(const DataType& base_type, int ndims, const hsize_t* dims); 00030 00031 // Returns the number of dimensions of this array datatype. 00032 int getArrayNDims(); 00033 00034 // Returns the sizes of dimensions of this array datatype. 00035 int getArrayDims(hsize_t* dims); 00036 00037 // Copy constructor: makes copy of the original object. 00038 ArrayType( const ArrayType& original ); 00039 00040 // Noop destructor 00041 virtual ~ArrayType(); 00042 00043 protected: 00044 // Default constructor 00045 ArrayType(); 00046 00047 // Constructor that takes an existing id 00048 ArrayType( const hid_t existing_id ); 00049 00050 private: 00051 int rank; // Rank of the array 00052 hsize_t* dimensions; // Sizes of the array dimensions 00053 }; 00054 #ifndef H5_NO_NAMESPACE 00055 } 00056 #endif 00057 #endif

Generated on Sat Aug 21 16:36:47 2004 by doxygen 1.3.7-20040718