My Project 1.10.10
Loading...
Searching...
No Matches
H5IntType.h
1// C++ informative line for the emacs editor: -*- C++ -*-
2/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3 * Copyright by The HDF Group. *
4 * All rights reserved. *
5 * *
6 * This file is part of HDF5. The full HDF5 copyright notice, including *
7 * terms governing use, modification, and redistribution, is contained in *
8 * the COPYING file, which can be found at the root of the source code *
9 * distribution tree, or in https://www.hdfgroup.org/licenses. *
10 * If you do not have access to either file, you may request a copy from *
11 * help@hdfgroup.org. *
12 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
13
14#ifndef H5IntType_H
15#define H5IntType_H
16
17namespace H5 {
18
23// Inheritance: AtomType -> DataType -> H5Object -> H5Location -> IdComponent
24class H5_DLLCPP IntType : public AtomType {
25 public:
26 // Creates an integer type using a predefined type
27 IntType(const PredType &pred_type);
28
29 // Gets the integer datatype of the specified dataset
30 IntType(const DataSet &dataset);
31
32 // Constructors that open an HDF5 integer datatype, given a location.
33 IntType(const H5Location &loc, const char *name);
34 IntType(const H5Location &loc, const H5std_string &name);
35
36 // Returns an IntType object via DataType* by decoding the
37 // binary object description of this type.
38 virtual DataType *decode() const;
39
40 // Retrieves the sign type for an integer type
41 H5T_sign_t getSign() const;
42
43 // Sets the sign property for an integer type.
44 void setSign(H5T_sign_t sign) const;
45
47 virtual H5std_string
48 fromClass() const
49 {
50 return ("IntType");
51 }
52
53 // Default constructor
54 IntType();
55
56 // Creates a integer datatype using an existing id
57 IntType(const hid_t existing_id);
58
59 // Copy constructor: same as the original IntType.
60 IntType(const IntType &original);
61
62 // Noop destructor.
63 virtual ~IntType();
64
65}; // end of IntType
66} // namespace H5
67
68#endif // H5IntType_H
AtomType is a base class, inherited by IntType, FloatType, StrType, and PredType.
Definition H5AtomType.h:27
Class DataSet operates on HDF5 datasets.
Definition H5DataSet.h:27
Class DataType provides generic operations on HDF5 datatypes.
Definition H5DataType.h:27
H5Location is an abstract base class, added in version 1.8.12.
Definition H5Location.h:30
IntType is a derivative of a DataType and operates on HDF5 integer datatype.
Definition H5IntType.h:24
virtual H5std_string fromClass() const
Returns this class name.
Definition H5IntType.h:48
Class PredType holds the definition of all the HDF5 predefined datatypes.
Definition H5PredType.h:27
Definition H5AbstractDs.cpp:33


The HDF Group Help Desk:
  Copyright by The HDF Group