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
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
135 DLL_IMPORT_OR_EXPORT time_t getDeprecationDate() const;
136
145 DLL_IMPORT_OR_EXPORT tm getDeprecationDateAsTimeStructure() const;
146
155 DLL_IMPORT_OR_EXPORT void setDeprecationDate(time_t deprecationDate);
156
163 DLL_IMPORT_OR_EXPORT void setDeprecationDate(const tm& lastUpdate);
164
167
171 DLL_IMPORT_OR_EXPORT static constexpr char const* XML_NS = "eml23";
172
176 DLL_IMPORT_OR_EXPORT std::string getXmlNamespace() const final { return XML_NS; }
177
178 private:
179
185 void setXmlParentPropertyKind(EML2_NS::PropertyKind* parentPropertyKind);
186
187 void init(COMMON_NS::DataObjectRepository* repo, const std::string& guid, const std::string& title,
188 const std::string& quantityClass, bool isAbstract = false, EML2_NS::PropertyKind* parentPropertyKind = nullptr);
189 };
190}
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
std::string getXmlNamespace() const final
Definition PropertyKind.h:176
PropertyKind(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition PropertyKind.h:37
common::DataObjectReference getParentPropertyKindDor() const final
tm getDeprecationDateAsTimeStructure() const
void setDeprecationDate(time_t deprecationDate)
std::string getParentAsString() const final
static constexpr char const * XML_NS
Definition PropertyKind.h:171
PropertyKind(gsoap_eml2_3::eml23__PropertyKind *fromGsoap)
Definition PropertyKind.h:86
time_t getDeprecationDate() const
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
void loadTargetRelationships() final