Fesapi  2.0.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 "../common/AbstractObject.h"
22 
23 namespace RESQML2_NS
24 {
31  class MdDatum : public COMMON_NS::AbstractObject
32  {
33  public:
34 
40  DLL_IMPORT_OR_EXPORT MdDatum(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : AbstractObject(partialObject) {}
41 
43  virtual ~MdDatum() = default;
44 
52  DLL_IMPORT_OR_EXPORT class AbstractLocal3dCrs * getLocalCrs() const;
53 
61  virtual COMMON_NS::DataObjectReference getLocalCrsDor() const = 0;
62 
68  DLL_IMPORT_OR_EXPORT virtual double getX() const = 0;
69 
77  DLL_IMPORT_OR_EXPORT double getXInGlobalCrs() const;
78 
84  DLL_IMPORT_OR_EXPORT virtual double getY() const = 0;
85 
93  DLL_IMPORT_OR_EXPORT double getYInGlobalCrs() const;
94 
100  DLL_IMPORT_OR_EXPORT virtual double getZ() const = 0;
101 
109  DLL_IMPORT_OR_EXPORT double getZInGlobalCrs() const;
110 
116  DLL_IMPORT_OR_EXPORT virtual gsoap_eml2_3::eml23__WellboreDatumReference getOriginKind() const = 0;
117 
119  DLL_IMPORT_OR_EXPORT static const char* XML_TAG;
120 
126  DLL_IMPORT_OR_EXPORT virtual std::string getXmlTag() const final { return XML_TAG; }
127 
128  protected:
129 
131  MdDatum() : COMMON_NS::AbstractObject() {}
132 
138  MdDatum(gsoap_resqml2_0_1::_resqml20__MdDatum* fromGsoap) : COMMON_NS::AbstractObject(fromGsoap) {}
139 
145  MdDatum(gsoap_eml2_3::_resqml22__MdDatum* fromGsoap) : COMMON_NS::AbstractObject(fromGsoap) {}
146 
156  DLL_IMPORT_OR_EXPORT virtual void setLocalCrs(RESQML2_NS::AbstractLocal3dCrs * localCrs) = 0;
157  };
158 }
Proxy class for an abstract local 3D coordinate reference system (CRS).
Definition: AbstractLocal3dCrs.h:27
Proxy class for a MD datum. An MD datum specifies the location of the measured depth = 0 reference po...
Definition: MdDatum.h:32
virtual double getY() const =0
double getXInGlobalCrs() const
virtual double getX() const =0
double getYInGlobalCrs() const
class AbstractLocal3dCrs * getLocalCrs() const
virtual gsoap_eml2_3::eml23__WellboreDatumReference getOriginKind() const =0
double getZInGlobalCrs() const
static const char * XML_TAG
Definition: MdDatum.h:119
virtual double getZ() const =0
virtual common::DataObjectReference getLocalCrsDor() const =0
virtual std::string getXmlTag() const final
Definition: MdDatum.h:126
MdDatum(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: MdDatum.h:40
virtual ~MdDatum()=default