Fesapi  0.13.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
WellboreMarkerFrameRepresentation.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 "resqml2_0_1/WellboreFrameRepresentation.h"
22 
23 namespace WITSML1_4_1_1_NS
24 {
25  class FormationMarker;
26 }
27 
28 namespace RESQML2_0_1_NS
29 {
31  {
32  public:
33 
37  WellboreMarkerFrameRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) :
38  WellboreFrameRepresentation(partialObject)
39  {
40  }
41 
49  WellboreMarkerFrameRepresentation(class WellboreInterpretation* interp, const std::string & guid, const std::string & title, class WellboreTrajectoryRepresentation * traj);
50 
54  WellboreMarkerFrameRepresentation(gsoap_resqml2_0_1::_resqml2__WellboreMarkerFrameRepresentation* fromGsoap) : WellboreFrameRepresentation(fromGsoap), stratigraphicOccurrenceInterpretation(nullptr) {}
55 
56  // clean the owned markers
58 
63  class WellboreMarker* pushBackNewWellboreMarker(const std::string & guid, const std::string & title);
64 
69  class WellboreMarker* pushBackNewWellboreMarker(const std::string & guid, const std::string & title, const gsoap_resqml2_0_1::resqml2__GeologicBoundaryKind & geologicBoundaryKind);
70 
74  unsigned int getWellboreMarkerCount();
75 
79  const std::vector<class WellboreMarker*> & getWellboreMarkerSet() const { return markerSet; }
80 
81  void setStratigraphicOccurrenceInterpretation(class StratigraphicOccurrenceInterpretation * stratiOccurenceInterp);
82 
88  void setIntervalStratigraphicUnits(unsigned int * stratiUnitIndices, const unsigned int & nullValue, class StratigraphicOccurrenceInterpretation* stratiOccurenceInterp);
89 
90  class StratigraphicOccurrenceInterpretation* getStratigraphicOccurrenceInterpretation() { return stratigraphicOccurrenceInterpretation; }
91 
92  void setWitsmlFormationMarker(const unsigned int & resqmlMarkerIndex, WITSML1_4_1_1_NS::FormationMarker * witsmlFormationMarker);
93 
94  static const char* XML_TAG;
95  virtual std::string getXmlTag() const {return XML_TAG;}
96 
97  protected:
98 
99  std::vector<epc::Relationship> getAllEpcRelationships() const;
100  void importRelationshipSetFromEpc(COMMON_NS::EpcDocument* epcDoc);
101 
102  // XML forward relationships
103  std::vector<WITSML1_4_1_1_NS::FormationMarker*> witsmlFormationMarkerSet;
104  class StratigraphicOccurrenceInterpretation* stratigraphicOccurrenceInterpretation;
105 
106  // only memory relationship
107  std::vector<class WellboreMarker*> markerSet;
108  };
109 }
110 
Definition: WellboreTrajectoryRepresentation.h:30
WellboreMarkerFrameRepresentation(gsoap_resqml2_0_1::_resqml2__WellboreMarkerFrameRepresentation *fromGsoap)
Definition: WellboreMarkerFrameRepresentation.h:54
const std::vector< class WellboreMarker * > & getWellboreMarkerSet() const
Definition: WellboreMarkerFrameRepresentation.h:79
Definition: StratigraphicOccurrenceInterpretation.h:30
Definition: EpcDocument.h:65
Definition: EpcDocument.h:130
Definition: EpcDocument.h:154
Definition: WellboreFrameRepresentation.h:31
Definition: WellboreMarker.h:29
virtual std::string getXmlTag() const
Definition: WellboreMarkerFrameRepresentation.h:95
Definition: WellboreInterpretation.h:26
WellboreMarkerFrameRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: WellboreMarkerFrameRepresentation.h:37
Definition: FormationMarker.h:29
Definition: WellboreMarkerFrameRepresentation.h:30