21 #include "common/AbstractHdfProxy.h" 29 HdfProxy(gsoap_resqml2_0_1::_eml20__EpcExternalPartReference* fromGsoap,
const std::string & packageDirAbsolutePath,
const std::string & externalFilePath) :
32 HdfProxy(gsoap_eml2_1::_eml21__EpcExternalPartReference* fromGsoap,
const std::string & packageDirAbsolutePath,
const std::string & externalFilePath) :
40 HdfProxy(
const std::string & packageDirAbsolutePath,
const std::string & externalFilePath);
49 void readArrayNdOfValues(
const std::string & datasetName,
void* values,
const int & datatype);
61 void readArrayNdOfValues(
62 const std::string & datasetName,
64 unsigned long long * numValuesInEachDimension,
65 unsigned long long * offsetInEachDimension,
66 const unsigned int & numDimensions,
67 const int & datatype);
81 void readArrayNdOfValues(
82 const std::string & datasetName,
84 unsigned long long * blockCountPerDimension,
85 unsigned long long * offsetInEachDimension,
86 unsigned long long * strideInEachDimension,
87 unsigned long long * blockSizeInEachDimension,
88 const unsigned int & numDimensions,
89 const int & datatype);
104 void selectArrayNdOfValues(
105 const std::string & datasetName,
106 unsigned long long * blockCountPerDimension,
107 unsigned long long * offsetInEachDimension,
108 unsigned long long * strideInEachDimension,
109 unsigned long long * blockSizeInEachDimension,
110 const unsigned int & numDimensions,
124 void readArrayNdOfValues(
128 unsigned long long slabSize,
129 const int & datatype);
159 int getHdfDatatypeInDataset(
const std::string & groupName)
const;
165 int getHdfDatatypeClassInDataset(
const std::string & datasetName)
const;
179 void writeItemizedListOfList(
const std::string & groupName,
180 const std::string & name,
181 const int & cumulativeLengthDatatype,
182 void * cumulativeLength,
183 const unsigned long long & cumulativeLengthSize,
184 const int & elementsDatatype,
186 const unsigned long long & elementsSize);
192 unsigned int getDimensionCount(
const std::string & datasetName);
198 signed long long getElementCount(
const std::string & datasetName);
204 void setCompressionLevel(
const unsigned int & newCompressionLevel) {
if (newCompressionLevel > 9) compressionLevel = 9;
else compressionLevel = newCompressionLevel;}
206 void writeArrayNdOfFloatValues(
const std::string & groupName,
207 const std::string & name,
209 unsigned long long * numValuesInEachDimension,
210 const unsigned int & numDimensions);
221 void writeArrayNdOfDoubleValues(
const std::string & groupName,
222 const std::string & name,
224 unsigned long long * numValuesInEachDimension,
225 const unsigned int & numDimensions);
236 void writeArrayNdOfCharValues(
const std::string & groupName,
237 const std::string & name,
239 unsigned long long * numValuesInEachDimension,
240 const unsigned int & numDimensions);
251 void writeArrayNdOfIntValues(
const std::string & groupName,
252 const std::string & name,
254 unsigned long long * numValuesInEachDimension,
255 const unsigned int & numDimensions);
266 void writeArrayNdOfGSoapULong64Values(
const std::string & groupName,
267 const std::string & name,
268 ULONG64 * ulong64Values,
269 unsigned long long * numValuesInEachDimension,
270 const unsigned int & numDimensions);
282 void writeArrayNd(
const std::string & groupName,
283 const std::string & name,
284 const int & datatype,
286 unsigned long long * numValuesInEachDimension,
287 const unsigned int & numDimensions);
299 const std::string& groupName,
300 const std::string& name,
301 const int & datatype,
302 unsigned long long* numValuesInEachDimension,
303 const unsigned int& numDimensions
316 void writeArrayNdSlab(
317 const std::string& groupName,
318 const std::string& name,
319 const int & datatype,
321 unsigned long long* numValuesInEachDimension,
322 unsigned long long* offsetValuesInEachDimension,
323 const unsigned int& numDimensions
329 void writeGroupAttributes(
const std::string & groupName,
330 const std::vector<std::string> & attributeNames,
331 const std::vector<std::string> & values);
336 void writeGroupAttribute(
const std::string & groupName,
337 const std::string & attributeName,
338 const std::vector<std::string> & values);
343 void writeGroupAttributes(
const std::string & groupName,
344 const std::vector<std::string> & attributeNames,
345 const std::vector<double> & values);
350 void writeGroupAttributes(
const std::string & groupName,
351 const std::vector<std::string> & attributeNames,
352 const std::vector<int> & values);
357 void writeDatasetAttributes(
const std::string & datasetName,
358 const std::vector<std::string> & attributeNames,
359 const std::vector<std::string> & values);
364 void writeDatasetAttribute(
const std::string & datasetName,
365 const std::string & attributeName,
366 const std::vector<std::string> & values);
371 void writeDatasetAttributes(
const std::string & datasetName,
372 const std::vector<std::string> & attributeNames,
373 const std::vector<double> & values);
378 void writeDatasetAttributes(
const std::string & datasetName,
379 const std::vector<std::string> & attributeNames,
380 const std::vector<int> & values);
382 std::string readStringAttribute(
const std::string & obj_name,
383 const std::string & attr_name)
const;
385 std::vector<std::string> readStringArrayAttribute(
const std::string & obj_name,
386 const std::string & attr_name)
const;
388 double readDoubleAttribute(
const std::string & obj_name,
389 const std::string & attr_name)
const;
391 LONG64 readLongAttribute(
const std::string & obj_name,
392 const std::string & attr_name)
const;
399 void readArrayNdOfDoubleValues(
const std::string & datasetName,
double* values);
409 void readArrayNdOfDoubleValues(
410 const std::string & datasetName,
412 unsigned long long * numValuesInEachDimension,
413 unsigned long long * offsetInEachDimension,
414 const unsigned int & numDimensions
427 void readArrayNdOfDoubleValues(
428 const std::string & datasetName,
double* values,
429 unsigned long long * blockCountPerDimension,
430 unsigned long long * offsetInEachDimension,
431 unsigned long long * strideInEachDimension,
432 unsigned long long * blockSizeInEachDimension,
433 const unsigned int & numDimensions);
442 void readArrayNdOfDoubleValues(
446 unsigned long long slabSize);
453 void readArrayNdOfFloatValues(
const std::string & datasetName,
float* values);
463 void readArrayNdOfFloatValues(
464 const std::string & datasetName,
466 unsigned long long * numValuesInEachDimension,
467 unsigned long long * offsetInEachDimension,
468 const unsigned int & numDimensions
474 void readArrayNdOfGSoapLong64Values(
const std::string & datasetName, LONG64* values);
479 void readArrayNdOfGSoapULong64Values(
const std::string & datasetName, ULONG64* values);
486 void readArrayNdOfLongValues(
const std::string & datasetName,
long* values);
496 void readArrayNdOfLongValues(
497 const std::string & datasetName,
499 unsigned long long * numValuesInEachDimension,
500 unsigned long long * offsetInEachDimension,
501 const unsigned int & numDimensions
509 void readArrayNdOfULongValues(
const std::string & datasetName,
unsigned long* values);
516 void readArrayNdOfIntValues(
const std::string & datasetName,
int* values);
526 void readArrayNdOfIntValues(
527 const std::string & datasetName,
529 unsigned long long * numValuesInEachDimension,
530 unsigned long long * offsetInEachDimension,
531 const unsigned int & numDimensions
539 void readArrayNdOfUIntValues(
const std::string & datasetName,
unsigned int* values);
547 void readArrayNdOfShortValues(
const std::string & datasetName,
short* values);
554 void readArrayNdOfUShortValues(
const std::string & datasetName,
unsigned short* values);
561 void readArrayNdOfCharValues(
const std::string & datasetName,
char* values);
567 void readArrayNdOfUCharValues(
const std::string & datasetName,
unsigned char* values);
573 std::vector<unsigned long long> readArrayDimensions(
const std::string & datasetName);
578 bool exist(
const std::string & absolutePathInHdfFile)
const;
585 virtual int openOrCreateRootGroup();
592 int openOrCreateGroupInRootGroup(
const std::string & groupName);
596 unsigned int compressionLevel;
bool isOpened() const
Definition: HdfProxy.h:148
void setCompressionLevel(const unsigned int &newCompressionLevel)
Definition: HdfProxy.h:204
~HdfProxy()
Definition: HdfProxy.h:137
Definition: HdfProxy.h:25
Definition: AbstractHdfProxy.h:30
Definition: AbstractHdfProxy.h:28