Fesapi 2.9.0.1
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
Loading...
Searching...
No Matches
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_1_NS
24{
26 class Log : public ChannelMetaDataObject<gsoap_eml2_3::witsml21__Log>
27 {
28 public:
29
37 DLL_IMPORT_OR_EXPORT Log(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : ChannelMetaDataObject(partialObject) {}
38
49 Log(WITSML2_NS::Wellbore* witsmlWellbore,
50 const std::string & guid,
51 const std::string & title,
52 bool isActive);
53
59 Log(gsoap_eml2_3::witsml21__Log* fromGsoap) : ChannelMetaDataObject(fromGsoap) {}
60
62 ~Log() = default;
63
69 DLL_IMPORT_OR_EXPORT void pushBackChannelSet(class ChannelSet * channelSet);
70
76 DLL_IMPORT_OR_EXPORT std::vector<class ChannelSet*> getChannelSets() const;
77
84#define SETTER_GENERIC_OPTIONAL_ATTRIBUTE(attributeDatatype, attributeName)\
85 DLL_IMPORT_OR_EXPORT void set##attributeName(const attributeDatatype & attributeName);
86
87 SETTER_GENERIC_OPTIONAL_ATTRIBUTE(std::string, RunNumber)
88 SETTER_GENERIC_OPTIONAL_ATTRIBUTE(std::string, PassNumber)
89 SETTER_GENERIC_OPTIONAL_ATTRIBUTE(std::string, LoggingToolClassLongName)
90
91
96 DLL_IMPORT_OR_EXPORT static const char* XML_TAG;
97
103 DLL_IMPORT_OR_EXPORT virtual std::string getXmlTag() const { return XML_TAG; }
104
107
111 DLL_IMPORT_OR_EXPORT static constexpr char const* XML_NS = "witsml21";
112
116 DLL_IMPORT_OR_EXPORT std::string getXmlNamespace() const final { return XML_NS; }
117 };
118}
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
std::vector< class ChannelSet * > getChannelSets() const
void pushBackChannelSet(class ChannelSet *channelSet)
void loadTargetRelationships() final
Log(gsoap_eml2_3::witsml21__Log *fromGsoap)
Definition Log.h:59
Log(WITSML2_NS::Wellbore *witsmlWellbore, const std::string &guid, const std::string &title, bool isActive)
Constructor.
~Log()=default
Log(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition Log.h:37