Fesapi  0.13.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
MdDatum.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/DeviationSurveyRepresentation.h"
22 
23 namespace RESQML2_0_1_NS
24 {
25  class WellboreTrajectoryRepresentation;
26  class DeviationSurveyRepresentation;
27 }
28 
29 namespace RESQML2_NS
30 {
31  class DLL_IMPORT_OR_EXPORT MdDatum : public COMMON_NS::AbstractObject
32  {
33  protected :
34 
38  MdDatum() : COMMON_NS::AbstractObject() {}
39 
43  MdDatum(gsoap_resqml2_0_1::_resqml2__MdDatum* fromGsoap) : COMMON_NS::AbstractObject(fromGsoap) {}
44 
45  private :
46 
51  void addWellboreTrajectoryRepresentation(RESQML2_0_1_NS::WellboreTrajectoryRepresentation* traj) { wellboreTrajectoryRepresentationSet.push_back(traj); }
52 
57  void addDeviationSurveyRepresentation(RESQML2_0_1_NS::DeviationSurveyRepresentation* deviationSurvey) { deviationSurveyRepresentationSet.push_back(deviationSurvey); }
58 
59  public:
60 
64  MdDatum(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : AbstractObject(partialObject) {}
65 
69  virtual ~MdDatum() {}
70 
71  static const char* XML_TAG;
72  virtual std::string getXmlTag() const {return XML_TAG;}
73 
77  void setLocalCrs(class AbstractLocal3dCrs * localCrs);
78 
82  class AbstractLocal3dCrs * getLocalCrs() const;
83 
87  virtual gsoap_resqml2_0_1::eml20__DataObjectReference* getLocalCrsDor() const = 0;
88 
92  std::string getLocalCrsUuid() const;
93 
97  virtual double getX() const = 0;
98  virtual double getXInGlobalCrs() const = 0;
99 
103  virtual double getY() const = 0;
104  virtual double getYInGlobalCrs() const = 0;
105 
109  virtual double getZ() const = 0;
110  virtual double getZInGlobalCrs() const = 0;
111 
115  virtual gsoap_resqml2_0_1::resqml2__MdReference getOriginKind() const = 0;
116 
117  protected:
118 
121 
122  virtual void setXmlLocalCrs(RESQML2_NS::AbstractLocal3dCrs * localCrs) = 0;
123 
124  std::vector<epc::Relationship> getAllEpcRelationships() const;
125  void importRelationshipSetFromEpc(COMMON_NS::EpcDocument* epcDoc);
126 
127  // XML backward relationship
128  std::vector<RESQML2_0_1_NS::WellboreTrajectoryRepresentation*> wellboreTrajectoryRepresentationSet;
129  std::vector<RESQML2_0_1_NS::DeviationSurveyRepresentation*> deviationSurveyRepresentationSet;
130  };
131 }
132 
Definition: WellboreTrajectoryRepresentation.h:30
virtual std::string getXmlTag() const
Definition: MdDatum.h:72
Definition: DeviationSurveyRepresentation.h:32
virtual ~MdDatum()
Definition: MdDatum.h:69
void setMdDatum(RESQML2_NS::MdDatum *mdDatum)
Definition: DeviationSurveyRepresentation.cpp:222
Definition: EpcDocument.h:65
Definition: EpcDocument.h:154
Definition: AbstractObject.h:27
MdDatum(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: MdDatum.h:64
void setMdDatum(RESQML2_NS::MdDatum *mdDatum)
Definition: WellboreTrajectoryRepresentation.cpp:435
MdDatum(gsoap_resqml2_0_1::_resqml2__MdDatum *fromGsoap)
Definition: MdDatum.h:43
Definition: MdDatum.h:31
Definition: AbstractLocal3dCrs.h:25
Definition: AbstractHdfProxy.h:28
Definition: EpcDocument.h:49
MdDatum()
Definition: MdDatum.h:38