HDF5 C++ API  1.8.18
 All Classes Namespaces Functions Variables Typedefs Friends Pages
H5DxferProp.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 // Class DSetMemXferPropList represents the HDF5 dataset transfer property list
18 // and inherits from PropList.
19 
20 #ifndef __H5DSetMemXferPropList_H
21 #define __H5DSetMemXferPropList_H
22 
23 namespace H5 {
24 
29 class H5_DLLCPP DSetMemXferPropList : public PropList {
30  public:
33 
34  // Creates a dataset memory and transfer property list.
36 
37  // Creates a dataset transform property list.
38  DSetMemXferPropList(const char* expression);
39 
40  // Sets type conversion and background buffers.
41  void setBuffer( size_t size, void* tconv, void* bkg ) const;
42 
43  // Reads buffer settings.
44  size_t getBuffer( void** tconv, void** bkg ) const;
45 
46  // Sets B-tree split ratios for a dataset transfer property list.
47  void setBtreeRatios( double left, double middle, double right ) const;
48 
49  // Gets B-tree split ratios for a dataset transfer property list.
50  void getBtreeRatios( double& left, double& middle, double& right ) const;
51 
52  // Sets data transform expression.
53  void setDataTransform(const char* expression) const;
54  void setDataTransform(const H5std_string& expression) const;
55 
56  // Gets data transform expression.
57  ssize_t getDataTransform(char* exp, size_t buf_size=0) const;
58  H5std_string getDataTransform() const;
59 
60  // Sets the dataset transfer property list status to TRUE or FALSE.
61  void setPreserve( bool status ) const;
62 
63  // Checks status of the dataset transfer property list.
64  bool getPreserve() const;
65 
66  // Sets an exception handling callback for datatype conversion.
67  void setTypeConvCB( H5T_conv_except_func_t op, void *user_data) const;
68 
69  // Gets the exception handling callback for datatype conversion.
70  void getTypeConvCB( H5T_conv_except_func_t *op, void **user_data) const;
71 
72  // Sets the memory manager for variable-length datatype
73  // allocation in H5Dread and H5Dvlen_reclaim.
74  void setVlenMemManager( H5MM_allocate_t alloc, void* alloc_info,
75  H5MM_free_t free, void* free_info ) const;
76 
77  // alloc and free are set to NULL, indicating that system
78  // malloc and free are to be used.
79  void setVlenMemManager() const;
80 
81  // Gets the memory manager for variable-length datatype
82  // allocation in H5Dread and H5Tvlen_reclaim.
83  void getVlenMemManager( H5MM_allocate_t& alloc, void** alloc_info,
84  H5MM_free_t& free, void** free_info ) const;
85 
86  // Sets the size of a contiguous block reserved for small data.
87  void setSmallDataBlockSize(hsize_t size) const;
88 
89  // Returns the current small data block size setting.
90  hsize_t getSmallDataBlockSize() const;
91 
92  // Sets number of I/O vectors to be read/written in hyperslab I/O.
93  void setHyperVectorSize(size_t vector_size) const;
94 
95  // Returns the number of I/O vectors to be read/written in
96  // hyperslab I/O.
97  size_t getHyperVectorSize() const;
98 
99  // Enables or disables error-detecting for a dataset reading
100  // process.
101  void setEDCCheck(H5Z_EDC_t check) const;
102 
103  // Determines whether error-detection is enabled for dataset reads.
104  H5Z_EDC_t getEDCCheck() const;
105 
107  virtual H5std_string fromClass () const { return("DSetMemXferPropList"); }
108 
109  // Copy constructor: makes a copy of a DSetMemXferPropList object.
111 
112  // Creates a copy of an existing dataset memory and transfer
113  // property list using the property list id.
114  DSetMemXferPropList(const hid_t plist_id);
115 
116  // Noop destructor
117  virtual ~DSetMemXferPropList();
118 
119 #ifndef DOXYGEN_SHOULD_SKIP_THIS
120 
121  // Deletes the global constant, should only be used by the library
122  static void deleteConstants();
123 
124  private:
125  static DSetMemXferPropList* DEFAULT_;
126 
127  // Creates the global constant, should only be used by the library
128  static DSetMemXferPropList* getConstant();
129 
130 #endif // DOXYGEN_SHOULD_SKIP_THIS
131 };
132 }
133 #endif // __H5DSetMemXferPropList_H
virtual H5std_string fromClass() const
Returns this class name.
Definition: H5DxferProp.h:107
Class DSetMemXferPropList represents the dataset memory and transfer property list.
Definition: H5DxferProp.h:29
static const DSetMemXferPropList & DEFAULT
Default dataset memory and transfer property list.
Definition: H5DxferProp.h:32
Class PropList provides operations for generic property lists.
Definition: H5PropList.h:23


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