Fesapi 2.3.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
Well.h
1/*-----------------------------------------------------------------------
2Licensed to the Apache Software Foundation (ASF) under one
3or more contributor license agreements. See the NOTICE file
4distributed with this work for additional information
5regarding copyright ownership. The ASF licenses this file
6to you under the Apache License, Version 2.0 (the
7"License"; you may not use this file except in compliance
8with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12Unless required by applicable law or agreed to in writing,
13software distributed under the License is distributed on an
14"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15KIND, either express or implied. See the License for the
16specific language governing permissions and limitations
17under the License.
18-----------------------------------------------------------------------*/
19#pragma once
20
21#include "witsml2_1/Wellbore.h"
22
23namespace WITSML2_1_NS
24{
26 {
27 public:
33 Well(COMMON_NS::DataObjectRepository * repo,
34 const std::string & guid,
35 const std::string & title);
36
37 Well(COMMON_NS::DataObjectRepository * repo,
38 const std::string & guid,
39 const std::string & title,
40 const std::string & operator_,
41 gsoap_eml2_2::eml22__WellStatus statusWell,
42 gsoap_eml2_2::witsml2__WellPurpose purposeWell,
43 gsoap_eml2_2::witsml2__WellFluid fluidWell,
44 gsoap_eml2_2::witsml2__WellDirection directionWell
45 );
46
50 Well(gsoap_eml2_2::witsml2__Well* fromGsoap):AbstractObject(fromGsoap) {}
51
55 ~Well() {}
56
57 DLL_IMPORT_OR_EXPORT void setOperator(const std::string & operator_);
58
59 DLL_IMPORT_OR_EXPORT double getLocationProjectedX(const unsigned int & locationIndex);
60 DLL_IMPORT_OR_EXPORT double getLocationProjectedY(const unsigned int & locationIndex);
61
62 DLL_IMPORT_OR_EXPORT void pushBackLocation(
63 const std::string & guid,
64 const double & projectedX,
65 const double & projectedY,
66 const unsigned int & projectedCrsEpsgCode);
67
68 DLL_IMPORT_OR_EXPORT unsigned int geLocationCount() const;
69
70 void pushBackDatum(
71 const std::string & guid,
72 const std::string & title,
73 gsoap_eml2_2::eml22__WellboreDatumReference code,
74 const std::string & datum,
75 gsoap_eml2_2::eml22__LengthUom elevationUnit,
76 const double & elevation,
77 const unsigned int & verticalCrsEpsgCode);
78
79 DLL_IMPORT_OR_EXPORT unsigned int getDatumCount() const;
80
81 static const char* XML_TAG;
82 virtual std::string getXmlTag() const {return XML_TAG;}
83
84 private:
85 void loadTargetRelationships() {}
86 };
87}
Definition: AbstractObject.h:26
Definition: Well.h:26
~Well()
Definition: Well.h:55
Well(COMMON_NS::DataObjectRepository *repo, const std::string &guid, const std::string &title)
Well(gsoap_eml2_2::witsml2__Well *fromGsoap)
Definition: Well.h:50