Fesapi  2.0.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 "AbstractRepresentation.h"
22 
23 namespace RESQML2_NS
24 {
38  class RepresentationSetRepresentation : public RESQML2_NS::AbstractRepresentation
39  {
40  public:
41 
43  virtual ~RepresentationSetRepresentation() = default;
44 
52  COMMON_NS::DataObjectReference getHdfProxyDor() const final { return COMMON_NS::DataObjectReference(); }
53 
55  DLL_IMPORT_OR_EXPORT uint64_t getXyzPointCountOfPatch(unsigned int patchIndex) const override;
56 
58  DLL_IMPORT_OR_EXPORT void getXyzPointsOfPatch(unsigned int patchIndex, double * xyzPoints) const override;
59 
65  DLL_IMPORT_OR_EXPORT unsigned int getPatchCount() const override {return 1;}
66 
75  DLL_IMPORT_OR_EXPORT bool isHomogeneous() const;
76 
85  DLL_IMPORT_OR_EXPORT unsigned int getRepresentationCount() const;
86 
97  DLL_IMPORT_OR_EXPORT RESQML2_NS::AbstractRepresentation* getRepresentation(unsigned int index) const;
98 
110  COMMON_NS::DataObjectReference getRepresentationDor(unsigned int index) const;
111 
121  DLL_IMPORT_OR_EXPORT void pushBack(RESQML2_NS::AbstractRepresentation* rep);
122 
128  DLL_IMPORT_OR_EXPORT static const char* XML_TAG;
129 
130  DLL_IMPORT_OR_EXPORT virtual std::string getXmlTag() const override { return XML_TAG; }
131 
133  void virtual loadTargetRelationships() override;
134 
135  protected:
136 
139 
145  DLL_IMPORT_OR_EXPORT RepresentationSetRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) :
146  RESQML2_NS::AbstractRepresentation(partialObject) {}
147 
153  RepresentationSetRepresentation(gsoap_resqml2_0_1::_resqml20__RepresentationSetRepresentation* fromGsoap) : RESQML2_NS::AbstractRepresentation(fromGsoap) {}
154 
160  RepresentationSetRepresentation(gsoap_eml2_3::_resqml22__RepresentationSetRepresentation* fromGsoap) : RESQML2_NS::AbstractRepresentation(fromGsoap) {}
161 
162  };
163 }
Proxy class for an abstract representation.
Definition: AbstractRepresentation.h:32
Proxy class for a representation set representation. This is the parent class of the framework repres...
Definition: RepresentationSetRepresentation.h:39
common::DataObjectReference getRepresentationDor(unsigned int index) const
static const char * XML_TAG
Definition: RepresentationSetRepresentation.h:128
virtual std::string getXmlTag() const override
Definition: RepresentationSetRepresentation.h:130
common::DataObjectReference getHdfProxyDor() const final
Definition: RepresentationSetRepresentation.h:52
void pushBack(resqml2::AbstractRepresentation *rep)
uint64_t getXyzPointCountOfPatch(unsigned int patchIndex) const override
unsigned int getRepresentationCount() const
unsigned int getPatchCount() const override
Definition: RepresentationSetRepresentation.h:65
virtual ~RepresentationSetRepresentation()=default
resqml2::AbstractRepresentation * getRepresentation(unsigned int index) const
void getXyzPointsOfPatch(unsigned int patchIndex, double *xyzPoints) const override
virtual void loadTargetRelationships() override