Fesapi 2.3.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
PropertySet.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 "../resqml2/PropertySet.h"
22
23namespace RESQML2_2_NS
24{
30 class PropertySet final : public RESQML2_NS::PropertySet
31 {
32 public:
33
41 DLL_IMPORT_OR_EXPORT PropertySet(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : RESQML2_NS::PropertySet(partialObject) {}
42
59 PropertySet(COMMON_NS::DataObjectRepository* repo, const std::string & guid, const std::string & title,
60 bool hasMultipleRealizations, bool hasSinglePropertyKind, gsoap_eml2_3::resqml22__TimeSetKind timeSetKind);
61
67 PropertySet(gsoap_eml2_3::_resqml22__PropertySet* fromGsoap) : RESQML2_NS::PropertySet(fromGsoap) {}
68
70 ~PropertySet() = default;
71
72 DLL_IMPORT_OR_EXPORT bool hasMultipleRealizations() const final;
73
74 DLL_IMPORT_OR_EXPORT bool hasSinglePropertyKind() const final;
75
76 DLL_IMPORT_OR_EXPORT gsoap_eml2_3::resqml22__TimeSetKind getTimeSetKind() const final;
77
81 DLL_IMPORT_OR_EXPORT static const char* XML_NS;
82
86 DLL_IMPORT_OR_EXPORT std::string getXmlNamespace() const final { return XML_NS; }
87
88 private :
89
95 void setXmlParent(RESQML2_NS::PropertySet * parent);
96
97 COMMON_NS::DataObjectReference getParentDor() const;
98
104 void pushBackXmlProperty(RESQML2_NS::AbstractProperty * prop);
105
106 std::vector<COMMON_NS::DataObjectReference> getAllPropertiesDors() const;
107 };
108}
Definition: PropertySet.h:31
PropertySet(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: PropertySet.h:41
bool hasMultipleRealizations() const final
PropertySet(common::DataObjectRepository *repo, const std::string &guid, const std::string &title, bool hasMultipleRealizations, bool hasSinglePropertyKind, gsoap_eml2_3::resqml22__TimeSetKind timeSetKind)
Creates an instance of this class in a gsoap context.
PropertySet(gsoap_eml2_3::_resqml22__PropertySet *fromGsoap)
Definition: PropertySet.h:67