Fesapi  2.0.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
WellboreCompletion.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 "WellboreObject.h"
22 
23 namespace WITSML2_0_NS
24 {
26  class WellboreCompletion : public WITSML2_0_NS::WellboreObject
27  {
28  public:
29 
37  DLL_IMPORT_OR_EXPORT WellboreCompletion(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : WITSML2_0_NS::WellboreObject(partialObject) {}
38 
48  WellboreCompletion(class Wellbore* witsmlWellbore,
49  class WellCompletion* wellCompletion,
50  const std::string & guid,
51  const std::string & title,
52  const std::string & wellCompletionName);
53 
59  WellboreCompletion(gsoap_eml2_1::witsml20__WellboreCompletion* fromGsoap) :WellboreObject(fromGsoap) {}
60 
62  ~WellboreCompletion() = default;
63 
67  COMMON_NS::DataObjectReference getWellboreDor() const;
68 
72  COMMON_NS::DataObjectReference getWellCompletionDor() const;
73 
75  DLL_IMPORT_OR_EXPORT class WellCompletion* getWellCompletion() const;
76 
82  DLL_IMPORT_OR_EXPORT void setWellbore(class Wellbore* witsmlWellbore);
83 
89  DLL_IMPORT_OR_EXPORT void setWellCompletion(class WellCompletion* wellCompletion);
90 
100  DLL_IMPORT_OR_EXPORT void pushBackPerforation(const std::string & datum,
101  gsoap_eml2_1::eml21__LengthUom MdUnit,
102  double TopMd,
103  double BaseMd,
104  const std::string & guid = "");
105 
112  DLL_IMPORT_OR_EXPORT void pushBackPerforationHistory(unsigned int index,
113  const std::string & guid = "");
114 
123  DLL_IMPORT_OR_EXPORT void pushBackPerforationHistory(unsigned int index,
124  gsoap_eml2_1::witsml20__PerforationStatus perforationStatus,
125  time_t startDate,
126  const std::string & guid = "");
127 
133  DLL_IMPORT_OR_EXPORT unsigned int getPerforationCount() const;
134 
142  DLL_IMPORT_OR_EXPORT std::string getPerforationUid(unsigned int index) const;
143 
151  DLL_IMPORT_OR_EXPORT bool hasPerforationMdDatum(unsigned int index) const;
152 
160  DLL_IMPORT_OR_EXPORT std::string getPerforationMdDatum(unsigned int index) const;
161 
169  DLL_IMPORT_OR_EXPORT bool hasPerforationMdUnit(unsigned int index) const;
170 
179  DLL_IMPORT_OR_EXPORT gsoap_eml2_1::eml21__LengthUom getPerforationMdUnit(unsigned int index) const;
180 
189  DLL_IMPORT_OR_EXPORT std::string getPerforationMdUnitAsString(unsigned int index) const;
190 
198  DLL_IMPORT_OR_EXPORT bool hasPerforationTopMd(unsigned int index) const;
199 
207  DLL_IMPORT_OR_EXPORT double getPerforationTopMd(unsigned int index) const;
208 
216  DLL_IMPORT_OR_EXPORT bool hasPerforationBaseMd(unsigned int index) const;
217 
225  DLL_IMPORT_OR_EXPORT double getPerforationBaseMd(unsigned int index) const;
226 
234  DLL_IMPORT_OR_EXPORT unsigned int getPerforationHistoryCount(unsigned int index) const;
235 
244  DLL_IMPORT_OR_EXPORT bool hasPerforationHistoryStatus(unsigned int historyIndex,
245  unsigned int perforationIndex) const;
246 
255  DLL_IMPORT_OR_EXPORT gsoap_eml2_1::witsml20__PerforationStatus getPerforationHistoryStatus(unsigned int historyIndex,
256  unsigned int perforationIndex) const;
257 
266  DLL_IMPORT_OR_EXPORT std::string getPerforationHistoryStatusToString(unsigned int historyIndex,
267  unsigned int perforationIndex) const;
268 
276  DLL_IMPORT_OR_EXPORT void setPerforationHistoryStatus(unsigned int historyIndex,
277  unsigned int perforationIndex,
278  gsoap_eml2_1::witsml20__PerforationStatus perforationStatus);
279 
288  DLL_IMPORT_OR_EXPORT bool hasPerforationHistoryStartDate(unsigned int historyIndex,
289  unsigned int perforationIndex) const;
290 
299  DLL_IMPORT_OR_EXPORT time_t getPerforationHistoryStartDate(unsigned int historyIndex,
300  unsigned int perforationIndex) const;
301 
309  DLL_IMPORT_OR_EXPORT void setPerforationHistoryStartDate(unsigned int historyIndex,
310  unsigned int perforationIndex, time_t startDate) const;
311 
320  DLL_IMPORT_OR_EXPORT bool hasPerforationHistoryEndDate(unsigned int historyIndex,
321  unsigned int perforationIndex) const;
322 
331  DLL_IMPORT_OR_EXPORT time_t getPerforationHistoryEndDate(unsigned int historyIndex,
332  unsigned int perforationIndex) const;
333 
341  DLL_IMPORT_OR_EXPORT void setPerforationHistoryEndDate(unsigned int historyIndex,
342  unsigned int perforationIndex, time_t endDate) const;
343 
352  DLL_IMPORT_OR_EXPORT bool hasPerforationHistoryMdDatum(unsigned int historyIndex,
353  unsigned int perforationIndex) const;
354 
363  DLL_IMPORT_OR_EXPORT std::string getPerforationHistoryMdDatum(unsigned int historyIndex,
364  unsigned int perforationIndex) const;
365 
374  DLL_IMPORT_OR_EXPORT bool hasPerforationHistoryMdUnit(unsigned int historyIndex,
375  unsigned int perforationIndex) const;
376 
386  DLL_IMPORT_OR_EXPORT gsoap_eml2_1::eml21__LengthUom getPerforationHistoryMdUnit(unsigned int historyIndex,
387  unsigned int perforationIndex) const;
388 
398  DLL_IMPORT_OR_EXPORT std::string getPerforationHistoryMdUnitAsString(unsigned int historyIndex,
399  unsigned int perforationIndex) const;
400 
409  DLL_IMPORT_OR_EXPORT bool hasPerforationHistoryTopMd(unsigned int historyIndex,
410  unsigned int perforationIndex) const;
411 
420  DLL_IMPORT_OR_EXPORT double getPerforationHistoryTopMd(unsigned int historyIndex,
421  unsigned int perforationIndex) const;
422 
433  DLL_IMPORT_OR_EXPORT void setPerforationHistoryTopMd(unsigned int historyIndex,
434  unsigned int perforationIndex,
435  const std::string & datum,
436  gsoap_eml2_1::eml21__LengthUom MdUnit,
437  double TopMd);
438 
447  DLL_IMPORT_OR_EXPORT bool hasPerforationHistoryBaseMd(unsigned int historyIndex,
448  unsigned int perforationIndex) const;
449 
458  DLL_IMPORT_OR_EXPORT double getPerforationHistoryBaseMd(unsigned int historyIndex,
459  unsigned int perforationIndex) const;
460 
471  DLL_IMPORT_OR_EXPORT void setPerforationHistoryBaseMd(unsigned int historyIndex,
472  unsigned int perforationIndex,
473  const std::string & datum,
474  gsoap_eml2_1::eml21__LengthUom MdUnit,
475  double BaseMd);
476 
485  DLL_IMPORT_OR_EXPORT bool hasPerforationHistoryComment(unsigned int historyIndex,
486  unsigned int perforationIndex) const;
487 
496  DLL_IMPORT_OR_EXPORT std::string getPerforationHistoryComment(unsigned int historyIndex,
497  unsigned int perforationIndex) const;
498 
506  DLL_IMPORT_OR_EXPORT void setPerforationHistoryComment(unsigned int historyIndex,
507  unsigned int perforationIndex,
508  const std::string & comment);
509 
515  DLL_IMPORT_OR_EXPORT static const char* XML_TAG;
516 
522  DLL_IMPORT_OR_EXPORT virtual std::string getXmlTag() const { return XML_TAG; }
523 
528 
529  private:
530 
538  gsoap_eml2_1::witsml20__PerforationSetInterval* getPerforation(unsigned int index) const;
539 
548  gsoap_eml2_1::witsml20__PerforationStatusHistory* getPerforationHistoryEntry(unsigned int index,
549  unsigned int perforationIndex) const;
550  };
551 }
Definition: WellCompletion.h:30
Definition: WellboreCompletion.h:27
void setPerforationHistoryComment(unsigned int historyIndex, unsigned int perforationIndex, const std::string &comment)
class WellCompletion * getWellCompletion() const
std::string getPerforationHistoryStatusToString(unsigned int historyIndex, unsigned int perforationIndex) const
void setPerforationHistoryStartDate(unsigned int historyIndex, unsigned int perforationIndex, time_t startDate) const
std::string getPerforationHistoryMdUnitAsString(unsigned int historyIndex, unsigned int perforationIndex) const
void setWellCompletion(class WellCompletion *wellCompletion)
virtual std::string getXmlTag() const
Definition: WellboreCompletion.h:522
gsoap_eml2_1::eml21__LengthUom getPerforationHistoryMdUnit(unsigned int historyIndex, unsigned int perforationIndex) const
void setPerforationHistoryStatus(unsigned int historyIndex, unsigned int perforationIndex, gsoap_eml2_1::witsml20__PerforationStatus perforationStatus)
void setPerforationHistoryTopMd(unsigned int historyIndex, unsigned int perforationIndex, const std::string &datum, gsoap_eml2_1::eml21__LengthUom MdUnit, double TopMd)
bool hasPerforationBaseMd(unsigned int index) const
unsigned int getPerforationCount() const
double getPerforationHistoryBaseMd(unsigned int historyIndex, unsigned int perforationIndex) const
static const char * XML_TAG
Definition: WellboreCompletion.h:515
common::DataObjectReference getWellCompletionDor() const
bool hasPerforationHistoryTopMd(unsigned int historyIndex, unsigned int perforationIndex) const
WellboreCompletion(class Wellbore *witsmlWellbore, class WellCompletion *wellCompletion, const std::string &guid, const std::string &title, const std::string &wellCompletionName)
std::string getPerforationUid(unsigned int index) const
void pushBackPerforationHistory(unsigned int index, gsoap_eml2_1::witsml20__PerforationStatus perforationStatus, time_t startDate, const std::string &guid="")
double getPerforationHistoryTopMd(unsigned int historyIndex, unsigned int perforationIndex) const
void setWellbore(class Wellbore *witsmlWellbore)
bool hasPerforationMdUnit(unsigned int index) const
bool hasPerforationHistoryComment(unsigned int historyIndex, unsigned int perforationIndex) const
std::string getPerforationMdUnitAsString(unsigned int index) const
double getPerforationTopMd(unsigned int index) const
bool hasPerforationHistoryStartDate(unsigned int historyIndex, unsigned int perforationIndex) const
void setPerforationHistoryBaseMd(unsigned int historyIndex, unsigned int perforationIndex, const std::string &datum, gsoap_eml2_1::eml21__LengthUom MdUnit, double BaseMd)
time_t getPerforationHistoryStartDate(unsigned int historyIndex, unsigned int perforationIndex) const
gsoap_eml2_1::eml21__LengthUom getPerforationMdUnit(unsigned int index) const
time_t getPerforationHistoryEndDate(unsigned int historyIndex, unsigned int perforationIndex) const
bool hasPerforationHistoryEndDate(unsigned int historyIndex, unsigned int perforationIndex) const
bool hasPerforationTopMd(unsigned int index) const
unsigned int getPerforationHistoryCount(unsigned int index) const
WellboreCompletion(gsoap_eml2_1::witsml20__WellboreCompletion *fromGsoap)
Definition: WellboreCompletion.h:59
void pushBackPerforationHistory(unsigned int index, const std::string &guid="")
std::string getPerforationMdDatum(unsigned int index) const
bool hasPerforationHistoryStatus(unsigned int historyIndex, unsigned int perforationIndex) const
bool hasPerforationHistoryMdUnit(unsigned int historyIndex, unsigned int perforationIndex) const
bool hasPerforationHistoryMdDatum(unsigned int historyIndex, unsigned int perforationIndex) const
double getPerforationBaseMd(unsigned int index) const
common::DataObjectReference getWellboreDor() const
void pushBackPerforation(const std::string &datum, gsoap_eml2_1::eml21__LengthUom MdUnit, double TopMd, double BaseMd, const std::string &guid="")
std::string getPerforationHistoryMdDatum(unsigned int historyIndex, unsigned int perforationIndex) const
std::string getPerforationHistoryComment(unsigned int historyIndex, unsigned int perforationIndex) const
WellboreCompletion(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: WellboreCompletion.h:37
bool hasPerforationHistoryBaseMd(unsigned int historyIndex, unsigned int perforationIndex) const
void setPerforationHistoryEndDate(unsigned int historyIndex, unsigned int perforationIndex, time_t endDate) const
gsoap_eml2_1::witsml20__PerforationStatus getPerforationHistoryStatus(unsigned int historyIndex, unsigned int perforationIndex) const
bool hasPerforationMdDatum(unsigned int index) const
Definition: Wellbore.h:41
Definition: WellboreObject.h:32