Fesapi  2.0.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
PropertyKind.h
1 /*-----------------------------------------------------------------------
2 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 "License"; you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
9 
10  http://www.apache.org/licenses/LICENSE-2.0
11 
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
17 under the License.
18 -----------------------------------------------------------------------*/
19 #pragma once
20 
21 #include "../eml2/PropertyKind.h"
22 
23 namespace 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_1::eml21__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();
108 
112  DLL_IMPORT_OR_EXPORT static const char* XML_NS;
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_1::eml21__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