Fesapi 2.10.1.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
Loading...
Searching...
No Matches
GridConnectionSetRepresentation.h
1/*-----------------------------------------------------------------------
2Licensed to the Apache Software Foundation (ASF) under one
3or more contributor license agreements. See the NOTICE file
4distributed with this work for additional information
5regarding copyright ownership. The ASF licenses this file
6to you under the Apache License, Version 2.0 (the
7"License"; you may not use this file except in compliance
8with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12Unless required by applicable law or agreed to in writing,
13software distributed under the License is distributed on an
14"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15KIND, either express or implied. See the License for the
16specific language governing permissions and limitations
17under the License.
18-----------------------------------------------------------------------*/
19#pragma once
20
21#include <limits>
22
23#include "AbstractRepresentation.h"
24
25namespace RESQML2_NS
26{
51 {
52 public:
53
56
62 DLL_IMPORT_OR_EXPORT virtual uint64_t getCellIndexPairCount() const = 0;
63
76 DLL_IMPORT_OR_EXPORT virtual int64_t getCellIndexPairs(int64_t * cellIndexPairs) const = 0;
77
95 DLL_IMPORT_OR_EXPORT virtual uint64_t getCellIndexPairCountFromInterpretationIndex(int64_t interpretationIndex) const = 0;
96
102 DLL_IMPORT_OR_EXPORT virtual bool isAssociatedToInterpretations() const = 0;
103
118 DLL_IMPORT_OR_EXPORT virtual void getInterpretationIndexCumulativeCount(uint64_t * cumulativeCount) const = 0;
119
133 DLL_IMPORT_OR_EXPORT virtual void getInterpretationIndices(int64_t * interpretationIndices) const = 0;
134
145 DLL_IMPORT_OR_EXPORT virtual int64_t getInterpretationIndexNullValue() const = 0;
146
171 DLL_IMPORT_OR_EXPORT virtual void getGridConnectionSetInformationFromInterpretationIndex(int64_t * cellIndexPairs, unsigned short * gridIndexPairs, int * localFaceIndexPairs, int64_t interpretationIndex) const = 0;
172
188 DLL_IMPORT_OR_EXPORT std::string getInterpretationUuidFromIndex(uint64_t interpretationIndex) const {
189 return getInterpretationDorFromIndex(interpretationIndex).getUuid();
190 }
191
207 DLL_IMPORT_OR_EXPORT virtual COMMON_NS::DataObjectReference getInterpretationDorFromIndex(uint64_t interpretationIndex) const = 0;
208
224 DLL_IMPORT_OR_EXPORT class AbstractFeatureInterpretation* getInterpretationFromIndex(uint64_t interpretationIndex) const;
225
234 DLL_IMPORT_OR_EXPORT virtual uint64_t getInterpretationCount() const = 0;
235
242 DLL_IMPORT_OR_EXPORT virtual bool hasLocalFacePerCell() const = 0;
243
261 DLL_IMPORT_OR_EXPORT virtual int64_t getLocalFacePerCellIndexPairs(int * localFacePerCellIndexPairs) const = 0;
262
268 DLL_IMPORT_OR_EXPORT virtual bool isBasedOnMultiGrids() const = 0;
269
283 DLL_IMPORT_OR_EXPORT virtual void getGridIndexPairs(unsigned short * gridIndexPairs) const = 0;
284
314 DLL_IMPORT_OR_EXPORT virtual void setCellIndexPairsUsingExistingDataset(uint64_t cellIndexPairCount, const std::string & cellIndexPair, int64_t cellIndexPairNullValue, EML2_NS::AbstractHdfProxy * proxy = nullptr,
315 int64_t gridIndexPairNullValue = -1, const std::string & gridIndexPair = "") = 0;
316
344 DLL_IMPORT_OR_EXPORT void setCellIndexPairs(uint64_t cellIndexPairCount, int64_t const* cellIndexPair, int64_t cellIndexPairNullValue = -1, EML2_NS::AbstractHdfProxy * proxy = nullptr,
345 uint16_t gridIndexPairNullValue = (std::numeric_limits<uint16_t>::max)(), uint16_t const* gridIndexPair = nullptr);
346
369 DLL_IMPORT_OR_EXPORT virtual void setLocalFacePerCellIndexPairsUsingExistingDataset(const std::string & localFacePerCellIndexPair, int64_t nullValue, EML2_NS::AbstractHdfProxy * proxy = nullptr) = 0;
370
392 DLL_IMPORT_OR_EXPORT void setLocalFacePerCellIndexPairs(int const* localFacePerCellIndexPair, int nullValue, EML2_NS::AbstractHdfProxy * proxy = nullptr);
393
411 DLL_IMPORT_OR_EXPORT virtual void setConnectionInterpretationIndices(uint64_t const* cumulativeInterpCount, int64_t const* interpIndices, EML2_NS::AbstractHdfProxy * proxy = nullptr) = 0;
412
421 DLL_IMPORT_OR_EXPORT void pushBackInterpretation(class AbstractFeatureInterpretation* interp);
422
432 DLL_IMPORT_OR_EXPORT virtual void setInterpretationForAllConnections(class AbstractFeatureInterpretation* interp, EML2_NS::AbstractHdfProxy * proxy = nullptr) = 0;
433
442 DLL_IMPORT_OR_EXPORT void pushBackSupportingGridRepresentation(class AbstractGridRepresentation * supportingGridRep);
443
452 DLL_IMPORT_OR_EXPORT virtual uint64_t getSupportingGridRepresentationCount() const = 0;
453
464 DLL_IMPORT_OR_EXPORT class AbstractGridRepresentation* getSupportingGridRepresentation(uint64_t index) const;
465
476 DLL_IMPORT_OR_EXPORT virtual COMMON_NS::DataObjectReference getSupportingGridRepresentationDor(uint64_t index) const = 0;
477
479 DLL_IMPORT_OR_EXPORT uint64_t getXyzPointCountOfPatch(unsigned int patchIndex) const override;
480
482 DLL_IMPORT_OR_EXPORT void getXyzPointsOfPatch(unsigned int patchIndex, double * xyzPoints) const override;
483
484 DLL_IMPORT_OR_EXPORT uint64_t getPatchCount() const override {return 1;}
485
487 DLL_IMPORT_OR_EXPORT static const char* XML_TAG;
488
489 DLL_IMPORT_OR_EXPORT virtual std::string getXmlTag() const override { return XML_TAG; }
490
491 protected:
492
500 DLL_IMPORT_OR_EXPORT GridConnectionSetRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) :
501 AbstractRepresentation(partialObject) {}
502
504 GridConnectionSetRepresentation() {}
505
511 GridConnectionSetRepresentation(gsoap_resqml2_0_1::_resqml20__GridConnectionSetRepresentation* fromGsoap) : AbstractRepresentation(fromGsoap) {}
512
518 GridConnectionSetRepresentation(gsoap_eml2_3::_resqml22__GridConnectionSetRepresentation* fromGsoap) : AbstractRepresentation(fromGsoap) {}
519
525 virtual void pushBackXmlInterpretation(class AbstractFeatureInterpretation* interp) = 0;
526
532 virtual void pushBackXmlSupportingGridRepresentation(class AbstractGridRepresentation * supportingGridRep) = 0;
533
535 void loadTargetRelationships() final;
536 };
537}
Proxy class for an abstract feature interpretation.
Definition AbstractFeatureInterpretation.h:29
Proxy class for an abstract grid representation.
Definition AbstractGridRepresentation.h:27
Proxy class for an abstract representation.
Definition AbstractRepresentation.h:38
Proxy class for a grid connection set representation. This representation consists of a list of conne...
Definition GridConnectionSetRepresentation.h:51
class AbstractGridRepresentation * getSupportingGridRepresentation(uint64_t index) const
virtual uint64_t getSupportingGridRepresentationCount() const =0
static const char * XML_TAG
Definition GridConnectionSetRepresentation.h:487
virtual bool isBasedOnMultiGrids() const =0
virtual ~GridConnectionSetRepresentation()=default
virtual std::string getXmlTag() const override
Definition GridConnectionSetRepresentation.h:489
virtual void getInterpretationIndices(int64_t *interpretationIndices) const =0
virtual uint64_t getInterpretationCount() const =0
virtual void setCellIndexPairsUsingExistingDataset(uint64_t cellIndexPairCount, const std::string &cellIndexPair, int64_t cellIndexPairNullValue, eml2::AbstractHdfProxy *proxy=nullptr, int64_t gridIndexPairNullValue=-1, const std::string &gridIndexPair="")=0
uint64_t getPatchCount() const override
Definition GridConnectionSetRepresentation.h:484
virtual int64_t getLocalFacePerCellIndexPairs(int *localFacePerCellIndexPairs) const =0
uint64_t getXyzPointCountOfPatch(unsigned int patchIndex) const override
virtual int64_t getCellIndexPairs(int64_t *cellIndexPairs) const =0
virtual void getGridIndexPairs(unsigned short *gridIndexPairs) const =0
virtual bool isAssociatedToInterpretations() const =0
virtual void setLocalFacePerCellIndexPairsUsingExistingDataset(const std::string &localFacePerCellIndexPair, int64_t nullValue, eml2::AbstractHdfProxy *proxy=nullptr)=0
Sets the local face per cell index pairs of this grid connection set representation....
void setCellIndexPairs(uint64_t cellIndexPairCount, int64_t const *cellIndexPair, int64_t cellIndexPairNullValue=-1, eml2::AbstractHdfProxy *proxy=nullptr, uint16_t gridIndexPairNullValue=(std::numeric_limits< uint16_t >::max)(), uint16_t const *gridIndexPair=nullptr)
Sets the cell index pairs of this grid connection set representation. If this instance is supported b...
void pushBackSupportingGridRepresentation(class AbstractGridRepresentation *supportingGridRep)
virtual void setInterpretationForAllConnections(class AbstractFeatureInterpretation *interp, eml2::AbstractHdfProxy *proxy=nullptr)=0
virtual int64_t getInterpretationIndexNullValue() const =0
virtual common::DataObjectReference getSupportingGridRepresentationDor(uint64_t index) const =0
void pushBackInterpretation(class AbstractFeatureInterpretation *interp)
virtual void getInterpretationIndexCumulativeCount(uint64_t *cumulativeCount) const =0
virtual void setConnectionInterpretationIndices(uint64_t const *cumulativeInterpCount, int64_t const *interpIndices, eml2::AbstractHdfProxy *proxy=nullptr)=0
void getXyzPointsOfPatch(unsigned int patchIndex, double *xyzPoints) const override
void setLocalFacePerCellIndexPairs(int const *localFacePerCellIndexPair, int nullValue, eml2::AbstractHdfProxy *proxy=nullptr)
Sets the local face per cell index pairs of this grid connection set representation....
virtual void getGridConnectionSetInformationFromInterpretationIndex(int64_t *cellIndexPairs, unsigned short *gridIndexPairs, int *localFaceIndexPairs, int64_t interpretationIndex) const =0
virtual common::DataObjectReference getInterpretationDorFromIndex(uint64_t interpretationIndex) const =0
std::string getInterpretationUuidFromIndex(uint64_t interpretationIndex) const
Definition GridConnectionSetRepresentation.h:188
class AbstractFeatureInterpretation * getInterpretationFromIndex(uint64_t interpretationIndex) const
virtual uint64_t getCellIndexPairCount() const =0
virtual uint64_t getCellIndexPairCountFromInterpretationIndex(int64_t interpretationIndex) const =0
Gets the count of cell index pairs which correspond to a particular interpretation or to no interpret...
virtual bool hasLocalFacePerCell() const =0