Fesapi  0.13.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
RepresentationSetRepresentation.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/AbstractRepresentation.h"
22 
23 namespace RESQML2_NS
24 {
26  {
27  protected:
29 
30  RepresentationSetRepresentation() : AbstractRepresentation(nullptr, static_cast<RESQML2_NS::AbstractLocal3dCrs*>(nullptr)) {}
31 
35  RepresentationSetRepresentation(gsoap_resqml2_0_1::_resqml2__RepresentationSetRepresentation* fromGsoap) : RESQML2_NS::AbstractRepresentation(fromGsoap) {}
36 
37  gsoap_resqml2_0_1::resqml2__PointGeometry* getPointGeometry2_0_1(const unsigned int & patchIndex) const { return nullptr; }
38 
39  public:
40 
44  RepresentationSetRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) :
45  RESQML2_NS::AbstractRepresentation(partialObject)
46  {
47  }
48 
53 
54  static const char* XML_TAG;
55  virtual std::string getXmlTag() const;
56 
57  std::string getHdfProxyUuid() const {return "";}
58 
59 
60  ULONG64 getXyzPointCountOfPatch(const unsigned int & patchIndex) const;
61 
67  void getXyzPointsOfPatch(const unsigned int & patchIndex, double * xyzPoints) const;
68 
69  unsigned int getPatchCount() const {return 0;}
70 
74  bool isHomogeneous() const;
75 
79  unsigned int getRepresentationCount() const;
80 
84  RESQML2_NS::AbstractRepresentation* getRepresentation(const unsigned int & index) const;
85 
89  gsoap_resqml2_0_1::eml20__DataObjectReference* getRepresentationDor(const unsigned int & index) const;
90 
94  std::string getRepresentationUuid(const unsigned int & index) const;
95 
96  protected:
97 
98  void pushBackXmlRepresentation(RESQML2_NS::AbstractRepresentation* rep);
99 
100  virtual std::vector<epc::Relationship> getAllEpcRelationships() const;
101  virtual void importRelationshipSetFromEpc(COMMON_NS::EpcDocument* epcDoc);
102 
104  };
105 }
106 
void pushBackIntoRepresentationSet(class RepresentationSetRepresentation *repSet, bool xml=true)
Definition: AbstractRepresentation.cpp:404
virtual ~RepresentationSetRepresentation()
Definition: RepresentationSetRepresentation.h:52
Definition: RepresentationSetRepresentation.h:25
Definition: AbstractRepresentation.h:31
Definition: AbstractFeatureInterpretation.h:30
RepresentationSetRepresentation(gsoap_resqml2_0_1::_resqml2__RepresentationSetRepresentation *fromGsoap)
Definition: RepresentationSetRepresentation.h:35
Definition: EpcDocument.h:154
gsoap_resqml2_0_1::resqml2__PointGeometry * getPointGeometry2_0_1(const unsigned int &patchIndex) const
Definition: RepresentationSetRepresentation.h:37
RepresentationSetRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: RepresentationSetRepresentation.h:44
Definition: EpcDocument.h:49