HDF5 C++ API  1.8.18
 All Classes Namespaces Functions Variables Typedefs Friends Pages
H5StrType.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 __H5StrType_H
18 #define __H5StrType_H
19 
20 namespace H5 {
21 
23 class H5_DLLCPP StrType : public AtomType {
24  public:
25  // Creates a string type using a predefined type
26  StrType(const PredType& pred_type);
27 
28  // Creates a string type with specified length - may be obsolete
29  StrType(const PredType& pred_type, const size_t& size);
30 
31  // Creates a string type with specified length
32  StrType(const int dummy, const size_t& size);
33 
34  // Gets the string datatype of the specified dataset
35  StrType(const DataSet& dataset);
36 
37  // Retrieves the character set type of this string datatype.
38  H5T_cset_t getCset() const;
39 
40  // Sets character set to be used.
41  void setCset(H5T_cset_t cset) const;
42 
43  // Retrieves the string padding method for this string datatype.
44  H5T_str_t getStrpad() const;
45 
46  // Defines the storage mechanism for character strings.
47  void setStrpad(H5T_str_t strpad) const;
48 
50  virtual H5std_string fromClass () const { return("StrType"); }
51 
52  // default constructor
53  StrType();
54 
55  // Creates a string datatype using an existing id
56  StrType(const hid_t existing_id);
57 
58  // Copy constructor - makes a copy of the original object
59  StrType(const StrType& original);
60 
61  // Noop destructor.
62  virtual ~StrType();
63 };
64 }
65 #endif // __H5StrType_H
Class PredType holds the definition of all the HDF5 predefined datatypes.
Definition: H5PredType.h:29
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: H5StrType.h:50
Class DataSet operates on HDF5 datasets.
Definition: H5DataSet.h:29
Class StrType operates on HDF5 string datatypes.
Definition: H5StrType.h:23


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