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
AbstractFeatureInterpretation.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 "../common/AbstractObject.h"
22
23namespace RESQML2_NS
24{
25 class GridConnectionSetRepresentation;
26
28 class AbstractFeatureInterpretation : public COMMON_NS::AbstractObject
29 {
30 public:
31
33 virtual ~AbstractFeatureInterpretation() = default;
34
41 COMMON_NS::DataObjectReference getInterpretedFeatureDor() const;
42
50 DLL_IMPORT_OR_EXPORT void setInterpretedFeature(AbstractFeature* feature);
51
57 DLL_IMPORT_OR_EXPORT AbstractFeature* getInterpretedFeature() const;
58
69 DLL_IMPORT_OR_EXPORT gsoap_resqml2_0_1::resqml20__Domain initDomain(gsoap_resqml2_0_1::resqml20__Domain defaultDomain) const;
70
76 DLL_IMPORT_OR_EXPORT gsoap_resqml2_0_1::resqml20__Domain getDomain() const;
77
83 DLL_IMPORT_OR_EXPORT std::vector<AbstractRepresentation *> getRepresentationSet() const;
84
93 DLL_IMPORT_OR_EXPORT uint64_t getRepresentationCount() const noexcept { return getRepresentationSet().size(); }
94
105 DLL_IMPORT_OR_EXPORT AbstractRepresentation * getRepresentation(uint64_t index) const { return getRepresentationSet().at(index); }
106
112 DLL_IMPORT_OR_EXPORT std::vector<GridConnectionSetRepresentation *> getGridConnectionSetRepresentationSet() const;
113
115 virtual void loadTargetRelationships() override;
116
117 protected:
118
126 DLL_IMPORT_OR_EXPORT AbstractFeatureInterpretation(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : COMMON_NS::AbstractObject(partialObject) {}
127
130
136 AbstractFeatureInterpretation(gsoap_resqml2_0_1::resqml20__AbstractFeatureInterpretation* fromGsoap) : COMMON_NS::AbstractObject(fromGsoap) {}
137 AbstractFeatureInterpretation(gsoap_eml2_3::resqml22__AbstractFeatureInterpretation* fromGsoap) : COMMON_NS::AbstractObject(fromGsoap) {}
138 };
139}
Proxy class for an abstract feature.
Definition AbstractFeature.h:31
Proxy class for an abstract feature interpretation.
Definition AbstractFeatureInterpretation.h:29
uint64_t getRepresentationCount() const noexcept
Definition AbstractFeatureInterpretation.h:93
std::vector< GridConnectionSetRepresentation * > getGridConnectionSetRepresentationSet() const
virtual void loadTargetRelationships() override
gsoap_resqml2_0_1::resqml20__Domain initDomain(gsoap_resqml2_0_1::resqml20__Domain defaultDomain) const
std::vector< AbstractRepresentation * > getRepresentationSet() const
virtual ~AbstractFeatureInterpretation()=default
gsoap_resqml2_0_1::resqml20__Domain getDomain() const
AbstractFeature * getInterpretedFeature() const
void setInterpretedFeature(AbstractFeature *feature)
AbstractRepresentation * getRepresentation(uint64_t index) const
Definition AbstractFeatureInterpretation.h:105
common::DataObjectReference getInterpretedFeatureDor() const
Proxy class for an abstract representation.
Definition AbstractRepresentation.h:37