Package: pbseqlib / 5.3.5+dfsg-4

hdf5-1.10.0-support.patch Patch series | download
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
Author: Gilles Filippini <pini@debian.org>
Last-Update: Sun, 1 Jul 2018 21:33:39 +0200
Bug-Debian: https://bugs.debian.org/898567
Description: Fix build against recent Hdf5 lib

--- a/hdf/BufferedHDF2DArray.cpp
+++ b/hdf/BufferedHDF2DArray.cpp
@@ -29,7 +29,7 @@
 
  */
 
-DSLength GetDatasetNDim(H5::Group &parentGroup, std::string datasetName)
+DSLength GetDatasetNDim(H5::CommonFG &parentGroup, std::string datasetName)
 {
     HDFData tmpDataset;
     tmpDataset.InitializeDataset(parentGroup, datasetName);
--- a/hdf/BufferedHDF2DArray.hpp
+++ b/hdf/BufferedHDF2DArray.hpp
@@ -53,7 +53,7 @@ private:
     DSLength rowLength, colLength;
 
 public:
-    BufferedHDF2DArray(H5::Group *_container, std::string _datasetName);
+    BufferedHDF2DArray(H5::CommonFG *_container, std::string _datasetName);
 
     BufferedHDF2DArray();
 
@@ -93,7 +93,7 @@ public:
     void Read(DSLength startX, DSLength endX, DSLength startY, DSLength endY, H5::DataType typeID,
               T *dest);
 
-    void Create(H5::Group *_container, std::string _datasetName, DSLength _rowLength);
+    void Create(H5::CommonFG *_container, std::string _datasetName, DSLength _rowLength);
 
     void TypedCreate(H5::DataSpace &fileSpace, H5::DSetCreatPropList &cparms);
 
@@ -113,7 +113,7 @@ public:
     void Flush(DSLength destRow = static_cast<DSLength>(-1));
 };
 
-DSLength GetDatasetNDim(H5::Group &parentGroup, std::string datasetName);
+DSLength GetDatasetNDim(H5::CommonFG &parentGroup, std::string datasetName);
 
 #define DECLARE_TYPED_WRITE_ROW(T, Pred)                                                       \
     template <>                                                                                \
--- a/hdf/BufferedHDF2DArrayImpl.hpp
+++ b/hdf/BufferedHDF2DArrayImpl.hpp
@@ -7,7 +7,7 @@
 #include <pbdata/utils.hpp>
 
 template <typename T>
-BufferedHDF2DArray<T>::BufferedHDF2DArray(H5::Group *_container, std::string _datasetName)
+BufferedHDF2DArray<T>::BufferedHDF2DArray(H5::CommonFG *_container, std::string _datasetName)
     : HDFData(_container, _datasetName)
 {
 }
@@ -191,7 +191,7 @@ void BufferedHDF2DArray<T>::Read(DSLengt
 }
 
 template <typename T>
