Fesapi  2.0.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
CategoricalProperty.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 "AbstractValuesProperty.h"
22 
23 namespace 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 
93  CategoricalProperty(gsoap_eml2_3::_resqml22__CategoricalProperty* fromGsoap) : AbstractValuesProperty(fromGsoap) {}
94 
96  void loadTargetRelationships() final;
97  };
98 }
Proxy class for an abstract values property.
Definition: AbstractValuesProperty.h:28
Proxy class for a categorical property. It contains discrete integers. This type of property is assoc...
Definition: CategoricalProperty.h:35
StringTableLookup * getStringLookup() const
Gets the string lookup which is associated to this categorical property values.
virtual common::DataObjectReference getLookupDor() const =0
virtual ~CategoricalProperty()=default
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