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
PropertyKind.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 "../eml2/PropertyKind.h"
22
23namespace EML2_3_NS
24{
26 class PropertyKind final : public EML2_NS::PropertyKind
27 {
28 public:
29
37 DLL_IMPORT_OR_EXPORT PropertyKind(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : EML2_NS::PropertyKind(partialObject) {}
38
57 PropertyKind(COMMON_NS::DataObjectRepository * repo, const std::string & guid, const std::string & title,
58 gsoap_eml2_3::eml23__QuantityClassKind quantityClass, bool isAbstract = false, EML2_NS::PropertyKind* parentPropertyKind = nullptr);
59
65 PropertyKind(gsoap_eml2_3::eml23__PropertyKind* fromGsoap) :EML2_NS::PropertyKind(fromGsoap) {}
66
68 ~PropertyKind() = default;
69
75 DLL_IMPORT_OR_EXPORT bool isAbstract() const;
76
82 DLL_IMPORT_OR_EXPORT bool isParentPartial() const;
83
87 DLL_IMPORT_OR_EXPORT std::string getBaseUomAsString() const final;
88
94 DLL_IMPORT_OR_EXPORT std::string getParentAsString() const final;
95
104 COMMON_NS::DataObjectReference getParentPropertyKindDor() const final;
105
107 void loadTargetRelationships() final;
108
112 DLL_IMPORT_OR_EXPORT static constexpr char const* XML_NS = "eml23";
113
117 DLL_IMPORT_OR_EXPORT std::string getXmlNamespace() const final { return XML_NS; }
118
119 private:
120
126 void setXmlParentPropertyKind(EML2_NS::PropertyKind* parentPropertyKind);
127 };
128}
Definition PropertyKind.h:27
bool isParentPartial() const
bool isAbstract() const
PropertyKind(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition PropertyKind.h:37
PropertyKind(common ::DataObjectRepository *repo, const std::string &guid, const std::string &title, gsoap_eml2_3::eml23__QuantityClassKind quantityClass, bool isAbstract=false, eml2 ::PropertyKind *parentPropertyKind=nullptr)
PropertyKind(gsoap_eml2_3::eml23__PropertyKind *fromGsoap)
Definition PropertyKind.h:65
std::string getBaseUomAsString() const final