Fesapi  2.0.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
CommentProperty.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 "../resqml2/CommentProperty.h"
22 
23 #include <limits>
24 
25 namespace RESQML2_0_1_NS
26 {
28  class CommentProperty final : public RESQML2_NS::CommentProperty
29  {
30  public:
31 
37  DLL_IMPORT_OR_EXPORT CommentProperty(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : RESQML2_NS::CommentProperty(partialObject) {}
38 
58  CommentProperty(RESQML2_NS::AbstractRepresentation * rep, const std::string & guid, const std::string & title,
59  unsigned int dimension, gsoap_eml2_3::resqml22__IndexableElement attachmentKind, gsoap_resqml2_0_1::resqml20__ResqmlPropertyKind energisticsPropertyKind);
60 
79  CommentProperty(RESQML2_NS::AbstractRepresentation * rep, const std::string & guid, const std::string & title,
80  unsigned int dimension, gsoap_eml2_3::resqml22__IndexableElement attachmentKind, EML2_NS::PropertyKind * localPropKind);
81 
87  CommentProperty(gsoap_resqml2_0_1::_resqml20__CommentProperty* fromGsoap): RESQML2_NS::CommentProperty(fromGsoap) {}
88 
90  ~CommentProperty() = default;
91 
92  DLL_IMPORT_OR_EXPORT std::string pushBackRefToExistingDataset(EML2_NS::AbstractHdfProxy* hdfProxy, const std::string & datasetName = "") final;
93 
102  DLL_IMPORT_OR_EXPORT gsoap_resqml2_0_1::resqml20__ResqmlPropertyKind getEnergisticsPropertyKind() const;
103 
104  bool validatePropertyKindAssociation(EML2_NS::PropertyKind* pk) final;
105 
106  bool validatePropertyKindAssociation(gsoap_resqml2_0_1::resqml20__ResqmlPropertyKind pk) final;
107 
111  DLL_IMPORT_OR_EXPORT static const char* XML_NS;
112 
116  DLL_IMPORT_OR_EXPORT std::string getXmlNamespace() const final { return XML_NS; }
117 
118  private:
119  EML2_NS::AbstractHdfProxy* getValuesHdfProxyAndDatasetPathOfPatch(unsigned int patchIndex, std::string & datasetPath) const;
120  };
121 }
Definition: CommentProperty.h:29
CommentProperty(resqml2::AbstractRepresentation *rep, const std::string &guid, const std::string &title, unsigned int dimension, gsoap_eml2_3::resqml22__IndexableElement attachmentKind, gsoap_resqml2_0_1::resqml20__ResqmlPropertyKind energisticsPropertyKind)
CommentProperty(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: CommentProperty.h:37
CommentProperty(gsoap_resqml2_0_1::_resqml20__CommentProperty *fromGsoap)
Definition: CommentProperty.h:87
CommentProperty(resqml2::AbstractRepresentation *rep, const std::string &guid, const std::string &title, unsigned int dimension, gsoap_eml2_3::resqml22__IndexableElement attachmentKind, eml2::PropertyKind *localPropKind)
std::string pushBackRefToExistingDataset(eml2::AbstractHdfProxy *hdfProxy, const std::string &datasetName="") final
Definition: PropertyKind.h:28