Fesapi 2.9.0.1
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
Loading...
Searching...
No Matches
StringTableLookup.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 "../common/AbstractObject.h"
22
23namespace RESQML2_NS
24{
31 class StringTableLookup : public COMMON_NS::AbstractObject
32 {
33 public:
34
40 DLL_IMPORT_OR_EXPORT StringTableLookup(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : COMMON_NS::AbstractObject(partialObject) {}
41
43 virtual ~StringTableLookup() = default;
44
52 DLL_IMPORT_OR_EXPORT virtual bool containsKey(int64_t key) = 0;
53
59 DLL_IMPORT_OR_EXPORT virtual uint64_t getItemCount() const = 0;
60
71 DLL_IMPORT_OR_EXPORT virtual int64_t getKeyAtIndex(uint64_t index) const = 0;
72
83 DLL_IMPORT_OR_EXPORT virtual std::string getStringValueAtIndex(uint64_t index) const = 0;
84
93 DLL_IMPORT_OR_EXPORT virtual std::string getStringValue(int64_t key) = 0;
94
102 DLL_IMPORT_OR_EXPORT virtual void addValue(const std::string & strValue, int64_t key) = 0;
103
111 DLL_IMPORT_OR_EXPORT virtual void setValue(const std::string & strValue, int64_t key) = 0;
112
119 DLL_IMPORT_OR_EXPORT virtual int64_t getMinimumValue() = 0;
120
127 DLL_IMPORT_OR_EXPORT virtual int64_t getMaximumValue() = 0;
128
134 DLL_IMPORT_OR_EXPORT virtual std::unordered_map<int64_t, std::string> getMap() const = 0;
135
137 DLL_IMPORT_OR_EXPORT static constexpr char const* XML_TAG = "StringTableLookup";
138
139 DLL_IMPORT_OR_EXPORT std::string getXmlTag() const final { return XML_TAG; }
140
141 protected:
142
145
151 StringTableLookup(gsoap_resqml2_0_1::_resqml20__StringTableLookup* fromGsoap) : AbstractObject(fromGsoap) {}
152
154 void loadTargetRelationships() final {}
155 };
156}
Defines an integer (key) to string (value) lookup table, for example, stores facies properties,...
Definition StringTableLookup.h:32
virtual std::string getStringValue(int64_t key)=0
StringTableLookup(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition StringTableLookup.h:40
virtual std::string getStringValueAtIndex(uint64_t index) const =0
virtual void setValue(const std::string &strValue, int64_t key)=0
virtual bool containsKey(int64_t key)=0
virtual int64_t getMaximumValue()=0
virtual ~StringTableLookup()=default
virtual int64_t getKeyAtIndex(uint64_t index) const =0
virtual int64_t getMinimumValue()=0
virtual uint64_t getItemCount() const =0
virtual void addValue(const std::string &strValue, int64_t key)=0
virtual std::unordered_map< int64_t, std::string > getMap() const =0