Fesapi 2.9.0.1
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
|
#include <ContinuousProperty.h>
Public Member Functions | |
ContinuousProperty (gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject) | |
ContinuousProperty (resqml2 ::AbstractRepresentation *rep, const std::string &guid, const std::string &title, unsigned int dimension, gsoap_eml2_3::eml23__IndexableElement attachmentKind, gsoap_resqml2_0_1::resqml20__ResqmlUom uom, eml2 ::PropertyKind *propKind) | |
ContinuousProperty (resqml2 ::AbstractRepresentation *rep, const std::string &guid, const std::string &title, unsigned int dimension, gsoap_eml2_3::eml23__IndexableElement attachmentKind, const std::string &nonStandardUom, eml2 ::PropertyKind *propKind) | |
ContinuousProperty (gsoap_eml2_3::_resqml22__ContinuousProperty *fromGsoap) | |
~ContinuousProperty ()=default | |
gsoap_resqml2_0_1::resqml20__ResqmlUom | getUom () const final |
std::string | getUomAsString () const final |
double | getMinimumValue (unsigned int index=0) const final |
double | getMaximumValue (unsigned int index=0) const final |
void | setMinimumValue (double value, unsigned int index=0) const final |
void | setMaximumValue (double value, unsigned int index=0) const final |
bool | validatePropertyKindAssociation (eml2 ::PropertyKind *) final |
bool | validatePropertyKindAssociation (gsoap_resqml2_0_1::resqml20__ResqmlPropertyKind) final |
std::string | getXmlNamespace () const final |
Static Public Attributes | |
static const char * | XML_NS |
Proxy class for a continuous property. Most common type of property used for storing rock or fluid attributes; all are represented as floating point values. So that the value range can be known before accessing all values, the min and max values of the range are also optionally stored. BUSINESS RULE: It also contains a unit of measure, which can be different from the unit of measure of its property type, but it must be convertible into this unit.
|
inline |
Only to be used in partial transfer context.
[in] | partialObject | If non-nullptr, the partial object. |
resqml2_2::ContinuousProperty::ContinuousProperty | ( | resqml2 ::AbstractRepresentation * | rep, |
const std::string & | guid, | ||
const std::string & | title, | ||
unsigned int | dimension, | ||
gsoap_eml2_3::eml23__IndexableElement | attachmentKind, | ||
gsoap_resqml2_0_1::resqml20__ResqmlUom | uom, | ||
eml2 ::PropertyKind * | propKind ) |
Creates a continuous property which is of a well known unit of measure and a local property kind.
std::invalid_argument | If rep or propKind is null. If dimension is zero. |
[in] | rep | The representation on which this property is attached to. It cannot be null. |
guid | The guid to set to the property. If empty then a new guid will be generated. | |
title | The title to set to the property. If empty then "unknown" title will be set. | |
dimension | The dimension of each value of this property. Dimension is 1 for a scalar property. | |
attachmentKind | The topological element on which the property values are attached to. | |
uom | The property unit of measure taken from the standard Energistics units of measure catalog. Please check COMMON_NS::EnumStringMapper::getEnergisticsUnitOfMeasure in order to minimize the use of non standard unit of measure. | |
[in] | propKind | The property kind of these property values. It cannot be null. |
resqml2_2::ContinuousProperty::ContinuousProperty | ( | resqml2 ::AbstractRepresentation * | rep, |
const std::string & | guid, | ||
const std::string & | title, | ||
unsigned int | dimension, | ||
gsoap_eml2_3::eml23__IndexableElement | attachmentKind, | ||
const std::string & | nonStandardUom, | ||
eml2 ::PropertyKind * | propKind ) |
Creates a continuous property which is of local unit of measure and property kind.
std::invalid_argument | If rep or propKind is null. |
[in] | rep | The representation on which this property is attached to. It cannot be null. |
guid | The guid to set to the property. If empty then a new guid will be generated. | |
title | The title to set to the property. If empty then "unknown" title will be set. | |
dimension | The dimension of each value of this property. Dimension is 1 for a scalar property. | |
attachmentKind | The topological element on which the property values are attached to. | |
nonStandardUom | The property unit of measure. Please check COMMON_NS::EnumStringMapper::getEnergisticsUnitOfMeasure in order to minimize the use of non standard unit of measure. | |
[in] | propKind | The property kind of these property values. It cannot be null. |
|
inline |
Creates an instance of this class by wrapping a gSOAP instance.
[in] | fromGsoap | If non-null, the gSOAP instance. |
|
default |
Destructor does nothing since the memory is managed by the gsoap context.
|
inlinefinal |
Get the standard XML namespace for serializing this data object.
|
static |
The standard XML namespace for serializing this data object.