My Project
WellboreMarkerFrameRepresentation.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_0_1/WellboreFrameRepresentation.h"
37 
38 namespace witsml1_4_1_1
39 {
40  class FormationMarker;
41 }
42 
43 namespace resqml2_0_1
44 {
46  {
47  public:
48 
56  WellboreMarkerFrameRepresentation(class WellboreInterpretation* interp, const std::string & guid, const std::string & title, class WellboreTrajectoryRepresentation * traj);
57 
61  WellboreMarkerFrameRepresentation(gsoap_resqml2_0_1::_resqml2__WellboreMarkerFrameRepresentation* fromGsoap) : WellboreFrameRepresentation(fromGsoap), stratigraphicOccurrenceInterpretation(nullptr) {}
62 
63  // clean the owned markers
65 
70  class WellboreMarker* pushBackNewWellboreMarker(const std::string & guid, const std::string & title);
71 
76  class WellboreMarker* pushBackNewWellboreMarker(const std::string & guid, const std::string & title, const gsoap_resqml2_0_1::resqml2__GeologicBoundaryKind & geologicBoundaryKind);
77 
81  unsigned int getWellboreMarkerCount();
82 
86  const std::vector<class WellboreMarker*> & getWellboreMarkerSet() const { return markerSet; }
87 
88  void setStratigraphicOccurrenceInterpretation(class StratigraphicOccurrenceInterpretation * stratiOccurenceInterp);
89 
95  void setIntervalStratigraphicUnits(unsigned int * stratiUnitIndices, const unsigned int & nullValue, class StratigraphicOccurrenceInterpretation* stratiOccurenceInterp);
96 
97  class StratigraphicOccurrenceInterpretation* getStratigraphicOccurrenceInterpretation() { return stratigraphicOccurrenceInterpretation; }
98 
99  void setWitsmlFormationMarker(const unsigned int & resqmlMarkerIndex, witsml1_4_1_1::FormationMarker * witsmlFormationMarker);
100 
101  static const char* XML_TAG;
102  virtual std::string getXmlTag() const {return XML_TAG;}
103 
104  protected:
105 
106  std::vector<epc::Relationship> getAllEpcRelationships() const;
107  void importRelationshipSetFromEpc(common::EpcDocument* epcDoc);
108 
109  // XML forward relationships
110  std::vector<witsml1_4_1_1::FormationMarker*> witsmlFormationMarkerSet;
111  class StratigraphicOccurrenceInterpretation* stratigraphicOccurrenceInterpretation;
112 
113  // only memory relationship
114  std::vector<class WellboreMarker*> markerSet;
115  };
116 }
Definition: EpcDocument.h:142
Definition: WellboreInterpretation.h:40
const std::vector< class WellboreMarker * > & getWellboreMarkerSet() const
Definition: WellboreMarkerFrameRepresentation.h:86
Definition: StratigraphicOccurrenceInterpretation.h:45
Definition: FormationMarker.h:42
Definition: WellboreMarker.h:44
Definition: WellboreMarkerFrameRepresentation.h:45
Definition: EpcDocument.h:79
Definition: EpcDocument.h:155
Definition: WellboreTrajectoryRepresentation.h:50
Definition: WellboreFrameRepresentation.h:46
WellboreMarkerFrameRepresentation(gsoap_resqml2_0_1::_resqml2__WellboreMarkerFrameRepresentation *fromGsoap)
Definition: WellboreMarkerFrameRepresentation.h:61
virtual std::string getXmlTag() const
Definition: WellboreMarkerFrameRepresentation.h:102