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
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 "../resqml2/StringTableLookup.h"
22
23namespace RESQML2_0_1_NS
24{
26 class StringTableLookup final : public RESQML2_NS::StringTableLookup
27 {
28 public:
29
37 DLL_IMPORT_OR_EXPORT StringTableLookup(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : RESQML2_NS::StringTableLookup(partialObject) {}
38
47 StringTableLookup(COMMON_NS::DataObjectRepository* repo, const std::string & guid, const std::string & title);
48
54 StringTableLookup(gsoap_resqml2_0_1::_resqml20__StringTableLookup* fromGsoap) : RESQML2_NS::StringTableLookup(fromGsoap) {}
55
57 ~StringTableLookup() = default;
58
59 DLL_IMPORT_OR_EXPORT bool containsKey(int64_t key) final;
60
61 DLL_IMPORT_OR_EXPORT uint64_t getItemCount() const final;
62
63 DLL_IMPORT_OR_EXPORT int64_t getKeyAtIndex(uint64_t index) const final;
64
65 DLL_IMPORT_OR_EXPORT std::string getStringValueAtIndex(uint64_t index) const final;
66
67 DLL_IMPORT_OR_EXPORT std::string getStringValue(int64_t key) final;
68
69 DLL_IMPORT_OR_EXPORT void addValue(const std::string & strValue, int64_t key) final;
70
71 DLL_IMPORT_OR_EXPORT void setValue(const std::string & strValue, int64_t key) final;
72
73 DLL_IMPORT_OR_EXPORT int64_t getMinimumValue() final;
74
75 DLL_IMPORT_OR_EXPORT int64_t getMaximumValue() final;
76
77 DLL_IMPORT_OR_EXPORT std::unordered_map<int64_t, std::string> getMap() const final;
78
82 DLL_IMPORT_OR_EXPORT static constexpr char const* XML_NS = "resqml20";
83
87 DLL_IMPORT_OR_EXPORT std::string getXmlNamespace() const final { return XML_NS; }
88 };
89}
Definition StringTableLookup.h:27
StringTableLookup(gsoap_resqml2_0_1::_resqml20__StringTableLookup *fromGsoap)
Definition StringTableLookup.h:54
uint64_t getItemCount() const final
bool containsKey(int64_t key) final
StringTableLookup(common::DataObjectRepository *repo, const std::string &guid, const std::string &title)
StringTableLookup(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition StringTableLookup.h:37