Fesapi 2.9.0.1
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 "../resqml2/GridConnectionSetRepresentation.h"
22
23namespace RESQML2_2_NS
24{
26 class GridConnectionSetRepresentation final : public RESQML2_NS::GridConnectionSetRepresentation
27 {
28 public:
29
37 DLL_IMPORT_OR_EXPORT GridConnectionSetRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) :
38 RESQML2_NS::GridConnectionSetRepresentation(partialObject) {}
39
49 GridConnectionSetRepresentation(RESQML2_NS::AbstractFeatureInterpretation* interp,
50 const std::string & guid, const std::string & title);
51
59 GridConnectionSetRepresentation(COMMON_NS::DataObjectRepository * repo,
60 const std::string & guid, const std::string & title);
61
67 GridConnectionSetRepresentation(gsoap_eml2_3::_resqml22__GridConnectionSetRepresentation* fromGsoap) : RESQML2_NS::GridConnectionSetRepresentation(fromGsoap) {}
68
71
72 COMMON_NS::DataObjectReference getHdfProxyDor() const final;
73
74 DLL_IMPORT_OR_EXPORT uint64_t getCellIndexPairCount() const final;
75
76 DLL_IMPORT_OR_EXPORT int64_t getCellIndexPairs(int64_t * cellIndexPairs) const final;
77
78 DLL_IMPORT_OR_EXPORT uint64_t getCellIndexPairCountFromInterpretationIndex(int64_t interpretationIndex) const final;
79
80 DLL_IMPORT_OR_EXPORT bool isAssociatedToInterpretations() const final;
81
82 DLL_IMPORT_OR_EXPORT void getInterpretationIndexCumulativeCount(uint64_t * cumulativeCount) const final;
83
84 DLL_IMPORT_OR_EXPORT void getInterpretationIndices(int64_t * interpretationIndices) const final;
85
86 DLL_IMPORT_OR_EXPORT int64_t getInterpretationIndexNullValue() const final;
87
88 DLL_IMPORT_OR_EXPORT void getGridConnectionSetInformationFromInterpretationIndex(int64_t * cellIndexPairs, unsigned short * gridIndexPairs, int * localFaceIndexPairs, int64_t interpretationIndex) const final;
89
90 DLL_IMPORT_OR_EXPORT COMMON_NS::DataObjectReference getInterpretationDorFromIndex(uint64_t interpretationIndex) const final;
91
92 DLL_IMPORT_OR_EXPORT uint64_t getInterpretationCount() const final;
93
94 DLL_IMPORT_OR_EXPORT bool hasLocalFacePerCell() const final;
95
96 DLL_IMPORT_OR_EXPORT int64_t getLocalFacePerCellIndexPairs(int * localFacePerCellIndexPairs) const final;
97
98 DLL_IMPORT_OR_EXPORT bool isBasedOnMultiGrids() const final;
99
100 DLL_IMPORT_OR_EXPORT void getGridIndexPairs(unsigned short * gridIndexPairs) const final;
101
102 DLL_IMPORT_OR_EXPORT void setCellIndexPairsUsingExistingDataset(uint64_t cellIndexPairCount, const std::string & cellIndexPair, int64_t cellIndexPairNullValue,
103 EML2_NS::AbstractHdfProxy * proxy = nullptr, int64_t gridIndexPairNullValue = -1, const std::string & gridIndexPair = "") final;
104
105 DLL_IMPORT_OR_EXPORT void setInterpretationForAllConnections(RESQML2_NS::AbstractFeatureInterpretation* interp, EML2_NS::AbstractHdfProxy * proxy = nullptr) final;
106
107 DLL_IMPORT_OR_EXPORT void setLocalFacePerCellIndexPairsUsingExistingDataset(const std::string & localFacePerCellIndexPair, int64_t nullValue, EML2_NS::AbstractHdfProxy * proxy = nullptr) final;
108
109 DLL_IMPORT_OR_EXPORT void setConnectionInterpretationIndices(uint64_t const* cumulativeInterpCount, int64_t const* interpIndices, EML2_NS::AbstractHdfProxy * proxy = nullptr) final;
110
111 DLL_IMPORT_OR_EXPORT uint64_t getSupportingGridRepresentationCount() const final;
112
113 COMMON_NS::DataObjectReference getSupportingGridRepresentationDor(uint64_t index) const final;
114
118 DLL_IMPORT_OR_EXPORT static const char* XML_NS;
119
123 DLL_IMPORT_OR_EXPORT std::string getXmlNamespace() const final { return XML_NS; }
124
125 protected:
126
134 void init(COMMON_NS::DataObjectRepository * repo, const std::string & guid, const std::string & title);
135
141 void pushBackXmlInterpretation(RESQML2_NS::AbstractFeatureInterpretation* interp);
142
150 void pushBackXmlSupportingGridRepresentation(RESQML2_NS::AbstractGridRepresentation * supportingGridRep);
151 };
152}
Definition GridConnectionSetRepresentation.h:27
GridConnectionSetRepresentation(gsoap_eml2_3::_resqml22__GridConnectionSetRepresentation *fromGsoap)
Definition GridConnectionSetRepresentation.h:67
GridConnectionSetRepresentation(resqml2 ::AbstractFeatureInterpretation *interp, const std::string &guid, const std::string &title)
Creates an instance of this class in a gsoap context.
GridConnectionSetRepresentation(common ::DataObjectRepository *repo, const std::string &guid, const std::string &title)
GridConnectionSetRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition GridConnectionSetRepresentation.h:37