HDF5 C++ API Reference Manual

 

 

 

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

H5AtomType.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 AtomType is a base class, from which IntType, FloatType, StrType,
00017 // and PredType inherit.  It provides the services that are common to these
00018 // subclasses.  It also inherits from DataType and passes down the
00019 // services that are common to all the datatypes.
00020 
00021 #ifndef _H5AtomType_H
00022 #define _H5AtomType_H
00023 
00024 #ifndef H5_NO_NAMESPACE
00025 namespace H5 {
00026 #endif
00027 class H5_DLLCPP AtomType : public DataType {
00028    public:
00029         // Returns the byte order of an atomic datatype. 
00030         H5T_order_t getOrder( string& order_string ) const;
00031         H5T_order_t getOrder() const;
00032 
00033         // Sets the byte ordering of an atomic datatype. 
00034         void setOrder( H5T_order_t order ) const;
00035 
00036         // Retrieves the bit offset of the first significant bit. 
00037         // 12/05/00 - changed return type to int from size_t - C API
00038         int getOffset() const;
00039 
00040         // Sets the bit offset of the first significant bit. 
00041         void setOffset( size_t offset ) const;
00042 
00043         // Retrieves the padding type of the least and most-significant bit padding. 
00044         void getPad( H5T_pad_t& lsb, H5T_pad_t& msb ) const;
00045 
00046         // Sets the least and most-significant bits padding types
00047         void setPad( H5T_pad_t lsb, H5T_pad_t msb ) const;
00048 
00049         // Returns the precision of an atomic datatype. 
00050         size_t getPrecision() const;
00051 
00052         // Sets the precision of an atomic datatype. 
00053         void setPrecision( size_t precision ) const;
00054 
00055         // Sets the total size for an atomic datatype. 
00056         void setSize( size_t size ) const;
00057 
00058         // Copy constructor - makes copy of the original object
00059         AtomType( const AtomType& original );
00060 
00061         // Noop destructor
00062         virtual ~AtomType();
00063 
00064    protected:
00065 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00066         // Default constructor
00067         AtomType();
00068 
00069         // Constructor that takes an existing id
00070         AtomType( const hid_t existing_id );
00071 #endif // DOXYGEN_SHOULD_SKIP_THIS
00072 };
00073 #ifndef H5_NO_NAMESPACE
00074 }
00075 #endif
00076 #endif

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