My Project
StratigraphicColumnRankInterpretation.h
1 /*-----------------------------------------------------------------------
2 Copyright F2I-CONSULTING, (2014-2017)
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_0_1/AbstractStratigraphicOrganizationInterpretation.h"
37 #include "resqml2_0_1/StratigraphicColumn.h"
38 #include "resqml2_0_1/StratigraphicOccurrenceInterpretation.h"
39 
40 namespace resqml2_0_1
41 {
46  {
47  public:
48 
52  StratigraphicColumnRankInterpretation(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : AbstractStratigraphicOrganizationInterpretation(partialObject) {}
53 
62  StratigraphicColumnRankInterpretation(class OrganizationFeature * orgFeat, const std::string & guid, const std::string & title, const unsigned long & rank, const gsoap_resqml2_0_1::resqml2__OrderingCriteria & orderingCriteria);
63 
68  StratigraphicColumnRankInterpretation(gsoap_resqml2_0_1::_resqml2__StratigraphicColumnRankInterpretation* fromGsoap) : AbstractStratigraphicOrganizationInterpretation(fromGsoap) {}
69 
74 
79  void pushBackStratiUnitInterpretation(class StratigraphicUnitInterpretation * stratiUnitInterpretation);
80 
81  void setHorizonOfLastContact(class HorizonInterpretation * partOf);
82 
86  void pushBackStratigraphicBinaryContact(StratigraphicUnitInterpretation* subject, const gsoap_resqml2_0_1::resqml2__ContactMode & subjectContactMode,
87  StratigraphicUnitInterpretation* directObject, const gsoap_resqml2_0_1::resqml2__ContactMode & directObjectMode,
88  class HorizonInterpretation * partOf = nullptr);
89 
94  bool isAChronoStratiRank() const;
95 
99  unsigned int getContactCount() const;
100 
106  gsoap_resqml2_0_1::resqml2__ContactMode getSubjectContactModeOfContact(const unsigned int & contactIndex) const;
107 
111  class StratigraphicUnitInterpretation* getSubjectOfContact(const unsigned int & contactIndex) const;
112 
118  gsoap_resqml2_0_1::resqml2__ContactMode getDirectObjectContactModeOfContact(const unsigned int & contactIndex) const;
119 
123  class StratigraphicUnitInterpretation* getDirectObjectOfContact(const unsigned int & contactIndex) const;
124 
128  class HorizonInterpretation* getHorizonInterpretationOfContact(const unsigned int & contactIndex) const;
129 
133  const std::vector<class StratigraphicUnitInterpretation*> & getStratigraphicUnitInterpretationSet() const;
134 
138  const std::vector<class StratigraphicOccurrenceInterpretation*> & getStratigraphicOccurrenceInterpretationSet() const;
139 
143  const std::vector<class HorizonInterpretation*> & getHorizonInterpretationSet() const;
144 
148  const std::vector<StratigraphicColumn*> & getStratigraphicColumnSet() const;
149 
150  static const char* XML_TAG;
151  virtual std::string getXmlTag() const {return XML_TAG;}
152 
153  private:
154 
155  std::vector<epc::Relationship> getAllEpcRelationships() const;
156  void importRelationshipSetFromEpc(common::EpcDocument* epcDoc);
157 
158  // forward relationships
159  std::vector<class StratigraphicUnitInterpretation*> stratigraphicUnitSet;
160  std::vector<class HorizonInterpretation*> horizonInterpretationSet;
161 
162  // Backward relationship
163  std::vector<StratigraphicColumn *> stratigraphicColumnSet;
164  std::vector<StratigraphicOccurrenceInterpretation *> stratigraphicOccurrenceInterpretationSet;
165 
166  friend void StratigraphicColumn::pushBackStratiColumnRank(StratigraphicColumnRankInterpretation * stratiColumnRank);
167  friend void StratigraphicOccurrenceInterpretation::setStratigraphicColumnRankInterpretation(StratigraphicColumnRankInterpretation * stratiColumnRankInterp);
168  };
169 }
virtual std::string getXmlTag() const
Definition: StratigraphicColumnRankInterpretation.h:151
Definition: OrganizationFeature.h:40
Definition: StratigraphicUnitInterpretation.h:40
Definition: AbstractStratigraphicOrganizationInterpretation.h:41
Definition: EpcDocument.h:78
StratigraphicColumnRankInterpretation(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: StratigraphicColumnRankInterpretation.h:52
Definition: EpcDocument.h:168
~StratigraphicColumnRankInterpretation()
Definition: StratigraphicColumnRankInterpretation.h:73
Definition: HorizonInterpretation.h:42
Definition: StratigraphicColumnRankInterpretation.h:45
StratigraphicColumnRankInterpretation(gsoap_resqml2_0_1::_resqml2__StratigraphicColumnRankInterpretation *fromGsoap)
Definition: StratigraphicColumnRankInterpretation.h:68