21#include "../witsml2/WellboreObject.h"
25#include "../eml2/PropertyKind.h"
48 DLL_IMPORT_OR_EXPORT
ChannelMetaDataObject(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : WellboreObject(partialObject) {}
58 ChannelMetaDataObject(gsoap_eml2_3::eml23__AbstractObject* fromGsoap) : WITSML2_NS::WellboreObject(fromGsoap) {}
70 return COMMON_NS::DataObjectReference(
static_cast<T*
>(this->gsoapProxy2_3)->
Wellbore);
82 if (witsmlWellbore ==
nullptr) {
83 throw std::invalid_argument(
"Cannot set a null witsml wellbore to a witsml trajectory");
86 static_cast<T*
>(this->gsoapProxy2_3)->
Wellbore = witsmlWellbore->newEml23Reference();
88 getRepository()->addRelationship(
this, witsmlWellbore);
98#define GETTER_AND_SETTER_GENERIC_OPTIONAL_ATTRIBUTE_TEMPLATE(attributeDatatype, attributeName, constructor)\
99 DLL_IMPORT_OR_EXPORT virtual void set##attributeName(const attributeDatatype & attributeName) = 0;\
100 std::string get##attributeName() const {\
101 if (static_cast<T*>(this->gsoapProxy2_3)->attributeName == nullptr) { throw std::invalid_argument("The attribute does not exist"); }\
102 return *static_cast<T*>(this->gsoapProxy2_3)->attributeName;\
104 bool has##attributeName() const { return static_cast<T*>(this->gsoapProxy2_3)->attributeName != nullptr; }
106 GETTER_AND_SETTER_GENERIC_OPTIONAL_ATTRIBUTE_TEMPLATE(std::string, RunNumber, gsoap_eml2_3::soap_new_std__string)
107 GETTER_AND_SETTER_GENERIC_OPTIONAL_ATTRIBUTE_TEMPLATE(std::string, PassNumber, gsoap_eml2_3::soap_new_std__string)
A wellbore represents the path from surface to a unique bottomhole location.
Definition Wellbore.h:46
Definition WellboreObject.h:32
A wellbore represents the path from surface to a unique bottomhole location.
Definition Wellbore.h:29