HDF5 C++ API  1.8.12
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
H5DxferProp.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 // 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 #ifndef H5_NO_NAMESPACE
24 namespace H5 {
25 #endif
26 
31 class H5_DLLCPP DSetMemXferPropList : public PropList {
32  public:
34 
35  // Creates a dataset memory and transfer property list.
37 
38  // Sets type conversion and background buffers.
39  void setBuffer( size_t size, void* tconv, void* bkg ) const;
40 
41  // Reads buffer settings.
42  size_t getBuffer( void** tconv, void** bkg ) const;
43 
44  // Sets B-tree split ratios for a dataset transfer property list.
45  void setBtreeRatios( double left, double middle, double right ) const;
46 
47  // Gets B-tree split ratios for a dataset transfer property list.
48  void getBtreeRatios( double& left, double& middle, double& right ) const;
49 
50  // Sets the dataset transfer property list status to TRUE or FALSE.
51  void setPreserve( bool status ) const;
52 
53  // Checks status of the dataset transfer property list.
54  bool getPreserve() const;
55 
56  // Sets an exception handling callback for datatype conversion.
57  void setTypeConvCB( H5T_conv_except_func_t op, void *user_data) const;
58 
59  // Gets the exception handling callback for datatype conversion.
60  void getTypeConvCB( H5T_conv_except_func_t *op, void **user_data) const;
61 
62  // Sets the memory manager for variable-length datatype
63  // allocation in H5Dread and H5Dvlen_reclaim.
64  void setVlenMemManager( H5MM_allocate_t alloc, void* alloc_info,
65  H5MM_free_t free, void* free_info ) const;
66 
67  // alloc and free are set to NULL, indicating that system
68  // malloc and free are to be used.
69  void setVlenMemManager() const;
70 
71  // Gets the memory manager for variable-length datatype
72  // allocation in H5Dread and H5Tvlen_reclaim.
73  void getVlenMemManager( H5MM_allocate_t& alloc, void** alloc_info,
74  H5MM_free_t& free, void** free_info ) const;
75 
76  // Sets the size of a contiguous block reserved for small data.
77  void setSmallDataBlockSize(hsize_t size);
78 
79  // Returns the current small data block size setting.
80  hsize_t getSmallDataBlockSize();
81 
82  // Sets number of I/O vectors to be read/written in hyperslab I/O.
83  void setHyperVectorSize(size_t vector_size);
84 
85  // Returns the number of I/O vectors to be read/written in
86  // hyperslab I/O.
87  size_t getHyperVectorSize();
88 
89  // Enables or disables error-detecting for a dataset reading
90  // process.
91  void setEDCCheck(H5Z_EDC_t check);
92 
93  // Determines whether error-detection is enabled for dataset reads.
94  H5Z_EDC_t getEDCCheck();
95 
97  virtual H5std_string fromClass () const { return("DSetMemXferPropList"); }
98 
99  // Copy constructor: makes a copy of a DSetMemXferPropList object.
101 
102  // Creates a copy of an existing dataset memory and transfer
103  // property list using the property list id.
104  DSetMemXferPropList(const hid_t plist_id);
105 
106  // Noop destructor
107  virtual ~DSetMemXferPropList();
108 };
109 #ifndef H5_NO_NAMESPACE
110 }
111 #endif
112 #endif // __H5DSetMemXferPropList_H
Class PropList provides operations for generic property lists.
Definition: H5PropList.h:25
static const DSetMemXferPropList DEFAULT
Constant for default dataset memory and transfer property list.
Definition: H5DxferProp.h:33
virtual H5std_string fromClass() const
Returns this class name.
Definition: H5DxferProp.h:97
Class DSetMemXferPropList represents the dataset memory and transfer property list.
Definition: H5DxferProp.h:31
#define H5std_string
Definition: H5Exception.h:29