Fesapi 2.3.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
Log.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
10http://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 "ChannelMetaDataObject.h"
22
23namespace WITSML2_0_NS
24{
26 class Log : public ChannelMetaDataObject<gsoap_eml2_1::witsml20__Log>
27 {
28 public:
29
37 DLL_IMPORT_OR_EXPORT Log(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : ChannelMetaDataObject(partialObject) {}
38
48 Log(WITSML2_NS::Wellbore* witsmlWellbore,
49 const std::string & guid,
50 const std::string & title);
51
57 Log(gsoap_eml2_1::witsml20__Log* fromGsoap) : ChannelMetaDataObject(fromGsoap) {}
58
60 ~Log() = default;
61
67 DLL_IMPORT_OR_EXPORT void pushBackChannelSet(class ChannelSet * channelSet);
68
74 DLL_IMPORT_OR_EXPORT std::vector<class ChannelSet*> getChannelSets() const;
75
82#define SETTER_GENERIC_OPTIONAL_ATTRIBUTE(attributeDatatype, attributeName)\
83 DLL_IMPORT_OR_EXPORT void set##attributeName(const attributeDatatype & attributeName);
84
85 SETTER_GENERIC_OPTIONAL_ATTRIBUTE(std::string, TimeDepth)
86 SETTER_GENERIC_OPTIONAL_ATTRIBUTE(std::string, RunNumber)
87 SETTER_GENERIC_OPTIONAL_ATTRIBUTE(std::string, PassNumber)
88 SETTER_GENERIC_OPTIONAL_ATTRIBUTE(std::string, LoggingCompanyName)
89 SETTER_GENERIC_OPTIONAL_ATTRIBUTE(std::string, LoggingCompanyCode)
90 SETTER_GENERIC_OPTIONAL_ATTRIBUTE(std::string, ToolName)
91 SETTER_GENERIC_OPTIONAL_ATTRIBUTE(std::string, ToolClass)
92
93
98 DLL_IMPORT_OR_EXPORT static const char* XML_TAG;
99
105 DLL_IMPORT_OR_EXPORT virtual std::string getXmlTag() const { return XML_TAG; }
106
109
113 DLL_IMPORT_OR_EXPORT static constexpr char const* XML_NS = "witsml20";
114
118 DLL_IMPORT_OR_EXPORT std::string getXmlNamespace() const final { return XML_NS; }
119 };
120}
A wellbore represents the path from surface to a unique bottomhole location.
Definition: Wellbore.h:46
Definition: ChannelMetaDataObject.h:38
Definition: ChannelSet.h:30
Definition: Log.h:27
Log(WITSML2_NS::Wellbore *witsmlWellbore, const std::string &guid, const std::string &title)
Constructor.
void pushBackChannelSet(class ChannelSet *channelSet)
void loadTargetRelationships() final
~Log()=default
std::vector< class ChannelSet * > getChannelSets() const
Log(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: Log.h:37
Log(gsoap_eml2_1::witsml20__Log *fromGsoap)
Definition: Log.h:57