Fesapi 2.13.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
Loading...
Searching...
No Matches
LocalEngineering2dCrs.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 "../common/AbstractObject.h"
22
23namespace EML2_3_NS
24{
26 class LocalEngineering2dCrs final : public COMMON_NS::AbstractObject
27 {
28 public:
29
37 DLL_IMPORT_OR_EXPORT LocalEngineering2dCrs(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : COMMON_NS::AbstractObject(partialObject) {}
38
54 LocalEngineering2dCrs(COMMON_NS::DataObjectRepository* repo, const std::string& guid, const std::string& title,
55 uint64_t projectedEpsgCode,
56 double originOrdinal1, double originOrdinal2, gsoap_eml2_3::eml23__LengthUom projectedUom,
57 double azimuth, gsoap_eml2_3::eml23__PlaneAngleUom azimuthUom, gsoap_eml2_3::eml23__NorthReferenceKind azimuthReference,
58 gsoap_eml2_3::eml23__AxisOrder2d axisOrder);
59
76 LocalEngineering2dCrs(COMMON_NS::DataObjectRepository* repo, const std::string& guid, const std::string& title,
77 std::string projectedDefinition,
78 double originOrdinal1, double originOrdinal2, gsoap_eml2_3::eml23__LengthUom projectedUom,
79 double azimuth, gsoap_eml2_3::eml23__PlaneAngleUom azimuthUom, gsoap_eml2_3::eml23__NorthReferenceKind azimuthReference,
80 gsoap_eml2_3::eml23__AxisOrder2d axisOrder);
81
87 LocalEngineering2dCrs(gsoap_eml2_3::_eml23__LocalEngineering2dCrs* fromGsoap): COMMON_NS::AbstractObject(fromGsoap) {}
88
91
99 DLL_IMPORT_OR_EXPORT double getOriginOrdinal1() const;
100
108 DLL_IMPORT_OR_EXPORT double getOriginOrdinal2() const;
109
115 DLL_IMPORT_OR_EXPORT double getAzimuth() const;
116
122 DLL_IMPORT_OR_EXPORT std::string getAzimuthUomAsString() const;
123
129 DLL_IMPORT_OR_EXPORT bool isProjectedCrsDefinedWithEpsg() const;
130
136 DLL_IMPORT_OR_EXPORT bool isProjectedCrsDefinedWithWkt() const;
137
143 DLL_IMPORT_OR_EXPORT bool isProjectedCrsUnknown() const;
144
152 DLL_IMPORT_OR_EXPORT std::string getProjectedCrsUnknownReason() const;
153
161 DLL_IMPORT_OR_EXPORT std::string getProjectedCrsWkt() const;
162
170 DLL_IMPORT_OR_EXPORT int64_t getProjectedCrsEpsgCode() const;
171
177 DLL_IMPORT_OR_EXPORT std::string getProjectedCrsUnitAsString() const;
178
184 DLL_IMPORT_OR_EXPORT gsoap_eml2_3::eml23__AxisOrder2d getAxisOrder() const;
185
193 DLL_IMPORT_OR_EXPORT void setAxisOrder(gsoap_eml2_3::eml23__AxisOrder2d axisOrder) const;
194
198 DLL_IMPORT_OR_EXPORT static constexpr char const* XML_NS = "eml23";
199
203 DLL_IMPORT_OR_EXPORT std::string getXmlNamespace() const final { return XML_NS; }
204
206 DLL_IMPORT_OR_EXPORT static constexpr char const* XML_TAG = "LocalEngineering2dCrs";
207
208 DLL_IMPORT_OR_EXPORT virtual std::string getXmlTag() const final { return XML_TAG; }
209
211
212 private:
213 void init(gsoap_eml2_3::eml23__LocalEngineering2dCrs* local2dCrs, const std::string& guid, const std::string& title,
214 double originOrdinal1, double originOrdinal2, gsoap_eml2_3::eml23__LengthUom projectedUom,
215 double azimuth, gsoap_eml2_3::eml23__PlaneAngleUom azimuthUom, gsoap_eml2_3::eml23__NorthReferenceKind azimuthReference,
216 gsoap_eml2_3::eml23__AxisOrder2d axisOrder);
217 };
218}
bool isProjectedCrsDefinedWithWkt() const
std::string getProjectedCrsUnknownReason() const
int64_t getProjectedCrsEpsgCode() const
LocalEngineering2dCrs(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition LocalEngineering2dCrs.h:37
double getOriginOrdinal1() const
LocalEngineering2dCrs(common::DataObjectRepository *repo, const std::string &guid, const std::string &title, uint64_t projectedEpsgCode, double originOrdinal1, double originOrdinal2, gsoap_eml2_3::eml23__LengthUom projectedUom, double azimuth, gsoap_eml2_3::eml23__PlaneAngleUom azimuthUom, gsoap_eml2_3::eml23__NorthReferenceKind azimuthReference, gsoap_eml2_3::eml23__AxisOrder2d axisOrder)
void setAxisOrder(gsoap_eml2_3::eml23__AxisOrder2d axisOrder) const
void loadTargetRelationships() final
Definition LocalEngineering2dCrs.h:210
virtual std::string getXmlTag() const final
Definition LocalEngineering2dCrs.h:208
LocalEngineering2dCrs(gsoap_eml2_3::_eml23__LocalEngineering2dCrs *fromGsoap)
Definition LocalEngineering2dCrs.h:87
gsoap_eml2_3::eml23__AxisOrder2d getAxisOrder() const
LocalEngineering2dCrs(common::DataObjectRepository *repo, const std::string &guid, const std::string &title, std::string projectedDefinition, double originOrdinal1, double originOrdinal2, gsoap_eml2_3::eml23__LengthUom projectedUom, double azimuth, gsoap_eml2_3::eml23__PlaneAngleUom azimuthUom, gsoap_eml2_3::eml23__NorthReferenceKind azimuthReference, gsoap_eml2_3::eml23__AxisOrder2d axisOrder)
std::string getAzimuthUomAsString() const
static constexpr char const * XML_NS
Definition LocalEngineering2dCrs.h:198
std::string getXmlNamespace() const final
Definition LocalEngineering2dCrs.h:203
std::string getProjectedCrsUnitAsString() const
double getOriginOrdinal2() const
static constexpr char const * XML_TAG
Definition LocalEngineering2dCrs.h:206
bool isProjectedCrsDefinedWithEpsg() const
std::string getProjectedCrsWkt() const