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
EnumStringMapper.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 "DataObjectRepository.h"
22
23#if defined(_WIN32) && !defined(FESAPI_STATIC)
24#if defined(FesapiCpp_EXPORTS) || defined(FesapiCppUnderDev_EXPORTS)
25#define DLL_IMPORT_OR_EXPORT __declspec(dllexport)
26#else
27#define DLL_IMPORT_OR_EXPORT __declspec(dllimport)
28#endif
29#else
30#define DLL_IMPORT_OR_EXPORT
31#endif
32
33namespace COMMON_NS
34{
37 {
38 private :
39 soap* gsoapContext;
40
41 public :
42
44 DLL_IMPORT_OR_EXPORT EnumStringMapper();
45
47 DLL_IMPORT_OR_EXPORT ~EnumStringMapper();
48
58 DLL_IMPORT_OR_EXPORT std::string getEnergisticsPropertyKindName(gsoap_resqml2_0_1::resqml20__ResqmlPropertyKind energisticsPropertyKind) const;
59
69 DLL_IMPORT_OR_EXPORT gsoap_resqml2_0_1::resqml20__ResqmlPropertyKind getEnergisticsPropertyKind(const std::string & energisticsPropertyKindName) const;
70
80 DLL_IMPORT_OR_EXPORT std::string getEnergisticsUnitOfMeasureName(gsoap_resqml2_0_1::resqml20__ResqmlUom energisticsUom) const;
81
91 DLL_IMPORT_OR_EXPORT gsoap_resqml2_0_1::resqml20__ResqmlUom getEnergisticsUnitOfMeasure(const std::string & energisticsUomName) const;
92
101 DLL_IMPORT_OR_EXPORT std::string getFacet(gsoap_eml2_3::eml23__FacetKind facet) const;
102
111 DLL_IMPORT_OR_EXPORT gsoap_eml2_3::eml23__FacetKind getFacet(const std::string & facet) const;
112
122 DLL_IMPORT_OR_EXPORT std::string lengthUomToString(gsoap_eml2_3::eml23__LengthUom witsmlUom) const;
123
133 DLL_IMPORT_OR_EXPORT std::string verticalCoordinateUomToString(gsoap_eml2_3::eml23__VerticalCoordinateUom witsmlUom) const;
134
144 DLL_IMPORT_OR_EXPORT std::string planeAngleUomToString(gsoap_eml2_3::eml23__PlaneAngleUom witsmlUom) const;
145 };
146}
A class for mapping enum values with strings.
Definition EnumStringMapper.h:37
gsoap_eml2_3::eml23__FacetKind getFacet(const std::string &facet) const
std::string lengthUomToString(gsoap_eml2_3::eml23__LengthUom witsmlUom) const
std::string getEnergisticsPropertyKindName(gsoap_resqml2_0_1::resqml20__ResqmlPropertyKind energisticsPropertyKind) const
std::string getEnergisticsUnitOfMeasureName(gsoap_resqml2_0_1::resqml20__ResqmlUom energisticsUom) const
gsoap_resqml2_0_1::resqml20__ResqmlUom getEnergisticsUnitOfMeasure(const std::string &energisticsUomName) const
std::string verticalCoordinateUomToString(gsoap_eml2_3::eml23__VerticalCoordinateUom witsmlUom) const
std::string planeAngleUomToString(gsoap_eml2_3::eml23__PlaneAngleUom witsmlUom) const
gsoap_resqml2_0_1::resqml20__ResqmlPropertyKind getEnergisticsPropertyKind(const std::string &energisticsPropertyKindName) const
std::string getFacet(gsoap_eml2_3::eml23__FacetKind facet) const