H5IntType.h

00001 // C++ informative line for the emacs editor: -*- C++ -*-
00002 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
00003  * Copyright by The HDF Group.                                               *
00004  * Copyright by the Board of Trustees of the University of Illinois.         *
00005  * All rights reserved.                                                      *
00006  *                                                                           *
00007  * This file is part of HDF5.  The full HDF5 copyright notice, including     *
00008  * terms governing use, modification, and redistribution, is contained in    *
00009  * the files COPYING and Copyright.html.  COPYING can be found at the root   *
00010  * of the source code distribution tree; Copyright.html can be found at the  *
00011  * root level of an installed copy of the electronic HDF5 document set and   *
00012  * is linked from the top-level documents page.  It can also be found at     *
00013  * http://hdfgroup.org/HDF5/doc/Copyright.html.  If you do not have          *
00014  * access to either file, you may request a copy from help@hdfgroup.org.     *
00015  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
00016 
00017 #ifndef _H5IntType_H
00018 #define _H5IntType_H
00019 
00020 #ifndef H5_NO_NAMESPACE
00021 namespace H5 {
00022 #endif
00023 
00024 class H5_DLLCPP IntType : public AtomType {
00025    public:
00026         // Creates a integer type using a predefined type
00027         IntType(const PredType& pred_type);
00028 
00029         // Gets the integer datatype of the specified dataset
00030         IntType(const DataSet& dataset);
00031 
00032         // Retrieves the sign type for an integer type
00033         H5T_sign_t getSign() const;
00034 
00035         // Sets the sign proprety for an integer type.
00036         void setSign( H5T_sign_t sign ) const;
00037 
00039         virtual H5std_string fromClass () const { return("IntType"); }
00040 
00041         // Default constructor
00042         IntType();
00043 
00044         // Creates a integer datatype using an existing id
00045         IntType(const hid_t existing_id);
00046 
00047         // Copy constructor: makes copy of IntType object
00048         IntType(const IntType& original);
00049 
00050         // Noop destructor.
00051         virtual ~IntType();
00052 };
00053 #ifndef H5_NO_NAMESPACE
00054 }
00055 #endif
00056 #endif