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 [email protected]. *
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         // Returns this class name
00038         virtual string fromClass () const { return ("ArrayType"); }
00039 
00040         // Copy constructor: makes copy of the original object.
00041         ArrayType( const ArrayType& original );
00042 
00043         // Constructor that takes an existing id
00044         ArrayType( const hid_t existing_id );
00045 
00046         // Noop destructor
00047         virtual ~ArrayType();
00048 
00049    protected:
00050         // Default constructor
00051         ArrayType();
00052 
00053    private:
00054         int rank;               // Rank of the array
00055         hsize_t* dimensions;    // Sizes of the array dimensions
00056 };
00057 #ifndef H5_NO_NAMESPACE
00058 }
00059 #endif
00060 #endif

Generated on Mon Oct 31 04:59:47 2005 by  doxygen 1.4.2