#include <DiscreteProperty.h>
|
| DiscreteProperty (gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject) |
|
| DiscreteProperty (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__ResqmlPropertyKind energisticsPropertyKind) |
|
| DiscreteProperty (resqml2 ::AbstractRepresentation *rep, const std::string &guid, const std::string &title, unsigned int dimension, gsoap_eml2_3::eml23__IndexableElement attachmentKind, eml2 ::PropertyKind *localPropKind) |
|
| DiscreteProperty (gsoap_resqml2_0_1::_resqml20__DiscreteProperty *fromGsoap) |
|
| ~DiscreteProperty ()=default |
|
std::string | pushBackRefToExistingIntegerDataset (eml2 ::AbstractHdfProxy *proxy, const std::string &datasetName, int64_t nullValue, int64_t minimumValue, int64_t maximumValue) final |
|
bool | validatePropertyKindAssociation (eml2 ::PropertyKind *pk) final |
|
bool | validatePropertyKindAssociation (gsoap_resqml2_0_1::resqml20__ResqmlPropertyKind pk) final |
|
int64_t | getNullValue (uint64_t patchIndex=(std::numeric_limits< uint64_t >::max)()) const final |
|
bool | hasMinimumValue (uint64_t index=0) const final |
|
int64_t | getMinimumValue (uint64_t index=0) const final |
|
bool | hasMaximumValue (uint64_t index=0) const final |
|
int64_t | getMaximumValue (uint64_t index=0) const final |
|
void | setMinimumValue (int64_t value, uint64_t index=0) const final |
|
void | setMaximumValue (int64_t value, uint64_t index=0) const |
|
gsoap_resqml2_0_1::resqml20__ResqmlPropertyKind | getEnergisticsPropertyKind () const |
|
std::string | getXmlNamespace () const final |
|
Proxy class for a discrete property. Such property contains discrete integer values; typically used to store any type of index. So that the value range can be known before accessing all values, it also optionally stores the minimum and maximum value in the range.
◆ DiscreteProperty() [1/4]
resqml2_0_1::DiscreteProperty::DiscreteProperty |
( |
gsoap_resqml2_0_1::eml20__DataObjectReference * | partialObject | ) |
|
|
inline |
Only to be used in partial transfer context.
- Parameters
-
[in] | partialObject | If non-null, the partial object. |
◆ DiscreteProperty() [2/4]
resqml2_0_1::DiscreteProperty::DiscreteProperty |
( |
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__ResqmlPropertyKind | energisticsPropertyKind ) |
Creates a discrete property which is of a well known Energistics property kind.
- Exceptions
-
std::invalid_argument | If rep is null. |
- Parameters
-
[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. |
| energisticsPropertyKind | The property kind of these property values which must be defined in the standard Energistics property type dictionary. |
◆ DiscreteProperty() [3/4]
resqml2_0_1::DiscreteProperty::DiscreteProperty |
( |
resqml2 ::AbstractRepresentation * | rep, |
|
|
const std::string & | guid, |
|
|
const std::string & | title, |
|
|
unsigned int | dimension, |
|
|
gsoap_eml2_3::eml23__IndexableElement | attachmentKind, |
|
|
eml2 ::PropertyKind * | localPropKind ) |
Creates a discrete property which is of a local property kind.
- Exceptions
-
std::invalid_argument | If or localPropKind is null. |
- Parameters
-
[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. |
[in] | localPropKind | The property kind of these property values which must be defined in the EPC document as a local property kind. It cannot be null. |
◆ DiscreteProperty() [4/4]
resqml2_0_1::DiscreteProperty::DiscreteProperty |
( |
gsoap_resqml2_0_1::_resqml20__DiscreteProperty * | fromGsoap | ) |
|
|
inline |
Creates an instance of this class by wrapping a gSOAP instance.
- Parameters
-
[in] | fromGsoap | If non-null, the gSOAP instance. |
◆ ~DiscreteProperty()
resqml2_0_1::DiscreteProperty::~DiscreteProperty |
( |
| ) |
|
|
default |
Destructor does nothing since the memory is managed by the gsoap context.
◆ getEnergisticsPropertyKind()
gsoap_resqml2_0_1::resqml20__ResqmlPropertyKind resqml2_0_1::DiscreteProperty::getEnergisticsPropertyKind |
( |
| ) |
const |
Gets the Energistics property kind which is associated to this intance
- Exceptions
-
std::invalid_argument | If the property kind of this property is not an Energistics one. |
- Returns
- The Energistics property kind.
◆ getXmlNamespace()
std::string resqml2_0_1::DiscreteProperty::getXmlNamespace |
( |
| ) |
const |
|
inlinefinal |
Get the standard XML namespace for serializing this data object.
◆ XML_NS
const char* resqml2_0_1::DiscreteProperty::XML_NS |
|
static |
The standard XML namespace for serializing this data object.
The documentation for this class was generated from the following file: