36 #include "common/EpcExternalPartReference.h" 37 #include "resqml2/AbstractRepresentation.h" 38 #include "prodml2_0/DasAcquisition.h" 40 #define CUMULATIVE_LENGTH_DS_NAME "cumulativeLength" 41 #define ELEMENTS_DS_NAME "elements" 52 AbstractHdfProxy(
const std::string & packageDirAbsolutePath,
const std::string & externalFilePath);
54 AbstractHdfProxy(gsoap_resqml2_0_1::_eml20__EpcExternalPartReference* fromGsoap,
const std::string & packageDirAbsolutePath,
const std::string & externalFilePath) :
57 AbstractHdfProxy(gsoap_eml2_1::_eml21__EpcExternalPartReference* fromGsoap,
const std::string & packageDirAbsolutePath,
const std::string & externalFilePath) :
64 void initGsoapProxy(soap* soapContext,
const std::string & guid,
const std::string & title,
const EmlVersion & emlVersion);
73 virtual void open() = 0;
78 virtual bool isOpened()
const = 0;
83 virtual void close() = 0;
89 virtual int getHdfDatatypeInDataset(
const std::string & datasetName)
const = 0;
95 virtual int getHdfDatatypeClassInDataset(
const std::string & datasetName)
const = 0;
109 virtual void writeItemizedListOfList(
const std::string & groupName,
110 const std::string & name,
111 const int & cumulativeLengthDatatype,
112 void * cumulativeLength,
113 const unsigned long long & cumulativeLengthSize,
114 const int & elementsDatatype,
116 const unsigned long long & elementsSize) = 0;
122 virtual unsigned int getDimensionCount(
const std::string & datasetName) = 0;
128 virtual signed long long getElementCount(
const std::string & datasetName) = 0;
134 virtual void setCompressionLevel(
const unsigned int & newCompressionLevel) = 0;
136 virtual void writeArrayNdOfFloatValues(
const std::string & groupName,
137 const std::string & name,
139 unsigned long long * numValuesInEachDimension,
140 const unsigned int & numDimensions) = 0;
151 virtual void writeArrayNdOfDoubleValues(
const std::string & groupName,
152 const std::string & name,
154 unsigned long long * numValuesInEachDimension,
155 const unsigned int & numDimensions) = 0;
166 virtual void writeArrayNdOfCharValues(
const std::string & groupName,
167 const std::string & name,
169 unsigned long long * numValuesInEachDimension,
170 const unsigned int & numDimensions) = 0;
181 virtual void writeArrayNdOfIntValues(
const std::string & groupName,
182 const std::string & name,
184 unsigned long long * numValuesInEachDimension,
185 const unsigned int & numDimensions) = 0;
196 virtual void writeArrayNdOfGSoapULong64Values(
const std::string & groupName,
197 const std::string & name,
198 ULONG64 * ulong64Values,
199 unsigned long long * numValuesInEachDimension,
200 const unsigned int & numDimensions) = 0;
212 virtual void writeArrayNd(
const std::string & groupName,
213 const std::string & name,
214 const int & datatype,
216 unsigned long long * numValuesInEachDimension,
217 const unsigned int & numDimensions) = 0;
228 virtual void createArrayNd(
229 const std::string& groupName,
230 const std::string& name,
231 const int & datatype,
232 unsigned long long* numValuesInEachDimension,
233 const unsigned int& numDimensions
245 virtual void writeArrayNdSlab(
246 const std::string& groupName,
247 const std::string& name,
248 const int & datatype,
250 unsigned long long* numValuesInEachDimension,
251 unsigned long long* offsetValuesInEachDimension,
252 const unsigned int& numDimensions
258 virtual void writeGroupAttributes(
const std::string & groupName,
259 const std::vector<std::string> & attributeNames,
260 const std::vector<std::string> & values) = 0;
265 virtual void writeGroupAttribute(
const std::string & groupName,
266 const std::string & attributeName,
267 const std::vector<std::string> & values) = 0;
272 virtual void writeGroupAttributes(
const std::string & groupName,
273 const std::vector<std::string> & attributeNames,
274 const std::vector<double> & values) = 0;
279 virtual void writeGroupAttributes(
const std::string & groupName,
280 const std::vector<std::string> & attributeNames,
281 const std::vector<int> & values) = 0;
286 virtual void writeDatasetAttributes(
const std::string & datasetName,
287 const std::vector<std::string> & attributeNames,
288 const std::vector<std::string> & values) = 0;
293 virtual void writeDatasetAttribute(
const std::string & datasetName,
294 const std::string & attributeName,
295 const std::vector<std::string> & values) = 0;
300 virtual void writeDatasetAttributes(
const std::string & datasetName,
301 const std::vector<std::string> & attributeNames,
302 const std::vector<double> & values) = 0;
307 virtual void writeDatasetAttributes(
const std::string & datasetName,
308 const std::vector<std::string> & attributeNames,
309 const std::vector<int> & values) = 0;
315 virtual std::string readStringAttribute(
const std::string & obj_name,
316 const std::string & attr_name)
const = 0;
318 virtual std::vector<std::string> readStringArrayAttribute(
const std::string & obj_name,
319 const std::string & attr_name)
const = 0;
325 virtual double readDoubleAttribute(
const std::string & obj_name,
326 const std::string & attr_name)
const = 0;
332 virtual LONG64 readLongAttribute(
const std::string & obj_name,
333 const std::string & attr_name)
const = 0;
340 virtual void readArrayNdOfDoubleValues(
const std::string & datasetName,
double* values) = 0;
350 virtual void readArrayNdOfDoubleValues(
351 const std::string & datasetName,
353 unsigned long long * numValuesInEachDimension,
354 unsigned long long * offsetInEachDimension,
355 const unsigned int & numDimensions
363 virtual void readArrayNdOfFloatValues(
const std::string & datasetName,
float* values) = 0;
373 virtual void readArrayNdOfFloatValues(
374 const std::string & datasetName,
376 unsigned long long * numValuesInEachDimension,
377 unsigned long long * offsetInEachDimension,
378 const unsigned int & numDimensions
384 virtual void readArrayNdOfGSoapLong64Values(
const std::string & datasetName, LONG64* values) = 0;
389 virtual void readArrayNdOfGSoapULong64Values(
const std::string & datasetName, ULONG64* values) = 0;
396 virtual void readArrayNdOfLongValues(
const std::string & datasetName,
long* values) = 0;
406 virtual void readArrayNdOfLongValues(
407 const std::string & datasetName,
409 unsigned long long * numValuesInEachDimension,
410 unsigned long long * offsetInEachDimension,
411 const unsigned int & numDimensions
419 virtual void readArrayNdOfULongValues(
const std::string & datasetName,
unsigned long* values) = 0;
426 virtual void readArrayNdOfIntValues(
const std::string & datasetName,
int* values) = 0;
436 virtual void readArrayNdOfIntValues(
437 const std::string & datasetName,
439 unsigned long long * numValuesInEachDimension,
440 unsigned long long * offsetInEachDimension,
441 const unsigned int & numDimensions
449 virtual void readArrayNdOfUIntValues(
const std::string & datasetName,
unsigned int* values) = 0;
457 virtual void readArrayNdOfShortValues(
const std::string & datasetName,
short* values) = 0;
464 virtual void readArrayNdOfUShortValues(
const std::string & datasetName,
unsigned short* values) = 0;
471 virtual void readArrayNdOfCharValues(
const std::string & datasetName,
char* values) = 0;
477 virtual void readArrayNdOfUCharValues(
const std::string & datasetName,
unsigned char* values) = 0;
483 virtual std::vector<unsigned long long> readArrayDimensions(
const std::string & datasetName) = 0;
488 virtual bool exist(
const std::string & absolutePathInHdfFile)
const = 0;
Definition: AbstractHdfProxy.h:43
Definition: EpcExternalPartReference.h:49
void setHdfProxy(common::AbstractHdfProxy *proxy)
Definition: AbstractProperty.cpp:414
Definition: AbstractHdfProxy.h:45