Proxy class for an abstract property.
More...
#include <AbstractProperty.h>
Proxy class for an abstract property.
◆ ~AbstractProperty()
virtual resqml2::AbstractProperty::~AbstractProperty |
( |
| ) |
|
|
virtualdefault |
Destructor does nothing since the memory is managed by the gSOAP context
◆ getAttachmentKind()
gsoap_eml2_3::eml23__IndexableElement resqml2::AbstractProperty::getAttachmentKind |
( |
| ) |
const |
Gets the kind of elements on which the property values are attached to
- Returns
- The kind of elements on which the property values are attached to.
◆ getDimensionsCountOfPatch()
virtual uint64_t resqml2::AbstractProperty::getDimensionsCountOfPatch |
( |
uint64_t | patchIndex | ) |
const |
|
pure virtual |
Gets the count of dimensions of the underlying HDF5 dataset of a given patch of this property.
- Exceptions
-
std::range_error | If patchIndex is strictly greater than patch count. |
- Parameters
-
patchIndex | The index of the patch we want to count the dimensions from. |
- Returns
- The number of values, 0 otherwise.
Implemented in resqml2::AbstractValuesProperty, and resqml2::PointsProperty.
◆ getElementCountPerValue()
unsigned int resqml2::AbstractProperty::getElementCountPerValue |
( |
| ) |
const |
Gets the count of elements per property value. If the property is a scalar one then it should be one. If it is a vectorial one, then it should be more than one. It is not possible to have some tensor property values (more dimensions than a vector)
- Returns
- The element count per value.
◆ getLocalCrs()
Gets the local CRS which is associated to this property.
- Returns
- The local CRS which is associated to the current property if exists, null if not (usually for a property which is not CRS related).
◆ getLocalCrsDor()
Gets the data object reference of the local CRS which is associated to this property
- Returns
- Empty data object reference if no local CRS is associated to this property. Otherwise returns the data object reference of the associated local CRS.
◆ getPatchCount()
virtual uint64_t resqml2::AbstractProperty::getPatchCount |
( |
| ) |
const |
|
pure virtual |
Gets the number of patches in this values property. It should be the same count as the patch count of the associated representation.
- Exceptions
-
std::out_of_range | If the patch count is strictly greater than unsigned int max value. |
- Returns
- The patch count.
Implemented in resqml2::AbstractValuesProperty.
◆ getPropertyKind()
Gets the local property kind which is associated to this instance
- Exceptions
-
std::invalid_argument | If the property kind of this property is not a local one. |
- Returns
- A pointer to the property kind.
◆ getPropertyKindAsString()
std::string resqml2::AbstractProperty::getPropertyKindAsString |
( |
| ) |
const |
Gets the title of the property kind of this property
- Returns
- The property kind title.
◆ getPropertyKindDescription()
std::string resqml2::AbstractProperty::getPropertyKindDescription |
( |
| ) |
const |
Gets the description of the property kind of this property
- Exceptions
-
std::invalid_argument | If the property kind is a standard Energistics one and the property kind mapping file is not loaded. |
- Returns
- The property kind description.
◆ getPropertyKindDor()
Gets the data object reference of the property kind associated to this property
- Exceptions
-
std::invalid_argument | If the property kind of this property is not a local one. |
- Returns
- Empty data object reference if no property kind is associated to this property. Otherwise return the data object reference of the associated local property kind.
◆ getPropertyKindParentAsString()
std::string resqml2::AbstractProperty::getPropertyKindParentAsString |
( |
| ) |
const |
Get the title of the parent property kind of this property
- Exceptions
-
std::invalid_argument | If the property kind is a standard Energistics one and the property kind mapping file is not loaded. |
- Returns
- The parent property kind title.
◆ getPropertySet()
Gets a given property set taken from all property sets which contain this property
- Exceptions
-
std::out_of_range | If index is out of range. |
- Parameters
-
index | Zero-based index of the property set we look for. |
- Returns
- The property set at
index
.
◆ getPropertySetCount()
uint64_t resqml2::AbstractProperty::getPropertySetCount |
( |
| ) |
const |
Gets the count of property sets which contain this property
- Exceptions
-
std::range_error | If the count of property sets is strictly greater than unsigned int max. |
- Returns
- The count of property sets which contain this property.
◆ getPropertySets()
std::vector< resqml2_0_1 ::PropertySet * > resqml2::AbstractProperty::getPropertySets |
( |
| ) |
const |
Gets all property sets which contain this property
- Returns
- A vector of all property sets which contain this property.
◆ getRealizationIndices()
std::vector< unsigned int > resqml2::AbstractProperty::getRealizationIndices |
( |
| ) |
const |
Gets the realization index of this property. Realization index is used if the property is the result of a multi-realization process. You should have checked before that this property actually has a realization index. Remark : v2.0.1 is constrained to have a maximum of one realisation index
- Exceptions
-
std::invalid_argument | If this property has actually no realization index. |
- Returns
- The realization index.
◆ getRepresentation()
Gets the representation which is associated to the current property. That is to say the one which supports this instance values, also called supporting representation
- Returns
- The representation which is associated to the current property.
◆ getRepresentationDor()
Gets the data object reference of the representation which is associated to the current property
- Returns
- Empty data object reference if no representation is associated to this property. Otherwise returns the data object reference of the associated representation. Null should not occured since each property must be associated to a representation.
◆ getSingleTimestamp()
time_t resqml2::AbstractProperty::getSingleTimestamp |
( |
| ) |
const |
Get a single associated timestamp for this property.
- Returns
- -1 if there is not a single timestamp related to this property meaning that no timestamp is present or more than one (i.e. a whole time series)
◆ getTimeSeries()
Gets the time series which is associated to this property
- Returns
- Null pointer if no time series is associated to this property. Otherwise returns the associated time series.
◆ getTimeSeriesDor()
Gets the data object reference of the time series associated to this property
- Returns
- Empty data object reference if no time series is associated to this property. Otherwise returns the data object reference of the associated time series.
◆ getValuesCountOfDimensionOfPatch()
virtual uint64_t resqml2::AbstractProperty::getValuesCountOfDimensionOfPatch |
( |
uint64_t | dimIndex, |
|
|
uint64_t | patchIndex ) const |
|
pure virtual |
Gets the count of values on a specific dimension of the underlying HDF5 dataset of a given patch of this property.
- Exceptions
-
std::out_of_range | If dimIndex is strictly greater than dimension count. |
std::range_error | If patchIndex is strictly greater than patch count. |
- Parameters
-
dimIndex | The index of the dimension we want to count the values from. |
patchIndex | The index of the patch we want to count the values from. |
- Returns
- The count of values in the
dimIndex
dimension of patchIndex
patch.
Implemented in resqml2::AbstractValuesProperty, and resqml2::PointsProperty.
◆ getValuesCountOfPatch()
uint64_t resqml2::AbstractProperty::getValuesCountOfPatch |
( |
unsigned int | patchIndex | ) |
const |
Gets the count of all values contained into the underlying HDF5 dataset of a given patch of this property.
- Exceptions
-
std::range_error | If patchIndex is strictly greater than patch count. |
- Parameters
-
patchIndex | The index of the patch we want to count the values from. |
- Returns
- The count of values of the
patchIndex
patch.
◆ getValuesHdfDatatype()
virtual common::AbstractObject::numericalDatatypeEnum resqml2::AbstractProperty::getValuesHdfDatatype |
( |
| ) |
const |
|
pure virtual |
◆ hasRealizationIndices()
bool resqml2::AbstractProperty::hasRealizationIndices |
( |
| ) |
const |
Checks if this property has at least one realization index. Realization index is used if the property is the result of a multi-realization process. Remark : v2.0.1 is constrained to have a maximum of one realisation index
- Returns
- True if the property has at least one realization index, false if not.
◆ isAssociatedToOneStandardEnergisticsPropertyKind()
bool resqml2::AbstractProperty::isAssociatedToOneStandardEnergisticsPropertyKind |
( |
| ) |
const |
Indicates if the property kind attached to this property is either from the standard catalog of Energistics or from a local property kind
- Returns
- True if associated to one standard Energistics property kind, false if not.
◆ setLocalCrs()
Sets the local CRS which is associated to the current property. You should not set any CRS if your property is not CRS related
- Exceptions
-
std::invalid_argument | If crs is null. |
- Parameters
-
[in] | crs | The local CRS to associate with the current property. |
◆ setPropertyKind()
void resqml2::AbstractProperty::setPropertyKind |
( |
eml2 ::PropertyKind * | propKind | ) |
|
Sets the property kind of this property to a local one
- Exceptions
-
std::invalid_argument | If propKind is null. |
- Parameters
-
[in] | propKind | The local property kind to set to this property. |
◆ setRealizationIndices() [1/2]
void resqml2::AbstractProperty::setRealizationIndices |
( |
const std::vector< unsigned int > & | realizationIndices, |
|
|
eml2 ::AbstractHdfProxy * | hdfProxy = nullptr ) |
Sets the realization indices of this property.
- Exceptions
-
std::invalid_argument | If realizationIndices is empty. |
std::invalid_argument | If the realizationIndices size is strictly greater than 1 in a RESQML 2.0.1 context. |
std::invalid_argument | If, in a RESQML 2.2 context, hdfProxy == nullptr and no default HDF proxy is defined in the repository. |
std::logic_error | If no supported gSOAP proxy is available. |
- Parameters
-
| realizationIndices | The realization indices to set to this property. Remark : v2.0.1 is constrained to have a maximum of one realisation index |
[in,out] | hdfProxy | (Optional) The HDF proxy where to store realizationIndices values. If nullptr (default), then the repository default HDF proxy will be used. |
◆ setRealizationIndices() [2/2]
void resqml2::AbstractProperty::setRealizationIndices |
( |
int64_t | startRealizationIndex, |
|
|
int64_t | countRealizationIndices ) |
Sets the realization indices of this property
- Parameters
-
startRealizationIndex | The first realization index to set to this property. |
countRealizationIndices | The count of realization indices to set to this property. |
◆ setRepresentation()
Sets the representation which is associated to the current property
- Exceptions
-
std::invalid_argument | If rep is null. |
- Parameters
-
[in] | rep | The representation to associate to the current property. |
◆ setSingleTimestamp()
void resqml2::AbstractProperty::setSingleTimestamp |
( |
time_t | timestamp, |
|
|
LONG64 | yearOffset = 0 ) |
Set a single associated timestamp for this property. Must be used with and after setTimeSeries.
- Exceptions
-
invalid_argument | Regarding RESQML2.0.1, this method cannot be called if setTimeSeries has not been called before. |
- Parameters
-
[in] | timestamp | The single timestamps to associate to this property |
[in] | yearOffset | Indicates that the dateTime attribute must be translated according to this value. |
◆ setTimeSeries()
void resqml2::AbstractProperty::setTimeSeries |
( |
eml2 ::TimeSeries * | ts | ) |
|
Sets the time series associated to the current property
- Exceptions
-
invalid_argument | If ts is null or if the current property has no time indices. |
- Parameters
-
[in] | ts | The time series to associate to this property |
◆ useInterval()
bool resqml2::AbstractProperty::useInterval |
( |
| ) |
const |
Check if the values are given at each time index or between each time index.
◆ validate()
bool resqml2::AbstractProperty::validate |
( |
| ) |
|
Checks if the associated property kind is allowed for this property.
- Returns
- True if it is allowed, false if it is not.
◆ validatePropertyKindAssociation() [1/2]
virtual bool resqml2::AbstractProperty::validatePropertyKindAssociation |
( |
eml2 ::PropertyKind * | pk | ) |
|
|
pure virtual |
Checks if it is allowed to associate a given property kind to this property.
- Parameters
-
[in] | pk | The local property kind to check. |
- Returns
- True if it is allowed, false if it is not.
Implemented in resqml2::PointsProperty.
◆ validatePropertyKindAssociation() [2/2]
virtual bool resqml2::AbstractProperty::validatePropertyKindAssociation |
( |
gsoap_resqml2_0_1::resqml20__ResqmlPropertyKind | pk | ) |
|
|
pure virtual |
Checks if it is allowed to associate a given standard Energistics property kind to this property.
- Parameters
-
pk | The standard Energistics property kind to check. |
- Returns
- True if it is allowed, false if it is not.
Implemented in resqml2::PointsProperty.
The documentation for this class was generated from the following file: