HDF5 C++ API Reference Manual

 

 

 

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

H5FloatType.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 #ifndef _H5FloatType_H 00017 #define _H5FloatType_H 00018 00019 #ifndef H5_NO_NAMESPACE 00020 namespace H5 { 00021 #endif 00022 00023 class H5_DLLCPP FloatType : public AtomType { 00024 public: 00025 // Creates a floating-point type using a predefined type 00026 FloatType( const PredType& pred_type ); 00027 00028 // Gets the floating-point datatype of the specified dataset 00029 FloatType( const DataSet& dataset ); 00030 00031 // Retrieves the exponent bias of a floating-point type. 00032 size_t getEbias() const; 00033 00034 // Sets the exponent bias of a floating-point type. 00035 void setEbias( size_t ebias ) const; 00036 00037 // Retrieves floating point datatype bit field information. 00038 void getFields( size_t& spos, size_t& epos, size_t& esize, size_t& mpos, size_t& msize ) const; 00039 00040 // Sets locations and sizes of floating point bit fields. 00041 void setFields( size_t spos, size_t epos, size_t esize, size_t mpos, size_t msize ) const; 00042 00043 // Retrieves the internal padding type for unused bits in floating-point datatypes. 00044 H5T_pad_t getInpad( string& pad_string ) const; 00045 00046 // Fills unused internal floating point bits. 00047 void setInpad( H5T_pad_t inpad ) const; 00048 00049 // Retrieves mantissa normalization of a floating-point datatype. 00050 H5T_norm_t getNorm( string& norm_string ) const; 00051 00052 // Sets the mantissa normalization of a floating-point datatype. 00053 void setNorm( H5T_norm_t norm ) const; 00054 00055 // Default constructor 00056 FloatType(); 00057 00058 // Creates a floating-point datatype using an existing id 00059 FloatType( const hid_t existing_id ); 00060 00061 // Copy constructor: makes a copy of the original FloatType object. 00062 FloatType( const FloatType& original ); 00063 00064 // Noop destructor. 00065 virtual ~FloatType(); 00066 }; 00067 #ifndef H5_NO_NAMESPACE 00068 } 00069 #endif 00070 #endif

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