My Project
MdDatum.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/DeviationSurveyRepresentation.h"
37 
38 namespace resqml2_0_1
39 {
40  class WellboreTrajectoryRepresentation;
41  class DeviationSurveyRepresentation;
42 }
43 
44 namespace resqml2
45 {
46  class DLL_IMPORT_OR_EXPORT MdDatum : public common::AbstractObject
47  {
48  protected :
49 
53  MdDatum() : common::AbstractObject() {}
54 
58  MdDatum(gsoap_resqml2_0_1::_resqml2__MdDatum* fromGsoap) : common::AbstractObject(fromGsoap) {}
59 
60  private :
61 
66  void addWellboreTrajectoryRepresentation(resqml2_0_1::WellboreTrajectoryRepresentation* traj) { wellboreTrajectoryRepresentationSet.push_back(traj); }
67 
72  void addDeviationSurveyRepresentation(resqml2_0_1::DeviationSurveyRepresentation* deviationSurvey) { deviationSurveyRepresentationSet.push_back(deviationSurvey); }
73 
74  public:
75 
79  MdDatum(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : AbstractObject(partialObject) {}
80 
84  virtual ~MdDatum() {}
85 
86  static const char* XML_TAG;
87  virtual std::string getXmlTag() const {return XML_TAG;}
88 
92  void setLocalCrs(class AbstractLocal3dCrs * localCrs);
93 
97  class AbstractLocal3dCrs * getLocalCrs() const;
98 
102  virtual gsoap_resqml2_0_1::eml20__DataObjectReference* getLocalCrsDor() const = 0;
103 
107  std::string getLocalCrsUuid() const;
108 
112  virtual double getX() const = 0;
113  virtual double getXInGlobalCrs() const = 0;
114 
118  virtual double getY() const = 0;
119  virtual double getYInGlobalCrs() const = 0;
120 
124  virtual double getZ() const = 0;
125  virtual double getZInGlobalCrs() const = 0;
126 
130  virtual gsoap_resqml2_0_1::resqml2__MdReference getOriginKind() const = 0;
131 
132  protected:
133 
136 
137  virtual void setXmlLocalCrs(resqml2::AbstractLocal3dCrs * localCrs) = 0;
138 
139  std::vector<epc::Relationship> getAllEpcRelationships() const;
140  void importRelationshipSetFromEpc(common::EpcDocument* epcDoc);
141 
142  // XML backward relationship
143  std::vector<resqml2_0_1::WellboreTrajectoryRepresentation*> wellboreTrajectoryRepresentationSet;
144  std::vector<resqml2_0_1::DeviationSurveyRepresentation*> deviationSurveyRepresentationSet;
145  };
146 }
Definition: DeviationSurveyRepresentation.h:47
Definition: AbstractLocal3dCrs.h:40
MdDatum()
Definition: MdDatum.h:53
virtual std::string getXmlTag() const
Definition: MdDatum.h:87
Definition: EpcDocument.h:78
Definition: EpcDocument.h:168
Definition: AbstractObject.h:42
Definition: WellboreTrajectoryRepresentation.h:45
virtual ~MdDatum()
Definition: MdDatum.h:84
Definition: AbstractHdfProxy.h:43
Definition: MdDatum.h:46
MdDatum(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: MdDatum.h:79
MdDatum(gsoap_resqml2_0_1::_resqml2__MdDatum *fromGsoap)
Definition: MdDatum.h:58
void setMdDatum(resqml2::MdDatum *mdDatum)
Definition: WellboreTrajectoryRepresentation.cpp:447
Definition: EpcDocument.h:62
void setMdDatum(resqml2::MdDatum *mdDatum)
Definition: DeviationSurveyRepresentation.cpp:237