36 #include "resqml2/AbstractHdfProxy.h" 48 HdfProxy(
const std::string & packageDirAbsolutePath,
const std::string & externalFilePath);
57 void readArrayNdOfValues(
const std::string & datasetName,
void* values,
const int & datatype);
69 void readArrayNdOfValues(
70 const std::string & datasetName,
72 unsigned long long * numValuesInEachDimension,
73 unsigned long long * offsetInEachDimension,
74 const unsigned int & numDimensions,
75 const int & datatype);
79 HdfProxy(gsoap_resqml2_0_1::_eml__EpcExternalPartReference* fromGsoap,
const std::string & packageDirAbsolutePath,
const std::string & externalFilePath) :
83 HdfProxy(gsoap_resqml2_1::_eml__EpcExternalPartReference* fromGsoap,
const std::string & packageDirAbsolutePath,
const std::string & externalFilePath) :
113 int getHdfDatatypeInDataset(
const std::string & groupName);
127 void writeItemizedListOfList(
const std::string & groupName,
128 const std::string & name,
129 const int & cumulativeLengthDatatype,
130 void * cumulativeLength,
131 const unsigned long long & cumulativeLengthSize,
132 const int & elementsDatatype,
134 const unsigned long long & elementsSize);
140 unsigned int getDimensionCount(
const std::string & datasetName);
146 signed long long getElementCount(
const std::string & datasetName);
152 void setCompressionLevel(
const unsigned int & newCompressionLevel) {
if (newCompressionLevel > 9) compressionLevel = 9;
else compressionLevel = newCompressionLevel;}
154 void writeArrayNdOfFloatValues(
const std::string & groupName,
155 const std::string & name,
157 unsigned long long * numValuesInEachDimension,
158 const unsigned int & numDimensions);
169 void writeArrayNdOfDoubleValues(
const std::string & groupName,
170 const std::string & name,
172 unsigned long long * numValuesInEachDimension,
173 const unsigned int & numDimensions);
184 void writeArrayNdOfCharValues(
const std::string & groupName,
185 const std::string & name,
187 unsigned long long * numValuesInEachDimension,
188 const unsigned int & numDimensions);
199 void writeArrayNdOfIntValues(
const std::string & groupName,
200 const std::string & name,
202 unsigned long long * numValuesInEachDimension,
203 const unsigned int & numDimensions);
214 void writeArrayNdOfGSoapULong64Values(
const std::string & groupName,
215 const std::string & name,
216 ULONG64 * ulong64Values,
217 unsigned long long * numValuesInEachDimension,
218 const unsigned int & numDimensions);
230 void writeArrayNd(
const std::string & groupName,
231 const std::string & name,
232 const int & datatype,
234 unsigned long long * numValuesInEachDimension,
235 const unsigned int & numDimensions);
247 const std::string& groupName,
248 const std::string& name,
249 const int & datatype,
250 unsigned long long* numValuesInEachDimension,
251 const unsigned int& numDimensions
264 void writeArrayNdSlab(
265 const std::string& groupName,
266 const std::string& name,
267 const int & datatype,
269 unsigned long long* numValuesInEachDimension,
270 unsigned long long* offsetValuesInEachDimension,
271 const unsigned int& numDimensions
279 void readArrayNdOfDoubleValues(
const std::string & datasetName,
double* values);
289 void readArrayNdOfDoubleValues(
290 const std::string & datasetName,
292 unsigned long long * numValuesInEachDimension,
293 unsigned long long * offsetInEachDimension,
294 const unsigned int & numDimensions
302 void readArrayNdOfFloatValues(
const std::string & datasetName,
float* values);
312 void readArrayNdOfFloatValues(
313 const std::string & datasetName,
315 unsigned long long * numValuesInEachDimension,
316 unsigned long long * offsetInEachDimension,
317 const unsigned int & numDimensions
323 void readArrayNdOfGSoapLong64Values(
const std::string & datasetName, LONG64* values);
328 void readArrayNdOfGSoapULong64Values(
const std::string & datasetName, ULONG64* values);
335 void readArrayNdOfLongValues(
const std::string & datasetName,
long* values);
345 void readArrayNdOfLongValues(
346 const std::string & datasetName,
348 unsigned long long * numValuesInEachDimension,
349 unsigned long long * offsetInEachDimension,
350 const unsigned int & numDimensions
358 void readArrayNdOfULongValues(
const std::string & datasetName,
unsigned long* values);
365 void readArrayNdOfIntValues(
const std::string & datasetName,
int* values);
372 void readArrayNdOfUIntValues(
const std::string & datasetName,
unsigned int* values);
380 void readArrayNdOfShortValues(
const std::string & datasetName,
short* values);
387 void readArrayNdOfUShortValues(
const std::string & datasetName,
unsigned short* values);
394 void readArrayNdOfCharValues(
const std::string & datasetName,
char* values);
400 void readArrayNdOfUCharValues(
const std::string & datasetName,
unsigned char* values);
406 std::vector<unsigned long long> readArrayDimensions(
const std::string & datasetName);
414 int openOrCreateHdfResqmlGroup();
421 int openOrCreateGroupInResqmlGroup(
const std::string & groupName);
425 unsigned int compressionLevel;
~HdfProxy()
Definition: HdfProxy.h:91
Definition: AbstractHdfProxy.h:44
Definition: HdfProxy.h:40
void setCompressionLevel(const unsigned int &newCompressionLevel)
Definition: HdfProxy.h:152
bool isOpened()
Definition: HdfProxy.h:102
Definition: EpcDocument.h:61