Fesapi  2.0.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
PolylineSetRepresentation.h
1 /*-----------------------------------------------------------------------
2 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 "License"; you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
9 
10  http://www.apache.org/licenses/LICENSE-2.0
11 
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
17 under the License.
18 -----------------------------------------------------------------------*/
19 #pragma once
20 
21 #include "../resqml2/PolylineSetRepresentation.h"
22 
23 namespace RESQML2_0_1_NS
24 {
26  class PolylineSetRepresentation final : public RESQML2_NS::PolylineSetRepresentation
27  {
28  public:
29 
37  DLL_IMPORT_OR_EXPORT PolylineSetRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : RESQML2_NS::PolylineSetRepresentation(partialObject) {}
38 
47  PolylineSetRepresentation(COMMON_NS::DataObjectRepository * repo, const std::string & guid, const std::string & title);
48 
59  PolylineSetRepresentation(RESQML2_NS::AbstractFeatureInterpretation* interp,
60  const std::string & guid, const std::string & title);
61 
74  PolylineSetRepresentation(RESQML2_NS::AbstractFeatureInterpretation* interp,
75  const std::string & guid, const std::string & title, gsoap_eml2_3::resqml22__LineRole roleKind);
76 
82  PolylineSetRepresentation(gsoap_resqml2_0_1::_resqml20__PolylineSetRepresentation* fromGsoap) : RESQML2_NS::PolylineSetRepresentation(fromGsoap) {}
83 
86 
87  COMMON_NS::DataObjectReference getHdfProxyDor() const final;
88 
89  DLL_IMPORT_OR_EXPORT unsigned int getPolylineCountOfPatch(unsigned int patchIndex) const final;
90 
91  DLL_IMPORT_OR_EXPORT unsigned int getPolylineCountOfAllPatches() const final;
92 
93  DLL_IMPORT_OR_EXPORT void getNodeCountPerPolylineInPatch(unsigned int patchIndex, unsigned int * nodeCountPerPolyline) const final;
94 
95  DLL_IMPORT_OR_EXPORT void getNodeCountPerPolylineOfAllPatches(unsigned int * NodeCountPerPolyline) const final;
96 
97  DLL_IMPORT_OR_EXPORT void getXyzPointsOfPatch(unsigned int patchIndex, double * xyzPoints) const final;
98 
99  DLL_IMPORT_OR_EXPORT unsigned int getPatchCount() const final;
100 
101  DLL_IMPORT_OR_EXPORT void pushBackGeometryPatch(
102  unsigned int const * nodeCountPerPolyline, double const * nodes,
103  unsigned int polylineCount, bool allPolylinesClosedFlag,
104  EML2_NS::AbstractHdfProxy* proxy = nullptr, RESQML2_NS::AbstractLocal3dCrs* localCrs = nullptr) final;
105 
106  DLL_IMPORT_OR_EXPORT void pushBackGeometryPatch(
107  unsigned int const * nodeCountPerPolyline, double const * nodes,
108  unsigned int polylineCount, bool * polylineClosedFlags,
109  EML2_NS::AbstractHdfProxy* proxy = nullptr, RESQML2_NS::AbstractLocal3dCrs* localCrs = nullptr) final;
110 
111  DLL_IMPORT_OR_EXPORT bool areAllPolylinesClosedOfPatch(unsigned int patchIndex) const final;
112 
113  DLL_IMPORT_OR_EXPORT bool areAllPolylinesClosedOfAllPatches() const final;
114 
115  DLL_IMPORT_OR_EXPORT bool areAllPolylinesNonClosedOfPatch(unsigned int patchIndex) const final;
116 
117  DLL_IMPORT_OR_EXPORT bool areAllPolylinesNonClosedOfAllPatches() const final;
118 
119  DLL_IMPORT_OR_EXPORT void getClosedFlagPerPolylineOfPatch(unsigned int patchIndex, bool * closedFlagPerPolyline) const final;
120 
121  DLL_IMPORT_OR_EXPORT void getClosedFlagPerPolylineOfAllPatches(bool * closedFlagPerPolyline) const final;
122 
123  DLL_IMPORT_OR_EXPORT bool hasALineRole() const final;
124 
125  DLL_IMPORT_OR_EXPORT gsoap_eml2_3::resqml22__LineRole getLineRole() const final;
126 
127  DLL_IMPORT_OR_EXPORT void setLineRole(gsoap_eml2_3::resqml22__LineRole lineRole) final;
128 
132  DLL_IMPORT_OR_EXPORT static const char* XML_NS;
133 
137  DLL_IMPORT_OR_EXPORT std::string getXmlNamespace() const final { return XML_NS; }
138 
139  private:
140  gsoap_resqml2_0_1::resqml20__PointGeometry* getPointGeometry2_0_1(unsigned int patchIndex) const final;
141 
149  void init(COMMON_NS::DataObjectRepository * repo, const std::string & guid, const std::string & title);
150  };
151 }
Definition: PolylineSetRepresentation.h:27
PolylineSetRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: PolylineSetRepresentation.h:37
PolylineSetRepresentation(gsoap_resqml2_0_1::_resqml20__PolylineSetRepresentation *fromGsoap)
Definition: PolylineSetRepresentation.h:82
PolylineSetRepresentation(resqml2::AbstractFeatureInterpretation *interp, const std::string &guid, const std::string &title)
Creates an instance of this class in a gsoap context.
PolylineSetRepresentation(common::DataObjectRepository *repo, const std::string &guid, const std::string &title)
common::DataObjectReference getHdfProxyDor() const final
Gets the data object reference of the HDF proxy which is used for storing the numerical values of thi...
PolylineSetRepresentation(resqml2::AbstractFeatureInterpretation *interp, const std::string &guid, const std::string &title, gsoap_eml2_3::resqml22__LineRole roleKind)
Creates an instance of this class in a gsoap context.