Fesapi  2.0.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
Log.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 "ChannelMetaDataObject.h"
22 
23 namespace 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(class 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  };
110 }
Definition: ChannelMetaDataObject.h:38
Definition: ChannelSet.h:30
Definition: Log.h:27
void loadTargetRelationships()
std::vector< class ChannelSet * > getChannelSets() const
Log(class Wellbore *witsmlWellbore, const std::string &guid, const std::string &title)
Constructor.
void pushBackChannelSet(class ChannelSet *channelSet)
~Log()=default
Log(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: Log.h:37
Log(gsoap_eml2_1::witsml20__Log *fromGsoap)
Definition: Log.h:57
Definition: Wellbore.h:41