My Project
GridConnectionSetRepresentation.h
1 /*-----------------------------------------------------------------------
2 Copyright F2I-CONSULTING, (2014-2016)
3 
4 philippe.verney@f2i-consulting.com
5 
6 This software is a computer program whose purpose is to access to data formatted using Energistics standards.
7 
8 This software is governed by the CeCILL-B license under French law and
9 abiding by the rules of distribution of free software. You can use,
10 modify and/ or redistribute the software under the terms of the CeCILL-B
11 license as circulated by CEA, CNRS and INRIA at the following URL
12 "http://www.cecill.info".
13 
14 As a counterpart to the access to the source code and rights to copy,
15 modify and redistribute granted by the license, users are provided only
16 with a limited warranty and the software's author, the holder of the
17 economic rights, and the successive licensors have only limited
18 liability.
19 
20 In this respect, the user's attention is drawn to the risks associated
21 with loading, using, modifying and/or developing or reproducing the
22 software by the user in light of its specific status of free software,
23 that may mean that it is complicated to manipulate, and that also
24 therefore means that it is reserved for developers and experienced
25 professionals having in-depth computer knowledge. Users are therefore
26 encouraged to load and test the software's suitability as regards their
27 requirements in conditions enabling the security of their systems and/or
28 data to be ensured and, more generally, to use and operate it in the
29 same conditions as regards security.
30 
31 The fact that you are presently reading this means that you have had
32 knowledge of the CeCILL-B license and that you accept its terms.
33 -----------------------------------------------------------------------*/
34 #pragma once
35 
36 #include "resqml2/GridConnectionSetRepresentation.h"
37 
38 namespace resqml2_0_1
39 {
41  {
42  protected:
43  void init(soap* soapContext, const std::string & guid, const std::string & title);
44 
49  void pushBackXmlInterpretation(resqml2::AbstractFeatureInterpretation* interp);
50 
51 
56  void pushBackXmlSupportingGridRepresentation(resqml2::AbstractGridRepresentation * supportingGridRep);
57 
58  public:
59 
63  GridConnectionSetRepresentation(gsoap_resqml2_0_1::eml__DataObjectReference* partialObject) :
64  resqml2::GridConnectionSetRepresentation(partialObject) {}
65 
73  const std::string & guid, const std::string & title);
74 
81  GridConnectionSetRepresentation(soap* soapContext,
82  const std::string & guid, const std::string & title);
83 
87  GridConnectionSetRepresentation(gsoap_resqml2_0_1::_resqml2__GridConnectionSetRepresentation* fromGsoap) : resqml2::GridConnectionSetRepresentation(fromGsoap) {}
88 
93 
94  std::string getHdfProxyUuid() const;
95 
99  ULONG64 getCellIndexPairCount() const;
100 
104  ULONG64 getCellIndexPairs(ULONG64 * cellIndexPairs) const;
105 
110  unsigned int getCellIndexPairCountFromInterpretationIndex(const unsigned int & interpretationIndex) const;
111 
115  bool isAssociatedToInterpretations() const;
116 
121  void getInterpretationIndexCumulativeCount(unsigned int * cumulativeCount) const;
122 
127  void getInterpretationIndices(unsigned int * interpretationIndices) const;
128 
132  LONG64 getInterpretationIndexNullValue() const;
133 
141  void getGridConnectionSetInformationFromInterpretationIndex(ULONG64 * cellIndexPairs, ULONG64 * gridIndexPairs, int * localFaceIndexPairs, const unsigned int & interpretationIndex) const;
142 
147  std::string getInterpretationUuidFromIndex(const unsigned int & interpretationIndex) const;
148 
152  unsigned int getInterpretationCount() const;
153 
157  bool hasLocalFacePerCell() const;
158 
163  void getLocalFacePerCellIndexPairs(int * localFacePerCellIndexPairs) const;
164 
168  bool isBasedOnMultiGrids() const;
169 
174  void getGridIndexPairs(ULONG64 * gridIndexPairs) const;
175 
184  void setCellIndexPairsUsingExistingDataset(const ULONG64 & cellIndexPairCount, const std::string & cellIndexPair, const ULONG64 & nullValue, resqml2::AbstractHdfProxy * proxy, const std::string & gridIndexPair = "");
185 
194  void setLocalFacePerCellIndexPairsUsingExistingDataset(const std::string & localFacePerCellIndexPair, resqml2::AbstractHdfProxy * proxy);
195 
204  void setLocalFacePerCellIndexPairs(const ULONG64 & cellIndexPairCount, int * localFacePerCellIndexPair, resqml2::AbstractHdfProxy * proxy);
205 
213  void setConnectionInterpretationIndices(unsigned int * interpretationIndices, const unsigned int & interpretationIndiceCount, const ULONG64 & nullValue, resqml2::AbstractHdfProxy * proxy);
214 
218  unsigned int getSupportingGridRepresentationCount() const;
219 
223  std::string getSupportingGridRepresentationUuid(unsigned int index) const;
224 
228  std::string getSupportingGridRepresentationTitle(unsigned int index) const;
229 
233  std::string getSupportingGridRepresentationContentType(unsigned int index) const;
234  };
235 }
GridConnectionSetRepresentation(gsoap_resqml2_0_1::_resqml2__GridConnectionSetRepresentation *fromGsoap)
Definition: GridConnectionSetRepresentation.h:87
Definition: AbstractHdfProxy.h:44
GridConnectionSetRepresentation(gsoap_resqml2_0_1::eml__DataObjectReference *partialObject)
Definition: GridConnectionSetRepresentation.h:63
Definition: AbstractGridRepresentation.h:47
Definition: EpcDocument.h:79
~GridConnectionSetRepresentation()
Definition: GridConnectionSetRepresentation.h:92
Definition: GridConnectionSetRepresentation.h:40
Definition: GridConnectionSetRepresentation.h:40
Definition: EpcDocument.h:61
Definition: AbstractFeatureInterpretation.h:45