-void BufferedHDF2DArray<T>::Create(H5::Group *_container, std::string _datasetName,
+void BufferedHDF2DArray<T>::Create(H5::CommonFG *_container, std::string _datasetName,
                                    DSLength _rowLength)
 {
     container = _container;
--- a/hdf/BufferedHDFArray.hpp
+++ b/hdf/BufferedHDFArray.hpp
@@ -52,7 +52,7 @@ public:
      */
     BufferedHDFArray(int pBufferSize = 32768);
 
-    BufferedHDFArray(H5::Group *_container, std::string _datasetName);
+    BufferedHDFArray(H5::CommonFG *_container, std::string _datasetName);
 
     ~BufferedHDFArray();
 
@@ -72,7 +72,7 @@ public:
 
     void Create(HDFGroup &parentGroup, std::string _datasetName);
 
-    void Create(H5::Group *_container, std::string _datasetName);
+    void Create(H5::CommonFG *_container, std::string _datasetName);
 
     /*
      * Initialize for reading.
--- a/hdf/BufferedHDFArrayImpl.hpp
+++ b/hdf/BufferedHDFArrayImpl.hpp
@@ -20,7 +20,7 @@ BufferedHDFArray<T>::BufferedHDFArray(in
 }
 
 template <typename T>
-BufferedHDFArray<T>::BufferedHDFArray(H5::Group *_container, std::string _datasetName)
+BufferedHDFArray<T>::BufferedHDFArray(H5::CommonFG *_container, std::string _datasetName)
     : HDFData(_container, _datasetName)
 {
     // no-op
@@ -190,7 +190,7 @@ void BufferedHDFArray<T>::Create(HDFGrou
 }
 
 template <typename T>
-void BufferedHDFArray<T>::Create(H5::Group *_container, std::string _datasetName)
+void BufferedHDFArray<T>::Create(H5::CommonFG *_container, std::string _datasetName)
 {
     //
     // Initialize where the dataset will go.
--- a/hdf/HDFAtom.cpp
+++ b/hdf/HDFAtom.cpp
@@ -1,7 +1,7 @@
 #include <hdf/HDFAtom.hpp>
 
 template <>
-void HDFAtom<std::string>::Create(H5::H5Object &object, const std::string &atomName)
+void HDFAtom<std::string>::Create(H5::H5Location &object, const std::string &atomName)
 {
     H5::StrType strType(0, H5T_VARIABLE);
     hsize_t defaultDims[] = {1};
@@ -11,7 +11,7 @@ void HDFAtom<std::string>::Create(H5::H5
 
 #define DEFINE_TYPED_CREATE_ATOM(T, predtype)                                               \
     template <>                                                                             \
-    void HDFAtom<T>::TypedCreate(H5::H5Object &object, const std::string &atomName,         \
+    void HDFAtom<T>::TypedCreate(H5::H5Location &object, const std::string &atomName,         \
                                  H5::DataSpace &defaultDataSpace)                           \
     {                                                                                       \
         attribute = object.createAttribute(atomName.c_str(), (predtype), defaultDataSpace); \
--- a/hdf/HDFAtom.hpp
+++ b/hdf/HDFAtom.hpp
@@ -26,9 +26,9 @@ public:
         }
     }
 
-    H5::H5Object *GetObject() { return NULL; }
+    H5::H5Location *GetObject() { return NULL; }
 
-    int Initialize(H5::H5Object &object, const std::string &attributeName)
+    int Initialize(H5::H5Location &object, const std::string &attributeName)
     {
         attribute = object.openAttribute(attributeName.c_str());
         isInitialized = true;
@@ -45,7 +45,7 @@ public:
         return Initialize(data.dataset, attributeName);
     }
 
-    int Initialize(H5::Group &object, const std::string &attributeName)
+    int Initialize(H5::H5File &object, const std::string &attributeName)
     {
         try {
             attribute = object.openAttribute(attributeName.c_str());
@@ -71,14 +71,14 @@ public:
     // This handles creation of all non-std::string types.  A specialization
     // for std::strings is provided below.
     //
-    void Create(H5::H5Object &object, const std::string &atomName)
+    void Create(H5::H5Location &object, const std::string &atomName)
     {
         hsize_t defaultDims[] = {1};
         H5::DataSpace defaultDataSpace(1, defaultDims);
         TypedCreate(object, atomName, defaultDataSpace);
     }
 
-    void Create(H5::H5Object &object, const std::string &name, const std::string &value)
+    void Create(H5::H5Location &object, const std::string &name, const std::string &value)
     {
         H5::StrType strType(0, value.size());
         attribute = object.createAttribute(name.c_str(), strType, H5::DataSpace(0, NULL));
@@ -86,7 +86,7 @@ public:
         attribute.write(strType, value.c_str());
     }
 
-    void Create(H5::H5Object &object, const std::string &name, std::vector<int> &vect)
+    void Create(H5::H5Location &object, const std::string &name, std::vector<int> &vect)
     {
         hsize_t length = vect.size();
         H5::ArrayType arrayDataType(H5::PredType::NATIVE_INT, 1, &length);
@@ -95,7 +95,7 @@ public:
         attribute.write(H5::PredType::NATIVE_INT, &((vect)[0]));
     }
 
-    void Create(H5::H5Object &object, const std::string &name, const std::vector<std::string> &vect)
+    void Create(H5::H5Location &object, const std::string &name, const std::vector<std::string> &vect)
     {
         hsize_t length = vect.size();
         H5::StrType strType(0, H5T_VARIABLE);
@@ -104,7 +104,7 @@ public:
         attribute.write(strType, &((vect)[0]));
     }
 
-    void TypedCreate(H5::H5Object &object, const std::string &atomName, H5::DataSpace &dataSpace)
+    void TypedCreate(H5::H5Location &object, const std::string &atomName, H5::DataSpace &dataSpace)
     {
         (void)(object);
         (void)(atomName);
@@ -132,11 +132,11 @@ public:
 //
 
 template <>
-void HDFAtom<std::string>::Create(H5::H5Object &object, const std::string &atomName);
+void HDFAtom<std::string>::Create(H5::H5Location &object, const std::string &atomName);
 
 #define DECLARE_TYPED_CREATE_ATOM(T, predtype)                                      \
     template <>                                                                     \
-    void HDFAtom<T>::TypedCreate(H5::H5Object &object, const std::string &atomName, \
+    void HDFAtom<T>::TypedCreate(H5::H5Location &object, const std::string &atomName, \
                                  H5::DataSpace &defaultDataSpace);
 
 DECLARE_TYPED_CREATE_ATOM(int, H5::PredType::NATIVE_INT)
--- a/hdf/HDFAttributable.cpp
+++ b/hdf/HDFAttributable.cpp
@@ -12,7 +12,7 @@ using namespace H5;
 //
 // whereas HDF5 1.10 has for attr_operator_t
 //
-//   typedef void(* H5::attr_operator_t)(H5Object &loc, const H5std_string attr_name, void *operator_data)
+//   typedef void(* H5::attr_operator_t)(H5Location &loc, const H5std_string attr_name, void *operator_data)
 
 template <typename T>
 void CallStoreAttributeName(T &obj, std::string attrName, void *attrList)
@@ -21,7 +21,7 @@ void CallStoreAttributeName(T &obj, std:
     ((std::vector<std::string> *)attrList)->push_back(std::string(attrName));
 }
 
-void HDFAttributable::StoreAttributeNames(H5Object &thisobject,
+void HDFAttributable::StoreAttributeNames(H5Location &thisobject,
                                           const std::vector<std::string> &attributeNames)
 {
     int nAttr = thisobject.getNumAttrs();
@@ -32,14 +32,14 @@ void HDFAttributable::StoreAttributeName
     thisobject.iterateAttrs(&CallStoreAttributeName, bounds, (void *)&attributeNames);
 }
 
-H5Object *HDFAttributable::GetObject() { return NULL; }
+H5Location *HDFAttributable::GetObject() { return NULL; }
 
 int HDFAttributable::ContainsAttribute(const std::string &attributeName)
 {
     size_t i;
     std::vector<std::string> tmpAttributeNames;
     try {
-        H5Object *obj = GetObject();
+        H5Location *obj = GetObject();
         assert(obj != NULL);
         StoreAttributeNames(*obj, tmpAttributeNames);
         for (i = 0; i < tmpAttributeNames.size(); i++) {
--- a/hdf/HDFAttributable.hpp
+++ b/hdf/HDFAttributable.hpp
@@ -12,10 +12,10 @@ class HDFAttributable
 public:
     std::vector<std::string> attributeNameList;
 
-    void StoreAttributeNames(H5::H5Object &thisobject,
+    void StoreAttributeNames(H5::H5Location &thisobject,
                              const std::vector<std::string> &attributeNames);
 
-    virtual H5::H5Object *GetObject();
+    virtual H5::H5Location *GetObject();
 
     int ContainsAttribute(const std::string &attributeName);
 };
--- a/hdf/HDFData.cpp
+++ b/hdf/HDFData.cpp
@@ -2,9 +2,9 @@
 
 using namespace H5;
 
-H5Object *HDFData::GetObject() { return &dataset; }
+H5Location *HDFData::GetObject() { return &dataset; }
 
-HDFData::HDFData(Group *_container, const std::string &_datasetName)
+HDFData::HDFData(CommonFG *_container, const std::string &_datasetName)
 {
     container = _container;
     datasetName = _datasetName;
@@ -32,7 +32,7 @@ int HDFData::Initialize(HDFGroup &parent
     std::exit(EXIT_FAILURE);
 }
 
-int HDFData::BaseInitializeDataset(Group &hdfFile, const std::string &_datasetName)
+int HDFData::BaseInitializeDataset(CommonFG &hdfFile, const std::string &_datasetName)
 {
     dataset = hdfFile.openDataSet(_datasetName.c_str());
     isInitialized = true;
@@ -45,7 +45,7 @@ int HDFData::InitializeDataset(HDFGroup
     return InitializeDataset(group.group, _datasetName);
 }
 
-int HDFData::InitializeDataset(Group &hdfFile, const std::string &_datasetName)
+int HDFData::InitializeDataset(CommonFG &hdfFile, const std::string &_datasetName)
 {
     try {
         datasetName = _datasetName;
--- a/hdf/HDFData.hpp
+++ b/hdf/HDFData.hpp
@@ -17,13 +17,13 @@ public:
     H5::DataSpace sourceSpace, destSpace;
     H5::DataSpace fullSourceSpace;
     bool fileDataSpaceInitialized;
-    H5::Group *container;
+    H5::CommonFG *container;
     std::string datasetName;
     bool isInitialized;
 
-    H5::H5Object *GetObject();
+    H5::H5Location *GetObject();
 
-    HDFData(H5::Group *_container, const std::string &_datasetName);
+    HDFData(H5::CommonFG *_container, const std::string &_datasetName);
 
     HDFData();
 
@@ -43,11 +43,11 @@ public:
     //
     virtual int Initialize(HDFGroup &parentGroup, const std::string &datasetName);
 
-    int BaseInitializeDataset(H5::Group &hdfFile, const std::string &_datasetName);
+    int BaseInitializeDataset(H5::CommonFG &hdfFile, const std::string &_datasetName);
 
     int InitializeDataset(HDFGroup &group, const std::string &_datasetName);
 
-    int InitializeDataset(H5::Group &hdfFile, const std::string &_datasetName);
+    int InitializeDataset(H5::CommonFG &hdfFile, const std::string &_datasetName);
 
     void Close();
 };
--- a/hdf/HDFGroup.cpp
+++ b/hdf/HDFGroup.cpp
@@ -12,7 +12,7 @@ void HDFGroup::AddGroup(std::string grou
 
 H5Object *HDFGroup::GetObject() { return &group; }
 
-int HDFGroup::Initialize(Group &fg, std::string groupName)
+int HDFGroup::Initialize(CommonFG &fg, std::string groupName)
 {
     try {
         group = fg.openGroup(groupName.c_str());
--- a/hdf/HDFGroup.hpp
+++ b/hdf/HDFGroup.hpp
@@ -25,7 +25,7 @@ public:
 
     H5::H5Object* GetObject();
 
-    int Initialize(H5::Group& fg, std::string groupName);
+    int Initialize(H5::CommonFG& fg, std::string groupName);
 
     int Initialize(HDFGroup& parentGroup, std::string groupName);