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 [email protected]. *
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 ArrayType;
00028 class CompType;
00029 class EnumType;
00030 class FloatType;
00031 class IntType;
00032 class StrType;
00033 class VarLenType;
00034 class H5_DLLCPP AbstractDs : public H5Object {
00035    public:
00036         // Gets a copy the datatype of that this abstract dataset uses.
00037         // Note that this datatype is a generic one and can only be accessed
00038         // via generic member functions, i.e., member functions belong
00039         // to DataType.  To get specific datatype, i.e. EnumType, FloatType,
00040         // etc..., use the specific functions, that follow, instead .
00041         DataType getDataType() const;
00042 
00043         // Gets a copy of the specific datatype of this abstract dataset
00044         ArrayType getArrayType() const;
00045         CompType getCompType() const;
00046         EnumType getEnumType() const;
00047         FloatType getFloatType() const;
00048         IntType getIntType() const;
00049         StrType getStrType() const;
00050         VarLenType getVarLenType() const;
00051 
00052         // Gets the dataspace of this abstract dataset - pure virtual
00053         virtual DataSpace getSpace() const = 0;
00054 
00055         // Gets the class of the datatype that is used by this abstract
00056         // dataset
00057         H5T_class_t getTypeClass() const;
00058 
00059         // Returns the amount of storage size required for this abstract
00060         // dataset - pure virtual.
00061         virtual hsize_t getStorageSize() const = 0;
00062 
00063         // Copy constructor
00064         AbstractDs( const AbstractDs& original );
00065 
00066         virtual ~AbstractDs();
00067 
00068    protected:
00069         // Default constructor
00070         AbstractDs();
00071 
00072         // Constructor that takes an attribute id or a dataset id.
00073         AbstractDs( const hid_t ds_id );
00074 
00075    private:
00076         // This member function is implemented by DataSet and Attribute.
00077         virtual hid_t p_get_type() const = 0;
00078 };
00079 #ifndef H5_NO_NAMESPACE
00080 }
00081 #endif
00082 #endif // _AbstractDs_H

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