summaryrefslogtreecommitdiffstats
path: root/c++/src/H5DcreatProp.h
blob: 096a3d33180ba83f23b829c4f556678b15256095 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
// C++ informative line for the emacs editor: -*- C++ -*-
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Copyright by The HDF Group.                                               *
 * Copyright by the Board of Trustees of the University of Illinois.         *
 * All rights reserved.                                                      *
 *                                                                           *
 * This file is part of HDF5.  The full HDF5 copyright notice, including     *
 * terms governing use, modification, and redistribution, is contained in    *
 * the files COPYING and Copyright.html.  COPYING can be found at the root   *
 * of the source code distribution tree; Copyright.html can be found at the  *
 * root level of an installed copy of the electronic HDF5 document set and   *
 * is linked from the top-level documents page.  It can also be found at     *
 * http://hdfgroup.org/HDF5/doc/Copyright.html.  If you do not have          *
 * access to either file, you may request a copy from help@hdfgroup.org.     *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#ifndef __H5DSCreatPropList_H
#define __H5DSCreatPropList_H

namespace H5 {

class DataType;

/*! \class DSetCreatPropList
    \brief Class DSetCreatPropList inherits from ObjCreatPropList and provides
    wrappers for the HDF5 dataset creation property functions.

    Inheritance: ObjCreatPropList -> PropList -> IdComponent
*/
class H5_DLLCPP DSetCreatPropList : public ObjCreatPropList {
   public:
        ///\brief Default dataset creation property list.
        static const DSetCreatPropList& DEFAULT;

	// Creates a         // Creates a dataset creation property list.
        DSetCreatPropList();
hether all the         // Queries whether all the filters set in this property list are
        // available currently.
        bool allFiltersAvail() const;
me for this property.
        // Get space allocation time for this property.
        H5D_alloc_time_t getAllocTime() const;
 creation.
	voi        // Set space allocation time for dataset during creation.
        void setAllocTime(H5D_alloc_time_t alloc_time) const;
ayout dataset.
        // Retrieves the size of the chunks used to store a chunked layout dataset.
        int getChunk(int max_ndims, hsize_t* dim) const;
d setChunk( i        // Sets the size of the chunks used to store a chunked layout dataset.
        void setChunk(int ndims, const hsize_t* dim) const;
name_size, ch        // Returns information about an external file.
        void getExternal(unsigned idx, size_t name_size, char* name, off_t& offset, hsize_t& size) const;
l value writi        // Returns the number of external files for a dataset.
        int getExternalCount() const;
taset.
	void se        // Gets fill value writing time.
        H5D_fill_time_t getFillTime() const;
l value.
	void         // Sets fill value writing time for dataset.
        void setFillTime(H5D_fill_time_t fill_time) const;
oid setFillValu        // Retrieves a dataset fill value.
        void getFillValue(const DataType& fvalue_type, void* value) const;
peline.
	H5Z_        // Sets a dataset fill value.
        void setFillValue(const DataType& fvalue_type, const void* value) const;
_t namelen, c        // Returns information about a filter in a pipeline.
        H5Z_filter_t getFilter(int filter_number, unsigned int& flags, size_t& cd_nelmts, unsigned int* cd_values, size_t namelen, char name[], unsigned int &filter_config) const;
ues, size_t nam        // Returns information about a filter in a pipeline given the filter id.
        void getFilterById(H5Z_filter_t filter_id, unsigned int &flags, size_t &cd_nelmts, unsigned int* cd_values, size_t namelen, char name[], unsigned int &filter_config) const;
dataset that us        // Gets the layout of the raw data storage of the data that uses this
        // property list.
        H5D_layout_t getLayout() const;
 getNfilters() const;
        // Sets the type of storage used to store the raw data for the
        // dataset that uses this property list.
        void setLayout(H5D_layout_t layout) const;
modifyFilter( H5Z_filt        // Returns the number of filters in the pipeline.
        int getNfilters() const;
alues[] ) const        // Checks if fill value has been defined for this property.
        H5D_fill_value_t isFillValueDefined() const;
t;

	// Sets co        // Modifies the specified filter.
        void modifyFilter(H5Z_filter_t filter_id, unsigned int flags, size_t cd_nelmts, const unsigned int cd_values[]) const;
st char* name        // Remove one or all filters from the filter pipeline.
        void removeFilter(H5Z_filter_t filter_id) const;
r_t filter, un        // Sets compression method and compression level.
        void setDeflate(int level) const;
;

	// Sets F        // Adds an external file to the list of external files.
        void setExternal(const char* name, off_t offset, hsize_t size) const;
uffle() const        // Adds a filter to the filter pipeline.
        void setFilter(H5Z_filter_t filter, unsigned int flags = 0, size_t cd_nelmts = 0, const unsigned int cd_values[] = NULL) const;
t;

	///\brief        // Sets Fletcher32 checksum of EDC for this property list.
        void setFletcher32() const;
pList"); }

	//        // Sets method of the shuffle filter.
        void setShuffle() const;
	DSetCreatPropL        // Sets SZIP compression method.
        void setSzip(unsigned int options_mask, unsigned int pixels_per_block) const;
he property lis        // Sets N-bit compression method.
        void setNbit() const;
destructor.
	vi        ///\brief Returns this class name.
        virtual H5std_string fromClass () const { return("DSetCreatPropList"); }
only be used by        // Copy constructor: creates a copy of a DSetCreatPropList object.
        DSetCreatPropList(const DSetCreatPropList& orig);
tes the global         // Creates a copy of an existing dataset creation property list
        // using the property list id.
        DSetCreatPropList(const hid_t plist_id);
if // __H5DSCreatPropList_H