My Project
WellboreFrameRepresentation.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/AbstractRepresentation.h"
37 #include "resqml2/AbstractValuesProperty.h"
38 
39 namespace witsml1_4_1_1
40 {
41  class Log;
42 }
43 
44 namespace resqml2_0_1
45 {
47  {
48  protected:
49  gsoap_resqml2_0_1::resqml2__PointGeometry* getPointGeometry2_0_1(const unsigned int & patchIndex) const {return nullptr;}
50 
51  WellboreFrameRepresentation(resqml2::AbstractFeatureInterpretation* interp, resqml2::AbstractLocal3dCrs * crs) : AbstractRepresentation(interp, crs), trajectory(nullptr), witsmlLog(nullptr) {}
52 
53  public:
54 
58  WellboreFrameRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) :
59  resqml2::AbstractRepresentation(partialObject)
60  {
61  }
62 
70  WellboreFrameRepresentation(class WellboreInterpretation* interp, const std::string & guid, const std::string & title, class WellboreTrajectoryRepresentation * traj);
71 
75  WellboreFrameRepresentation(gsoap_resqml2_0_1::_resqml2__WellboreFrameRepresentation* fromGsoap): AbstractRepresentation(fromGsoap), trajectory(nullptr), witsmlLog(nullptr) {}
76 
78 
85  void setMdValues(double * mdValues, const unsigned int & mdValueCount, common::AbstractHdfProxy* proxy);
86 
93  void setMdValues(const double & firstMdValue, const double & incrementMdValue, const unsigned int & mdValueCount);
94 
99  bool areMdValuesRegularlySpaced() const;
100 
105  double getMdConstantIncrementValue() const;
106 
110  double getMdFirstValue() const;
111 
115  unsigned int getMdValuesCount() const;
116 
120  ULONG64 getXyzPointCountOfPatch(const unsigned int & patchIndex) const {return getMdValuesCount();}
121 
127  void getXyzPointsOfPatch(const unsigned int & patchIndex, double * xyzPoints) const;
128 
132  resqml2::AbstractValuesProperty::hdfDatatypeEnum getMdHdfDatatype() const;
133 
137  void getMdAsDoubleValues(double * values);
138 
142  void getMdAsFloatValues(float * values);
143 
147  std::string getWellboreTrajectoryUuid() const;
148 
153 
154  gsoap_resqml2_0_1::eml20__DataObjectReference* getLocalCrsDor() const;
155 
156  std::string getHdfProxyUuid() const;
157 
158  unsigned int getPatchCount() const {return 1;}
159 
160  void setWitsmlLog(witsml1_4_1_1::Log * witsmlLogToSet);
161  witsml1_4_1_1::Log* getWitsmlLog() {return witsmlLog;}
162 
163  static const char* XML_TAG;
164  virtual std::string getXmlTag() const {return XML_TAG;}
165 
166  protected:
167 
168  virtual std::vector<epc::Relationship> getAllEpcRelationships() const;
169  virtual void importRelationshipSetFromEpc(common::EpcDocument* epcDoc);
170 
171  class WellboreTrajectoryRepresentation * trajectory;
172  witsml1_4_1_1::Log * witsmlLog;
173  };
174 }
Definition: EpcDocument.h:144
WellboreFrameRepresentation(gsoap_resqml2_0_1::_resqml2__WellboreFrameRepresentation *fromGsoap)
Definition: WellboreFrameRepresentation.h:75
Definition: WellboreInterpretation.h:40
gsoap_resqml2_0_1::resqml2__PointGeometry * getPointGeometry2_0_1(const unsigned int &patchIndex) const
Definition: WellboreFrameRepresentation.h:49
Definition: AbstractLocal3dCrs.h:40
Definition: Log.h:42
class WellboreTrajectoryRepresentation * getWellboreTrajectory()
Definition: WellboreFrameRepresentation.h:152
Definition: EpcDocument.h:78
ULONG64 getXyzPointCountOfPatch(const unsigned int &patchIndex) const
Definition: WellboreFrameRepresentation.h:120
Definition: EpcDocument.h:168
Definition: WellboreTrajectoryRepresentation.h:45
Definition: AbstractRepresentation.h:44
Definition: WellboreFrameRepresentation.h:46
Definition: EpcDocument.h:62
virtual std::string getXmlTag() const
Definition: WellboreFrameRepresentation.h:164
Definition: AbstractHdfProxy.h:45
Definition: AbstractFeatureInterpretation.h:45
WellboreFrameRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: WellboreFrameRepresentation.h:58