Fesapi  2.0.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
StringTableLookup.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 "../common/AbstractObject.h"
22 
23 namespace 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(long longValue) = 0;
53 
59  DLL_IMPORT_OR_EXPORT virtual unsigned int getItemCount() const = 0;
60 
71  DLL_IMPORT_OR_EXPORT virtual long getKeyAtIndex(unsigned int index) const = 0;
72 
83  DLL_IMPORT_OR_EXPORT virtual std::string getStringValueAtIndex(unsigned int index) const = 0;
84 
93  DLL_IMPORT_OR_EXPORT virtual std::string getStringValue(long longValue) = 0;
94 
102  DLL_IMPORT_OR_EXPORT virtual void addValue(const std::string & strValue, long longValue) = 0;
103 
111  DLL_IMPORT_OR_EXPORT virtual void setValue(const std::string & strValue, long longValue) = 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<long, std::string> getMap() const = 0;
135 
137  DLL_IMPORT_OR_EXPORT static const char* XML_TAG;
138 
139  DLL_IMPORT_OR_EXPORT std::string getXmlTag() const final { return XML_TAG; }
140 
141  protected:
142 
144  StringTableLookup() {}
145 
151  StringTableLookup(gsoap_resqml2_0_1::_resqml20__StringTableLookup* fromGsoap) : AbstractObject(fromGsoap) {}
152 
158  StringTableLookup(gsoap_eml2_3::_resqml22__StringTableLookup* fromGsoap) : AbstractObject(fromGsoap) {}
159 
161  void loadTargetRelationships() final {}
162  };
163 }
Defines an integer (key) to string (value) lookup table, for example, stores facies properties,...
Definition: StringTableLookup.h:32
virtual bool containsKey(long longValue)=0
virtual std::string getStringValueAtIndex(unsigned int index) const =0
virtual long getKeyAtIndex(unsigned int index) const =0
virtual std::unordered_map< long, std::string > getMap() const =0
StringTableLookup(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: StringTableLookup.h:40
virtual unsigned int getItemCount() const =0
static const char * XML_TAG
Definition: StringTableLookup.h:137
virtual void addValue(const std::string &strValue, long longValue)=0
virtual int64_t getMaximumValue()=0
virtual ~StringTableLookup()=default
virtual int64_t getMinimumValue()=0
virtual std::string getStringValue(long longValue)=0
std::string getXmlTag() const final
Definition: StringTableLookup.h:139
virtual void setValue(const std::string &strValue, long longValue)=0