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 // Copy constructor 00051 AbstractDs( const AbstractDs& original ); 00052 00053 virtual ~AbstractDs(); 00054 00055 protected: 00056 // Default constructor 00057 AbstractDs(); 00058 00059 // Constructor that takes an attribute id or a dataset id. 00060 AbstractDs( const hid_t ds_id ); 00061 00062 private: 00063 // This member function is implemented by DataSet and Attribute 00064 virtual hid_t p_get_type() const = 0; 00065 00066 // This member function is implemented by DataSet and Attribute 00067 virtual void p_close() const = 0; 00068 }; 00069 #ifndef H5_NO_NAMESPACE 00070 } 00071 #endif 00072 #endif // _AbstractDs_H

Generated on Thu Aug 5 00:22:37 2004 by doxygen 1.3.7-20040718