Fesapi 2.10.1.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
|
Proxy class for an abstract property. More...
#include <AbstractProperty.h>
Public Member Functions | |
virtual | ~AbstractProperty ()=default |
void | setRepresentation (AbstractRepresentation *rep) |
common::DataObjectReference | getRepresentationDor () const |
AbstractRepresentation * | getRepresentation () const |
unsigned int | getElementCountPerValue () const |
gsoap_eml2_3::eml23__IndexableElement | getAttachmentKind () const |
virtual uint64_t | getPatchCount () const =0 |
virtual common::AbstractObject::numericalDatatypeEnum | getValuesHdfDatatype () const =0 |
uint64_t | getValuesCountOfPatch (unsigned int patchIndex) const |
virtual uint64_t | getValuesCountOfDimensionOfPatch (uint64_t dimIndex, uint64_t patchIndex) const =0 |
virtual uint64_t | getDimensionsCountOfPatch (uint64_t patchIndex) const =0 |
std::vector< resqml2_0_1::PropertySet * > | getPropertySets () const |
uint64_t | getPropertySetCount () const |
resqml2_0_1::PropertySet * | getPropertySet (uint64_t index) const |
void | setLocalCrs (eml2::AbstractLocal3dCrs *crs) |
eml2::AbstractLocal3dCrs * | getLocalCrs () const |
common::DataObjectReference | getLocalCrsDor () const |
bool | hasRealizationIndices () const |
std::vector< unsigned int > | getRealizationIndices () const |
void | setRealizationIndices (int64_t startRealizationIndex, int64_t countRealizationIndices) |
void | setRealizationIndices (const std::vector< unsigned int > &realizationIndices, eml2::AbstractHdfProxy *hdfProxy=nullptr) |
Sets the realization indices of this property. | |
void | setTimeSeries (eml2::TimeSeries *ts) |
void | setSingleTimestamp (time_t timestamp, LONG64 yearOffset=0) |
time_t | getSingleTimestamp () const |
eml2::TimeSeries * | getTimeSeries () const |
common::DataObjectReference | getTimeSeriesDor () const |
bool | useInterval () const |
bool | isAssociatedToOneStandardEnergisticsPropertyKind () const |
std::string | getPropertyKindDescription () const |
std::string | getPropertyKindAsString () const |
std::string | getPropertyKindParentAsString () const |
void | setPropertyKind (eml2::PropertyKind *propKind) |
common::DataObjectReference | getPropertyKindDor () const |
eml2::PropertyKind * | getPropertyKind () const |
virtual bool | validatePropertyKindAssociation (eml2::PropertyKind *pk)=0 |
virtual bool | validatePropertyKindAssociation (gsoap_resqml2_0_1::resqml20__ResqmlPropertyKind pk)=0 |
bool | validate () |
Public Member Functions inherited from common::AbstractObject | |
bool | isPartial () const |
virtual bool | isTopLevelElement () const |
std::string | getUuid () const |
std::string | getTitle () const |
std::string | getEditor () const |
time_t | getCreation () const |
tm | getCreationAsTimeStructure () const |
std::string | getOriginator () const |
std::string | getDescription () const |
time_t | getLastUpdate () const |
tm | getLastUpdateAsTimeStructure () const |
std::string | getFormat () const |
std::string | getDescriptiveKeywords () const |
std::string | getVersion () const |
void | setTitle (const std::string &title) |
void | setEditor (const std::string &editor) |
void | setCreation (time_t creation) |
void | setCreation (const tm &creation) |
void | setOriginator (const std::string &originator) |
void | setDescription (const std::string &description) |
void | setLastUpdate (time_t lastUpdate) |
void | setLastUpdate (const tm &lastUpdate) |
void | setDescriptiveKeywords (const std::string &descriptiveKeywords) |
void | setVersion (const std::string &version) |
void | setMetadata (const std::string &title, const std::string &editor, time_t creation, const std::string &originator, const std::string &description, time_t lastUpdate, const std::string &descriptiveKeywords) |
void | serializeIntoStream (std::ostream *stream) |
gsoap_resqml2_0_1::eml20__AbstractCitedDataObject * | getEml20GsoapProxy () const |
void | setGsoapProxy (gsoap_resqml2_0_1::eml20__AbstractCitedDataObject *gsoapProxy) |
gsoap_eml2_3::eml23__AbstractObject * | getEml23GsoapProxy () const |
void | setGsoapProxy (gsoap_eml2_3::eml23__AbstractObject *gsoapProxy) |
soap * | getGsoapContext () const |
int | getGsoapType () const |
gsoap_resqml2_0_1::eml20__DataObjectReference * | newResqmlReference () const |
gsoap_eml2_3::eml23__DataObjectReference * | newEml23Reference () const |
gsoap_resqml2_0_1::resqml20__ContactElementReference * | newContactElementReference2_0_1 () const |
gsoap_eml2_3::resqml22__ContactElement * | newContactElementReference2_2 () const |
common::DataObjectRepository * | getRepository () const |
virtual std::string | getXmlNamespace () const =0 |
virtual std::string | getXmlTag () const =0 |
virtual std::string | getXmlNamespaceVersion () const |
virtual std::string | getContentType () const |
virtual std::string | getQualifiedType () const |
virtual std::string | getPartNameInEpcDocument () const |
std::string | serializeIntoString () |
void | addAlias (const std::string &authority, const std::string &title) |
uint64_t | getAliasCount () const |
std::string | getAliasAuthorityAtIndex (uint64_t index) const |
std::string | getAliasTitleAtIndex (uint64_t index) const |
std::vector< eml2::Activity * > | getActivitySet () const |
uint64_t | getActivityCount () const |
eml2::Activity * | getActivity (uint64_t index) const |
void | pushBackExtraMetadata (const std::string &key, const std::string &value) |
std::unordered_map< std::string, std::string > | getExtraMetadataSet () const |
std::vector< std::string > | getExtraMetadata (const std::string &key) const |
unsigned int | getExtraMetadataCount () const |
std::string | getExtraMetadataKeyAtIndex (unsigned int index) const |
std::string | getExtraMetadataStringValueAtIndex (unsigned int index) const |
std::string | buildEtp12Uri () const |
void | setUriSource (const std::string &uriSource) |
const std::string & | getUriSource () const |
std::string | getEpcSourceFolder () const |
void | changeToPartialObject () |
Additional Inherited Members | |
Public Types inherited from common::AbstractObject | |
enum class | numericalDatatypeEnum { UNKNOWN = 0 , DOUBLE = 1 , FLOAT = 2 , INT64 = 3 , UINT64 = 4 , INT32 = 5 , UINT32 = 6 , INT16 = 7 , UINT16 = 8 , INT8 = 9 , UINT8 = 10 } |
Static Public Member Functions inherited from common::AbstractObject | |
static void | setFormat (const std::string &vendor, const std::string &applicationName, const std::string &applicationVersionNumber) |
Proxy class for an abstract property.
|
virtualdefault |
Destructor does nothing since the memory is managed by the gSOAP context
gsoap_eml2_3::eml23__IndexableElement resqml2::AbstractProperty::getAttachmentKind | ( | ) | const |
Gets the kind of elements on which the property values are attached to
|
pure virtual |
Gets the count of dimensions of the underlying HDF5 dataset of a given patch of this property.
std::range_error | If patchIndex is strictly greater than patch count. |
patchIndex | The index of the patch we want to count the dimensions from. |
Implemented in resqml2::AbstractValuesProperty, and resqml2::PointsProperty.
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)
eml2::AbstractLocal3dCrs * resqml2::AbstractProperty::getLocalCrs | ( | ) | const |
Gets the local CRS which is associated to this property.
common::DataObjectReference resqml2::AbstractProperty::getLocalCrsDor | ( | ) | const |
Gets the data object reference of the local CRS which is associated to this property
|
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.
std::out_of_range | If the patch count is strictly greater than unsigned int max value. |
Implemented in resqml2::AbstractValuesProperty, resqml2_0_1::PointsProperty, and resqml2_2::PointsProperty.
eml2::PropertyKind * resqml2::AbstractProperty::getPropertyKind | ( | ) | const |
Gets the local property kind which is associated to this instance
std::invalid_argument | If the property kind of this property is not a local one. |
std::string resqml2::AbstractProperty::getPropertyKindAsString | ( | ) | const |
Gets the title of the property kind of this property
std::string resqml2::AbstractProperty::getPropertyKindDescription | ( | ) | const |
Gets the description of the property kind of this property
std::invalid_argument | If the property kind is a standard Energistics one and the property kind mapping file is not loaded. |
common::DataObjectReference resqml2::AbstractProperty::getPropertyKindDor | ( | ) | const |
Gets the data object reference of the property kind associated to this property
std::invalid_argument | If the property kind of this property is not a local one. |
std::string resqml2::AbstractProperty::getPropertyKindParentAsString | ( | ) | const |
Get the title of the parent property kind of this property
std::invalid_argument | If the property kind is a standard Energistics one and the property kind mapping file is not loaded. |
resqml2_0_1::PropertySet * resqml2::AbstractProperty::getPropertySet | ( | uint64_t | index | ) | const |
Gets a given property set taken from all property sets which contain this property
std::out_of_range | If index is out of range. |
index | Zero-based index of the property set we look for. |
index
. uint64_t resqml2::AbstractProperty::getPropertySetCount | ( | ) | const |
Gets the count of property sets which contain this property
std::range_error | If the count of property sets is strictly greater than unsigned int max. |
std::vector< resqml2_0_1::PropertySet * > resqml2::AbstractProperty::getPropertySets | ( | ) | const |
Gets all property sets which contain this property
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
std::invalid_argument | If this property has actually no realization index. |
AbstractRepresentation * resqml2::AbstractProperty::getRepresentation | ( | ) | const |
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
common::DataObjectReference resqml2::AbstractProperty::getRepresentationDor | ( | ) | const |
Gets the data object reference of the representation which is associated to the current property
time_t resqml2::AbstractProperty::getSingleTimestamp | ( | ) | const |
Get a single associated timestamp for this property.
eml2::TimeSeries * resqml2::AbstractProperty::getTimeSeries | ( | ) | const |
Gets the time series which is associated to this property
common::DataObjectReference resqml2::AbstractProperty::getTimeSeriesDor | ( | ) | const |
Gets the data object reference of the time series associated to this property
|
pure virtual |
Gets the count of values on a specific dimension of the underlying HDF5 dataset of a given patch of this property.
std::out_of_range | If dimIndex is strictly greater than dimension count. |
std::range_error | If patchIndex is strictly greater than patch count. |
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. |
dimIndex
dimension of patchIndex
patch. Implemented in resqml2::AbstractValuesProperty, and resqml2::PointsProperty.
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.
std::range_error | If patchIndex is strictly greater than patch count. |
patchIndex | The index of the patch we want to count the values from. |
patchIndex
patch.
|
pure virtual |
Get the values data type in the HDF dataset
UNKNOWN
. Implemented in resqml2::AbstractValuesProperty, and resqml2::PointsProperty.
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
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
void resqml2::AbstractProperty::setLocalCrs | ( | eml2::AbstractLocal3dCrs * | crs | ) |
Sets the local CRS which is associated to the current property. You should not set any CRS if your property is not CRS related
std::invalid_argument | If crs is null. |
[in] | crs | The local CRS to associate with the current property. |
void resqml2::AbstractProperty::setPropertyKind | ( | eml2::PropertyKind * | propKind | ) |
Sets the property kind of this property to a local one
std::invalid_argument | If propKind is null. |
[in] | propKind | The local property kind to set to this property. |
void resqml2::AbstractProperty::setRealizationIndices | ( | const std::vector< unsigned int > & | realizationIndices, |
eml2::AbstractHdfProxy * | hdfProxy = nullptr ) |
Sets the realization indices of this property.
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. |
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. |
void resqml2::AbstractProperty::setRealizationIndices | ( | int64_t | startRealizationIndex, |
int64_t | countRealizationIndices ) |
Sets the realization indices of this property
startRealizationIndex | The first realization index to set to this property. |
countRealizationIndices | The count of realization indices to set to this property. |
void resqml2::AbstractProperty::setRepresentation | ( | AbstractRepresentation * | rep | ) |
Sets the representation which is associated to the current property
std::invalid_argument | If rep is null. |
[in] | rep | The representation to associate to the current property. |
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.
invalid_argument | Regarding RESQML2.0.1, this method cannot be called if setTimeSeries has not been called before. |
[in] | timestamp | The single timestamps to associate to this property |
[in] | yearOffset | Indicates that the dateTime attribute must be translated according to this value. |
void resqml2::AbstractProperty::setTimeSeries | ( | eml2::TimeSeries * | ts | ) |
Sets the time series associated to the current property
invalid_argument | If ts is null or if the current property has no time indices. |
[in] | ts | The time series to associate to this property |
bool resqml2::AbstractProperty::useInterval | ( | ) | const |
Check if the values are given at each time index or between each time index.
bool resqml2::AbstractProperty::validate | ( | ) |
Checks if the associated property kind is allowed for this property.
|
pure virtual |
Checks if it is allowed to associate a given property kind to this property.
[in] | pk | The local property kind to check. |
Implemented in resqml2::PointsProperty, resqml2_0_1::CategoricalProperty, resqml2_0_1::CommentProperty, resqml2_0_1::ContinuousProperty, resqml2_0_1::DiscreteProperty, resqml2_2::CommentProperty, resqml2_2::ContinuousProperty, and resqml2_2::DiscreteProperty.
|
pure virtual |
Checks if it is allowed to associate a given standard Energistics property kind to this property.
pk | The standard Energistics property kind to check. |
Implemented in resqml2::PointsProperty, resqml2_0_1::CategoricalProperty, resqml2_0_1::CommentProperty, resqml2_0_1::ContinuousProperty, resqml2_0_1::DiscreteProperty, resqml2_2::CommentProperty, resqml2_2::ContinuousProperty, and resqml2_2::DiscreteProperty.