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
ErrorTerm.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
10 http://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 <vector>
22#include <string>
23
24#include "ErrorTermDictionary.h"
25#include "ToolErrorModel.h"
26
27namespace WITSML2_1_NS
28{
29 class ErrorTerm : public COMMON_NS::AbstractObject
30 {
31 public:
32
36 ErrorTerm(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) :
37 COMMON_NS::AbstractObject(partialObject) {}
38
43 ErrorTerm(COMMON_NS::DataObjectRepository * repo,
44 const std::string & guid,
45 const std::string & title,
46 gsoap_eml2_3::witsml21__ErrorPropagationMode propagationMode,
47 class WeightingFunction* weightingFunction);
48
52 ErrorTerm(gsoap_eml2_3::witsml21__ErrorTerm* fromGsoap) : COMMON_NS::AbstractObject(fromGsoap) {}
53
58
59 DLL_IMPORT_OR_EXPORT bool isTopLevelElement() const;
60
61 gsoap_eml2_3::eml23__DataObjectReference* getWeightingFunctionDor() const;
62 DLL_IMPORT_OR_EXPORT class WeightingFunction* getWeightingFunction() const;
63 DLL_IMPORT_OR_EXPORT void setWeightingFunction(class WeightingFunction* weightingFunction);
64
65 void loadTargetRelationships();
66
67 DLL_IMPORT_OR_EXPORT static const char* XML_TAG;
68 DLL_IMPORT_OR_EXPORT virtual std::string getXmlTag() const {return XML_TAG;}
69
73 DLL_IMPORT_OR_EXPORT static constexpr char const* XML_NS = "witsml21";
74
78 DLL_IMPORT_OR_EXPORT std::string getXmlNamespace() const final { return XML_NS; }
79 };
80}
81
Definition ErrorTerm.h:30
ErrorTerm(common ::DataObjectRepository *repo, const std::string &guid, const std::string &title, gsoap_eml2_3::witsml21__ErrorPropagationMode propagationMode, class WeightingFunction *weightingFunction)
std::string getXmlNamespace() const final
Definition ErrorTerm.h:78
ErrorTerm(gsoap_eml2_3::witsml21__ErrorTerm *fromGsoap)
Definition ErrorTerm.h:52
ErrorTerm(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition ErrorTerm.h:36
~ErrorTerm()
Definition ErrorTerm.h:57
Definition WeightingFunction.h:30