Fesapi 2.10.1.0
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
78 PropertyKind(COMMON_NS::DataObjectRepository* repo, const std::string& guid, const std::string& title,
79 const std::string& quantityClass, bool isAbstract = false, EML2_NS::PropertyKind* parentPropertyKind = nullptr);
80
86 PropertyKind(gsoap_eml2_3::eml23__PropertyKind* fromGsoap) :EML2_NS::PropertyKind(fromGsoap) {}
87
89 ~PropertyKind() = default;
90
96 DLL_IMPORT_OR_EXPORT bool isAbstract() const;
97
103 DLL_IMPORT_OR_EXPORT bool isParentPartial() const;
104
108 DLL_IMPORT_OR_EXPORT std::string getBaseUomAsString() const final;
109
115 DLL_IMPORT_OR_EXPORT std::string getParentAsString() const final;
116
125 COMMON_NS::DataObjectReference getParentPropertyKindDor() const final;
126
128 void loadTargetRelationships() final;
129
133 DLL_IMPORT_OR_EXPORT static constexpr char const* XML_NS = "eml23";
134
138 DLL_IMPORT_OR_EXPORT std::string getXmlNamespace() const final { return XML_NS; }
139
140 private:
141
147 void setXmlParentPropertyKind(EML2_NS::PropertyKind* parentPropertyKind);
148
149 void init(COMMON_NS::DataObjectRepository* repo, const std::string& guid, const std::string& title,
150 const std::string& quantityClass, bool isAbstract = false, EML2_NS::PropertyKind* parentPropertyKind = nullptr);
151 };
152}
Definition PropertyKind.h:27
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)
bool isParentPartial() const
bool isAbstract() const
PropertyKind(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition PropertyKind.h:37
PropertyKind(gsoap_eml2_3::eml23__PropertyKind *fromGsoap)
Definition PropertyKind.h:86
PropertyKind(common::DataObjectRepository *repo, const std::string &guid, const std::string &title, const std::string &quantityClass, bool isAbstract=false, eml2::PropertyKind *parentPropertyKind=nullptr)
std::string getBaseUomAsString() const final