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
CategoricalProperty.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 "AbstractValuesProperty.h"
22
23namespace RESQML2_NS
24{
25 class DoubleTableLookup;
26 class StringTableLookup;
27
35 {
36 public:
37
39 virtual ~CategoricalProperty() = default;
40
47 DLL_IMPORT_OR_EXPORT StringTableLookup* getStringLookup() const;
48
54 DLL_IMPORT_OR_EXPORT virtual COMMON_NS::DataObjectReference getLookupDor() const = 0;
55
62 DLL_IMPORT_OR_EXPORT DoubleTableLookup* getDoubleLookup() const;
63
65 DLL_IMPORT_OR_EXPORT static const char* XML_TAG;
66
67 DLL_IMPORT_OR_EXPORT virtual std::string getXmlTag() const final { return XML_TAG; }
68
69 protected:
70
76 DLL_IMPORT_OR_EXPORT CategoricalProperty(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : AbstractValuesProperty(partialObject) {}
77
79 CategoricalProperty() {}
80
86 CategoricalProperty(gsoap_resqml2_0_1::_resqml20__CategoricalProperty* fromGsoap) : AbstractValuesProperty(fromGsoap) {}
87
89 void loadTargetRelationships() final;
90 };
91}
Proxy class for an abstract values property.
Definition AbstractValuesProperty.h:27
Proxy class for a categorical property. It contains discrete integers. This type of property is assoc...
Definition CategoricalProperty.h:35
virtual common::DataObjectReference getLookupDor() const =0
virtual ~CategoricalProperty()=default
StringTableLookup * getStringLookup() const
Gets the string lookup which is associated to this categorical property values.
virtual std::string getXmlTag() const final
Definition CategoricalProperty.h:67
static const char * XML_TAG
Definition CategoricalProperty.h:65
DoubleTableLookup * getDoubleLookup() const
Gets the double lookup which is associated to this categorical property values.
Defines a function for table lookups. For example, used for linear interpolation, such as PVT.
Definition DoubleTableLookup.h:33
Defines an integer (key) to string (value) lookup table, for example, stores facies properties,...
Definition StringTableLookup.h:32