HDF5 C++ API Reference Manual

 

 

 

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

H5AbstractDs.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 AbstractDs is an abstract base class, from which Attribute and
00017 // DataSet inherit.  It provides the services that are common to both
00018 // Attribute and DataSet.  It also inherits from H5Object and passes down
00019 // the services that H5Object provides.
00020 
00021 #ifndef _AbstractDs_H
00022 #define _AbstractDs_H
00023 
00024 #ifndef H5_NO_NAMESPACE
00025 namespace H5 {
00026 #endif
00027 class H5_DLLCPP AbstractDs : public H5Object {
00028    public:
00029         // Gets a copy the datatype of that this abstract dataset uses.
00030         // Note that this datatype is a generic one and can only be accessed 
00031         // via generic member functions, i.e., member functions belong 
00032         // to DataType.  To get specific datatype, i.e. EnumType, FloatType, 
00033         // etc..., use the specific functions, that follow, instead .
00034         DataType getDataType() const;
00035 
00036         // Gets a copy of the specific datatype of this abstract dataset
00037         EnumType getEnumType() const;
00038         CompType getCompType() const;
00039         IntType getIntType() const;
00040         FloatType getFloatType() const;
00041         StrType getStrType() const;
00042 
00043         // Gets the dataspace of this abstract dataset - pure virtual
00044         virtual DataSpace getSpace() const = 0;
00045 
00046         // Gets the class of the datatype that is used by this abstract 
00047         // dataset        
00048         H5T_class_t getTypeClass() const;
00049 
00050         // Returns the amount of storage size required for this abstract
00051         // dataset - pure virtual.
00052         virtual hsize_t getStorageSize() const = 0;
00053 
00054         // Copy constructor
00055         AbstractDs( const AbstractDs& original );
00056 
00057         virtual ~AbstractDs(); 
00058 
00059    protected:
00060         // Default constructor
00061         AbstractDs();
00062 
00063         // Constructor that takes an attribute id or a dataset id.
00064         AbstractDs( const hid_t ds_id );
00065 
00066    private:
00067         // This member function is implemented by DataSet and Attribute.
00068         virtual hid_t p_get_type() const = 0;
00069 };
00070 #ifndef H5_NO_NAMESPACE
00071 }
00072 #endif
00073 #endif // _AbstractDs_H

Generated on Sat Apr 23 16:19:44 2005 by  doxygen 1.4.2