A class for mapping enum values with strings.
More...
#include <EnumStringMapper.h>
A class for mapping enum values with strings.
◆ EnumStringMapper()
common::EnumStringMapper::EnumStringMapper |
( |
| ) |
|
◆ ~EnumStringMapper()
common::EnumStringMapper::~EnumStringMapper |
( |
| ) |
|
◆ getEnergisticsPropertyKind()
gsoap_resqml2_0_1::resqml20__ResqmlPropertyKind common::EnumStringMapper::getEnergisticsPropertyKind |
( |
const std::string & | energisticsPropertyKindName | ) |
const |
Get the RESQML2.0 property kind enumerated value from the name of a property kind
- Parameters
-
energisticsPropertyKindName | The name of a RESQML2.0 property kind. |
- Returns
- The RESQML2.0 property kind enumerated value corresponding to
energisticsPropertyKindName
if successful. The most abstract RESQML2.0 property kind enumerated value if no correspondence is found.
◆ getEnergisticsPropertyKindName()
std::string common::EnumStringMapper::getEnergisticsPropertyKindName |
( |
gsoap_resqml2_0_1::resqml20__ResqmlPropertyKind | energisticsPropertyKind | ) |
const |
Get the name of a RESQML2.0 property kind as a string based on the property kind enumerated value
- Parameters
-
energisticsPropertyKind | A RESQML2.0 property kind. |
- Returns
- A string corresponding to
energisticsPropertyKind
if successful. The empty string if no correspondence is found.
◆ getEnergisticsUnitOfMeasure()
gsoap_resqml2_0_1::resqml20__ResqmlUom common::EnumStringMapper::getEnergisticsUnitOfMeasure |
( |
const std::string & | energisticsUomName | ) |
const |
Get the RESQML2.0 unit of measure enumerated value from the name of a unit of measure
- Parameters
-
energisticsUomName | The name of a RESQML2.0 unit of measure. |
- Returns
- The RESQML2.0 unit of measure enumerated value corresponding to
energisticsUomName
if successful. The Euclidian (no unit of measure) RESQML2.0 unit of measure if no correspondence is found.
◆ getEnergisticsUnitOfMeasureName()
std::string common::EnumStringMapper::getEnergisticsUnitOfMeasureName |
( |
gsoap_resqml2_0_1::resqml20__ResqmlUom | energisticsUom | ) |
const |
Get the name of a RESQML2.0 unit of measure as a string based on the unit of measure enumerated value
- Parameters
-
energisticsUom | A RESQML2.0 unit of measure. |
- Returns
- A string corresponding to
energisticsUom
if successful. The empty string if no correspondence is found.
◆ getFacet() [1/2]
gsoap_eml2_3::eml23__FacetKind common::EnumStringMapper::getFacet |
( |
const std::string & | facet | ) |
const |
Get the enumerated value from the name of a facet.
- Parameters
-
facet | The name of a facet. |
- Returns
- The facet enumerated value corresponding to
facet
if successful. The what
facet enumerated value if no correspendance is found.
◆ getFacet() [2/2]
std::string common::EnumStringMapper::getFacet |
( |
gsoap_eml2_3::eml23__FacetKind | facet | ) |
const |
Get the name of a facet as a string based on the enumerated facet enumerated value
- Parameters
-
facet | An enumerated facet. |
- Returns
- A string corresponding to
facet
if successful. The empty string if no correspondence is found.
◆ lengthUomToString()
std::string common::EnumStringMapper::lengthUomToString |
( |
gsoap_eml2_3::eml23__LengthUom | witsmlUom | ) |
const |
Get the name of an EML2.3 length unit of measure as a string based on the unit of measure enumerated value
- Parameters
-
witsmlUom | An EML2.3 length unit of measure. |
- Returns
- A string corresponding to
witsmlUom
if successful. The empty string if no correspondence is found.
◆ planeAngleUomToString()
std::string common::EnumStringMapper::planeAngleUomToString |
( |
gsoap_eml2_3::eml23__PlaneAngleUom | witsmlUom | ) |
const |
Get the name of an EML2.3 plane angle unit of measure as a string based on the unit of measure enumerated value
- Parameters
-
witsmlUom | An EML2.3 plane angle unit of measure. |
- Returns
- A string corresponding to
witsmlUom
if successful. The empty string if no correspondence is found.
◆ verticalCoordinateUomToString()
std::string common::EnumStringMapper::verticalCoordinateUomToString |
( |
gsoap_eml2_3::eml23__VerticalCoordinateUom | witsmlUom | ) |
const |
Get the name of an EML2.3 vertical coordinate unit of measure as a string based on the unit of measure enumerated value
- Parameters
-
witsmlUom | An EML2.3 vertical coordinate unit of measure. |
- Returns
- A string corresponding to
witsmlUom
if successful. The empty string if no correspondence is found.
The documentation for this class was generated from the following file: