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
ToolErrorModel.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#include <limits>
24
25#include "ToolErrorModelDictionary.h"
26
27namespace WITSML2_1_NS
28{
29 class ToolErrorModel : public COMMON_NS::AbstractObject
30 {
31 private :
32 gsoap_eml2_3::witsml21__GyroToolConfiguration* getOrCreateGyroToolConfig();
33
34 public:
35
39 ToolErrorModel(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) :
40 COMMON_NS::AbstractObject(partialObject) {}
41
46 ToolErrorModel(COMMON_NS::DataObjectRepository * repo,
47 const std::string & guid,
48 const std::string & title,
49 gsoap_eml2_3::witsml21__MisalignmentMode misalignmentMode);
50
54 ToolErrorModel(gsoap_eml2_3::witsml21__ToolErrorModel* fromGsoap) : AbstractObject(fromGsoap) {}
55
60
61 DLL_IMPORT_OR_EXPORT bool isTopLevelElement() const;
62
63 gsoap_eml2_3::eml23__DataObjectReference* getErrorTermDor(unsigned long index) const;
64 DLL_IMPORT_OR_EXPORT std::string getErrorTermUuid(unsigned long index) const;
65 DLL_IMPORT_OR_EXPORT std::vector<class ErrorTerm*> getErrorTermSet() const;
66 DLL_IMPORT_OR_EXPORT void pushBackErrorTerm(class ErrorTerm* errorTerm, double magnitude, gsoap_eml2_3::eml23__UomEnum uom);
67
68 DLL_IMPORT_OR_EXPORT void setApplication(const std::string & application);
69 DLL_IMPORT_OR_EXPORT void setSource(const std::string & source);
70 DLL_IMPORT_OR_EXPORT void setToolKind(gsoap_eml2_3::witsml21__ToolKind toolKind);
71 DLL_IMPORT_OR_EXPORT void pushBackToolSubKind(gsoap_eml2_3::witsml21__ToolSubKind toolSubKind);
72 DLL_IMPORT_OR_EXPORT void pushBackOperatingCondition(gsoap_eml2_3::witsml21__OperatingCondition operatingCondition);
73 DLL_IMPORT_OR_EXPORT void setSurveyRunDateStart(time_t surveyRunDateStart);
74 DLL_IMPORT_OR_EXPORT void setSurveyRunDateEnd(time_t surveyRunDateEnd);
75 DLL_IMPORT_OR_EXPORT void pushBackCorrectionConsidered(gsoap_eml2_3::witsml21__CorrectionConsidered correctionConsidered);
76
77 DLL_IMPORT_OR_EXPORT void setReplacedToolErrorModel(ToolErrorModel* replaces);
78
85 DLL_IMPORT_OR_EXPORT void setAuthorization(const std::string & approvalAuthority,
86 const std::string & approvedBy, time_t approvedOn,
87 const std::string & checkedBy, time_t checkedOn,
88 const std::string & revisionComment, time_t revisionDate,
89 gsoap_eml2_3::witsml21__AuthorizationStatus* status);
90
91 DLL_IMPORT_OR_EXPORT void pushBackInclinationRange(double start, bool startInclusive, double end, bool endInclusive, gsoap_eml2_3::eml23__PlaneAngleUom uom, const std::string & comment = std::string());
92 DLL_IMPORT_OR_EXPORT void pushBackInclinationRange(double start, bool startInclusive, double end, bool endInclusive, gsoap_eml2_3::eml23__PlaneAngleUom uom, double horizontalEastWestMaxValue, gsoap_eml2_3::eml23__PlaneAngleUom horizontalEastWestMaxValueUom, const std::string & comment = std::string());
93
94 DLL_IMPORT_OR_EXPORT void setXyzAccelerometer();
95 DLL_IMPORT_OR_EXPORT void setXyAccelerometer(double cantAngle, gsoap_eml2_3::eml23__PlaneAngleUom cantAngleUom, bool switching);
96
97 DLL_IMPORT_OR_EXPORT void setExternalReference(bool value);
98
99 DLL_IMPORT_OR_EXPORT void pushBackContinuousGyro(gsoap_eml2_3::witsml21__GyroAxisCombination axisCombination,
100 double start, bool startInclusive, double end, bool endInclusive, double initialization, gsoap_eml2_3::eml23__PlaneAngleUom rangeUom,
101 double noiseReductionFactor = std::numeric_limits<double>::quiet_NaN(),
102 gsoap_eml2_3::eml23__LengthPerTimeUom speedUom = gsoap_eml2_3::eml23__LengthPerTimeUom::m_x002fs, double speed = std::numeric_limits<double>::quiet_NaN(),
103 gsoap_eml2_3::eml23__LengthUom reinitializationDistanceUom = gsoap_eml2_3::eml23__LengthUom::m, double reinitializationDistance = std::numeric_limits<double>::quiet_NaN());
104
105 DLL_IMPORT_OR_EXPORT void pushBackStationaryGyro(gsoap_eml2_3::witsml21__GyroAxisCombination axisCombination,
106 double start, bool startInclusive, double end, bool endInclusive, gsoap_eml2_3::eml23__PlaneAngleUom rangeUom);
107
108 void loadTargetRelationships();
109
110 DLL_IMPORT_OR_EXPORT static const char* XML_TAG;
111 DLL_IMPORT_OR_EXPORT virtual std::string getXmlTag() const {return XML_TAG;}
112
116 DLL_IMPORT_OR_EXPORT static constexpr char const* XML_NS = "witsml21";
117
121 DLL_IMPORT_OR_EXPORT std::string getXmlNamespace() const final { return XML_NS; }
122
123 };
124}
Definition ErrorTerm.h:30
Definition ToolErrorModel.h:30
ToolErrorModel(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition ToolErrorModel.h:39
void setAuthorization(const std::string &approvalAuthority, const std::string &approvedBy, time_t approvedOn, const std::string &checkedBy, time_t checkedOn, const std::string &revisionComment, time_t revisionDate, gsoap_eml2_3::witsml21__AuthorizationStatus *status)
ToolErrorModel(gsoap_eml2_3::witsml21__ToolErrorModel *fromGsoap)
Definition ToolErrorModel.h:54
std::string getXmlNamespace() const final
Definition ToolErrorModel.h:121
~ToolErrorModel()
Definition ToolErrorModel.h:59
ToolErrorModel(common ::DataObjectRepository *repo, const std::string &guid, const std::string &title, gsoap_eml2_3::witsml21__MisalignmentMode misalignmentMode)