HDF5 C++ API  1.8.12
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
H5IntType.h
Go to the documentation of this file.
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 #ifndef H5_NO_NAMESPACE
21 namespace H5 {
22 #endif
23 
25 class H5_DLLCPP IntType : public AtomType {
26  public:
27  // Creates a integer type using a predefined type
28  IntType(const PredType& pred_type);
29 
30  // Gets the integer datatype of the specified dataset
31  IntType(const DataSet& dataset);
32 
33  // Retrieves the sign type for an integer type
34  H5T_sign_t getSign() const;
35 
36  // Sets the sign proprety for an integer type.
37  void setSign( H5T_sign_t sign ) const;
38 
40  virtual H5std_string fromClass () const { return("IntType"); }
41 
42  // Default constructor
43  IntType();
44 
45  // Creates a integer datatype using an existing id
46  IntType(const hid_t existing_id);
47 
48  // Copy constructor: makes copy of IntType object
49  IntType(const IntType& original);
50 
51  // Noop destructor.
52  virtual ~IntType();
53 };
54 #ifndef H5_NO_NAMESPACE
55 }
56 #endif
57 #endif // __H5IntType_H
Class DataSet operates on HDF5 datasets.
Definition: H5DataSet.h:31
Class IntType operates on HDF5 integer datatype.
Definition: H5IntType.h:25
Class PredType holds the definition of all the HDF5 predefined datatypes.
Definition: H5PredType.h:41
#define H5std_string
Definition: H5Exception.h:29
virtual H5std_string fromClass() const
Returns this class name.
Definition: H5IntType.h:40
Class AtomType is a base class, inherited by IntType, FloatType, StrType, and PredType.
Definition: H5AtomType.h:31