HDF5 C++ API  1.8.18
 All Classes Namespaces Functions Variables Typedefs Friends Pages
H5IntType.h
1 // C++ informative line for the emacs editor: -*- C++ -*-
2 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3  * Copyright by The HDF Group. *
4  * Copyright by the Board of Trustees of the University of Illinois. *
5  * All rights reserved. *
6  * *
7  * This file is part of HDF5. The full HDF5 copyright notice, including *
8  * terms governing use, modification, and redistribution, is contained in *
9  * the files COPYING and Copyright.html. COPYING can be found at the root *
10  * of the source code distribution tree; Copyright.html can be found at the *
11  * root level of an installed copy of the electronic HDF5 document set and *
12  * is linked from the top-level documents page. It can also be found at *
13  * http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have *
14  * access to either file, you may request a copy from help@hdfgroup.org. *
15  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
16 
17 #ifndef __H5IntType_H
18 #define __H5IntType_H
19 
20 namespace H5 {
21 
23 class H5_DLLCPP IntType : public AtomType {
24  public:
25  // Creates an integer type using a predefined type
26  IntType(const PredType& pred_type);
27 
28  // Gets the integer datatype of the specified dataset
29  IntType(const DataSet& dataset);
30 
31  // Retrieves the sign type for an integer type
32  H5T_sign_t getSign() const;
33 
34  // Sets the sign proprety for an integer type.
35  void setSign( H5T_sign_t sign ) const;
36 
38  virtual H5std_string fromClass () const { return("IntType"); }
39 
40  // Default constructor
41  IntType();
42 
43  // Creates a integer datatype using an existing id
44  IntType(const hid_t existing_id);
45 
46  // Copy constructor: makes copy of IntType object
47  IntType(const IntType& original);
48 
49  // Noop destructor.
50  virtual ~IntType();
51 };
52 }
53 #endif // __H5IntType_H
Class PredType holds the definition of all the HDF5 predefined datatypes.
Definition: H5PredType.h:29
Class IntType operates on HDF5 integer datatype.
Definition: H5IntType.h:23
AtomType is a base class, inherited by IntType, FloatType, StrType, and PredType. ...
Definition: H5AtomType.h:29
virtual H5std_string fromClass() const
Returns this class name.
Definition: H5IntType.h:38
Class DataSet operates on HDF5 datasets.
Definition: H5DataSet.h:29


The HDF Group Help Desk:
  Copyright by The HDF Group
and the Board of Trustees of the University of Illinois