My Project
AbstractFeatureInterpretation.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 {
40  class StructuralOrganizationInterpretation;
41 }
42 
43 namespace resqml2
44 {
45  class DLL_IMPORT_OR_EXPORT AbstractFeatureInterpretation : public common::AbstractObject
46  {
47  protected:
48 
52  AbstractFeatureInterpretation(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : common::AbstractObject(partialObject) {}
53 
59 
63  AbstractFeatureInterpretation(gsoap_resqml2_0_1::resqml2__AbstractFeatureInterpretation* fromGsoap) : common::AbstractObject(fromGsoap) {}
64 
65  void setInterpretedFeatureInXml(resqml2::AbstractFeature* feature);
66 
67  public:
68 
73 
77  gsoap_resqml2_0_1::eml20__DataObjectReference* getInterpretedFeatureDor() const;
78 
79  std::string getInterpretedFeatureUuid() const;
80 
84  void setInterpretedFeature(AbstractFeature* feature);
85 
89  AbstractFeature* getInterpretedFeature() const;
90 
95  const gsoap_resqml2_0_1::resqml2__Domain & initDomain(const gsoap_resqml2_0_1::resqml2__Domain & defaultDomain) const;
96 
100  gsoap_resqml2_0_1::resqml2__Domain getDomain() const;
101 
105  std::vector<AbstractRepresentation*> getRepresentationSet() const;
106 
110  unsigned int getRepresentationCount() const;
111 
115  AbstractRepresentation* getRepresentation(const unsigned int & index) const;
116 
120  std::vector<GridConnectionSetRepresentation *> getGridConnectionSetRepresentationSet();
121 
126  void setBottomFrontierOf(resqml2_0_1::StructuralOrganizationInterpretation* structOrg);
127  void setTopFrontierOf(resqml2_0_1::StructuralOrganizationInterpretation* structOrg);
128  void setSideFrontierOf(resqml2_0_1::StructuralOrganizationInterpretation* structOrg);
129 
130  protected:
131 
132  virtual std::vector<epc::Relationship> getAllEpcRelationships() const;
133 
134  virtual void importRelationshipSetFromEpc(common::EpcDocument* epcDoc);
135 
136  // XML backward relationship
137  std::vector<AbstractRepresentation *> representationSet;
138  std::vector<GridConnectionSetRepresentation *> gridConnectionSetRepresentationSet;
139 
140  std::vector<resqml2_0_1::StructuralOrganizationInterpretation *> isBottomFrontierSet;
141  std::vector<resqml2_0_1::StructuralOrganizationInterpretation *> isTopFrontierSet;
142  std::vector<resqml2_0_1::StructuralOrganizationInterpretation *> isSideFrontierSet;
143 
144  friend void AbstractRepresentation::setInterpretation(AbstractFeatureInterpretation * interp);
146  };
147 }
void pushBackInterpretation(class AbstractFeatureInterpretation *interp)
Definition: GridConnectionSetRepresentation.cpp:102
AbstractFeatureInterpretation(gsoap_resqml2_0_1::resqml2__AbstractFeatureInterpretation *fromGsoap)
Definition: AbstractFeatureInterpretation.h:63
Definition: AbstractFeature.h:42
AbstractFeatureInterpretation()
Definition: AbstractFeatureInterpretation.h:58
Definition: EpcDocument.h:78
Definition: EpcDocument.h:168
Definition: AbstractObject.h:42
Definition: StructuralOrganizationInterpretation.h:41
Definition: AbstractRepresentation.h:44
AbstractFeatureInterpretation(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: AbstractFeatureInterpretation.h:52
Definition: AbstractHdfProxy.h:43
virtual ~AbstractFeatureInterpretation()
Definition: AbstractFeatureInterpretation.h:72
Definition: EpcDocument.h:62
Definition: AbstractFeatureInterpretation.h:45