21 #include "witsml1_4_1_1/AbstractObject.h" 23 #include "tools/TimeTools.h" 25 #include "witsml1_4_1_1/Trajectory.h" 26 #include "witsml1_4_1_1/Log.h" 27 #include "witsml1_4_1_1/FormationMarker.h" 29 #include "resqml2_0_1/WellboreFeature.h" 41 const std::string & guid,
42 const std::string & title);
45 const std::string & guid,
46 const std::string & title,
47 gsoap_witsml1_4_1_1::witsml1__WellStatus statusWellbore,
48 const bool & isActive,
49 gsoap_witsml1_4_1_1::witsml1__WellPurpose purposeWellbore,
50 gsoap_witsml1_4_1_1::witsml1__WellboreType typeWellbore,
51 const bool & achievedTD,
52 const std::string & sourceName,
53 const time_t & dTimCreation,
54 const time_t & dTimLastChange,
55 const std::string & comments
61 Wellbore(gsoap_witsml1_4_1_1::witsml1__obj_USCOREwellbores* fromGsoap):
AbstractObject(fromGsoap), well(nullptr), resqmlWellboreFeature(nullptr) {}
69 const std::string & guid,
70 const std::string & title);
73 const std::string & guid,
74 const std::string & title,
75 const std::string & sourceName,
76 const time_t & dTimCreation,
77 const time_t & dTimLastChange,
78 const std::string & comments);
81 const std::string & guid,
82 const std::string & title,
83 gsoap_witsml1_4_1_1::witsml1__LogIndexType indexType,
84 const std::string & indexCurve);
87 const std::string & guid,
88 const std::string & title,
89 gsoap_witsml1_4_1_1::witsml1__LogIndexType indexType,
90 const std::string & indexCurve,
91 const std::string & sourceName,
92 const time_t & dTimCreation,
93 const time_t & dTimLastChange,
94 const std::string & comments);
97 const std::string & guid,
98 const std::string & title,
99 const unsigned int & mdDatumIndex,
100 gsoap_witsml1_4_1_1::witsml1__MeasuredDepthUom mdUom,
101 const double & mdTopSample);
104 const std::string & guid,
105 const std::string & title,
106 const unsigned int & mdDatumIndex,
107 gsoap_witsml1_4_1_1::witsml1__MeasuredDepthUom mdUom,
108 const double & mdTopSample,
109 const unsigned int & tvdDatumIndex,
110 gsoap_witsml1_4_1_1::witsml1__WellVerticalCoordinateUom tvdUom,
111 const double & tvdTopSample,
112 gsoap_witsml1_4_1_1::witsml1__PlaneAngleUom dipUom,
114 gsoap_witsml1_4_1_1::witsml1__PlaneAngleUom dipDirectionUom,
115 const double & dipDirection,
116 const std::string & sourceName,
117 const time_t & dTimCreation,
118 const time_t & dTimLastChange,
119 const std::string & comments);
121 void setWell(
class Well* witsmlWell);
123 class Well* getWell() {
return well;}
127 soap* getGSoapContext()
const {
return collection->soap;}
129 const std::vector<Trajectory*>& getTrajectories()
const {
return trajectorySet;}
131 const std::vector<Log*>& getLogs()
const {
return logSet;}
133 const std::vector<FormationMarker*>& getFormationMarkers()
const {
return formationMarkerSet;}
135 const std::string & getTitle()
const {
return static_cast<gsoap_witsml1_4_1_1::witsml1__obj_USCOREwellbores*
>(collection)->wellbore[0]->name;}
137 std::string getUuid()
const {
return *
static_cast<gsoap_witsml1_4_1_1::witsml1__obj_USCOREwellbores*
>(collection)->wellbore[0]->uid;}
138 time_t getCreation()
const 140 if (static_cast<gsoap_witsml1_4_1_1::_witsml1__wellbores*>(collection)->wellbore[0]->commonData->dTimCreation)
141 return timeTools::timegm(static_cast<gsoap_witsml1_4_1_1::_witsml1__wellbores*>(collection)->wellbore[0]->commonData->dTimCreation);
145 time_t getLastUpdate()
const 147 if (static_cast<gsoap_witsml1_4_1_1::_witsml1__wellbores*>(collection)->wellbore[0]->commonData->dTimLastChange)
148 return timeTools::timegm(static_cast<gsoap_witsml1_4_1_1::_witsml1__wellbores*>(collection)->wellbore[0]->commonData->dTimLastChange);
153 void setShape(
const gsoap_witsml1_4_1_1::witsml1__WellboreShape & shape);
155 std::vector<epc::Relationship> getAllEpcRelationships()
const;
162 static const char* XML_TAG;
172 std::vector<Trajectory*> trajectorySet;
173 std::vector<Log*> logSet;
174 std::vector<FormationMarker*> formationMarkerSet;
176 friend void Trajectory::setWellbore(
Wellbore* witsmlWellbore);
177 friend void Log::setWellbore(
Wellbore* witsmlWellbore);
178 friend void FormationMarker::setWellbore(
Wellbore* witsmlWellbore);
179 friend void RESQML2_0_1_NS::WellboreFeature::setWitsmlWellbore(
Wellbore * wellbore);
Wellbore(gsoap_witsml1_4_1_1::witsml1__obj_USCOREwellbores *fromGsoap)
Definition: Wellbore.h:61
~Wellbore()
Definition: Wellbore.h:66
virtual std::string getXmlTag() const
Definition: Wellbore.h:163
Definition: Trajectory.h:29
Definition: EpcDocument.h:130
Definition: EpcDocument.h:154
Definition: WellboreFeature.h:30
Definition: AbstractObject.h:28
Definition: Wellbore.h:33