Fesapi  2.0.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
Public Member Functions | Static Public Attributes | List of all members
resqml2_2::GridConnectionSetRepresentation Class Referencefinal

#include <GridConnectionSetRepresentation.h>

Inheritance diagram for resqml2_2::GridConnectionSetRepresentation:
resqml2::GridConnectionSetRepresentation resqml2::AbstractRepresentation common::AbstractObject

Public Member Functions

 GridConnectionSetRepresentation (gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
 
 GridConnectionSetRepresentation (resqml2::AbstractFeatureInterpretation *interp, const std::string &guid, const std::string &title)
 Creates an instance of this class in a gsoap context. More...
 
 GridConnectionSetRepresentation (common::DataObjectRepository *repo, const std::string &guid, const std::string &title)
 
 GridConnectionSetRepresentation (gsoap_eml2_3::_resqml22__GridConnectionSetRepresentation *fromGsoap)
 
 ~GridConnectionSetRepresentation ()=default
 
common::DataObjectReference getHdfProxyDor () const final
 Gets the data object reference of the HDF proxy which is used for storing the numerical values of this representation (i.e. its geometry). More...
 
uint64_t getCellIndexPairCount () const final
 
uint64_t getCellIndexPairs (uint64_t *cellIndexPairs) const final
 
unsigned int getCellIndexPairCountFromInterpretationIndex (unsigned int interpretationIndex) const final
 Gets the count of cell index pairs which correspond to a particular interpretation. More...
 
bool isAssociatedToInterpretations () const final
 
void getInterpretationIndexCumulativeCount (unsigned int *cumulativeCount) const final
 
void getInterpretationIndices (unsigned int *interpretationIndices) const final
 
int64_t getInterpretationIndexNullValue () const final
 
void getGridConnectionSetInformationFromInterpretationIndex (uint64_t *cellIndexPairs, unsigned short *gridIndexPairs, int *localFaceIndexPairs, unsigned int interpretationIndex) const final
 
std::string getInterpretationUuidFromIndex (unsigned int interpretationIndex) const final
 
unsigned int getInterpretationCount () const final
 
bool hasLocalFacePerCell () const final
 
int64_t getLocalFacePerCellIndexPairs (int *localFacePerCellIndexPairs) const final
 
bool isBasedOnMultiGrids () const final
 
void getGridIndexPairs (unsigned short *gridIndexPairs) const final
 
void setCellIndexPairsUsingExistingDataset (uint64_t cellIndexPairCount, const std::string &cellIndexPair, int64_t cellIndexPairNullValue, eml2::AbstractHdfProxy *proxy, int64_t gridIndexPairNullValue=-1, const std::string &gridIndexPair="") final
 
void setLocalFacePerCellIndexPairsUsingExistingDataset (const std::string &localFacePerCellIndexPair, int64_t nullValue, eml2::AbstractHdfProxy *proxy) final
 Sets the local face per cell index pairs of this grid connection set representation. Local face-per-cell indices are used because global face indices need not have been defined. The numerical values are already stored in an existing hdf5 dataset. Null value = -1 according to documentation. More...
 
void setConnectionInterpretationIndices (unsigned int const *interpretationIndices, unsigned int interpretationIndiceCount, unsigned int nullValue, eml2::AbstractHdfProxy *proxy) final
 
unsigned int getSupportingGridRepresentationCount () const final
 
common::DataObjectReference getSupportingGridRepresentationDor (unsigned int index) const final
 
std::string getXmlNamespace () const final
 
- Public Member Functions inherited from resqml2::GridConnectionSetRepresentation
class AbstractFeatureInterpretationgetInterpretationFromIndex (unsigned int interpretationIndex) const
 
void setCellIndexPairs (uint64_t cellIndexPairCount, uint64_t const *cellIndexPair, uint64_t cellIndexPairNullValue, eml2::AbstractHdfProxy *proxy, unsigned short gridIndexPairNullValue=(std::numeric_limits< unsigned short >::max)(), unsigned short *gridIndexPair=nullptr)
 Sets the cell index pairs of this grid connection set representation. More...
 
void setLocalFacePerCellIndexPairs (uint64_t cellIndexPairCount, int const *localFacePerCellIndexPair, int nullValue, eml2::AbstractHdfProxy *proxy)
 Sets the local face per cell index pairs of this grid connection set representation. Local face-per-cell indices are used because global face indices need not have been defined. The numerical values will be written as a new HDF5 dataset in an existing HDF5 file. More...
 
void pushBackInterpretation (class AbstractFeatureInterpretation *interp)
 
void pushBackSupportingGridRepresentation (class AbstractGridRepresentation *supportingGridRep)
 
class AbstractGridRepresentationgetSupportingGridRepresentation (unsigned int index) const
 
uint64_t getXyzPointCountOfPatch (unsigned int patchIndex) const override
 
void getXyzPointsOfPatch (unsigned int patchIndex, double *xyzPoints) const override
 
unsigned int getPatchCount () const override
 
virtual std::string getXmlTag () const override
 
- Public Member Functions inherited from resqml2::AbstractRepresentation
virtual ~AbstractRepresentation ()=default
 
class AbstractLocal3dCrsgetLocalCrs (unsigned int patchIndex) const
 
virtual common::DataObjectReference getLocalCrsDor (unsigned int patchIndex) const
 
std::vector< class AbstractProperty * > getPropertySet () const
 
void setInterpretation (class AbstractFeatureInterpretation *interp)
 
class AbstractFeatureInterpretationgetInterpretation () const
 
common::DataObjectReference getInterpretationDor () const
 
uint64_t getXyzPointCountOfAllPatches () const
 
void getXyzPointsOfPatchInGlobalCrs (unsigned int patchIndex, double *xyzPoints) const
 Gets all the xyz points of a particular patch of this representation. xyz points are given in the global CRS. More...
 
void getXyzPointsOfAllPatches (double *xyzPoints) const
 Gets all the xyz points of all patches of this representation. xyz points are given in the local CRS. More...
 
bool isInSingleLocalCrs () const
 
bool isInSingleGlobalCrs () const
 
void getXyzPointsOfAllPatchesInGlobalCrs (double *xyzPoints) const
 
AbstractRepresentationgetSeismicSupportOfPatch (const unsigned int &patchIndex) const
 
std::set< AbstractRepresentation * > getAllSeismicSupport () const
 
void pushBackIntoRepresentationSet (class RepresentationSetRepresentation *repSet)
 
void addSeismic3dCoordinatesToPatch (unsigned int patchIndex, double *inlines, double *crosslines, unsigned int pointCount, resqml2::AbstractRepresentation *seismicSupport, eml2::AbstractHdfProxy *proxy)
 
void addSeismic3dCoordinatesToPatch (unsigned int patchIndex, double startInline, double incrInline, unsigned int countInline, double startCrossline, double incrCrossline, unsigned int countCrossline, resqml2::AbstractRepresentation *seismicSupport)
 
void addSeismic2dCoordinatesToPatch (unsigned int patchIndex, double *lineAbscissa, resqml2::AbstractRepresentation *seismicSupport, eml2::AbstractHdfProxy *proxy)
 
void getSeismicLineAbscissaOfPointsOfPatch (unsigned int patchIndex, double *values) const
 
void getInlinesOfPointsOfPatch (unsigned int patchIndex, double *values) const
 
void getCrosslinesOfPointsOfPatch (unsigned int patchIndex, double *values) const
 
- 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)
 
void setGsoapProxy (gsoap_resqml2_0_1::eml20__AbstractCitedDataObject *gsoapProxy)
 
void setGsoapProxy (gsoap_eml2_1::eml21__AbstractObject *gsoapProxy)
 
gsoap_resqml2_0_1::eml20__AbstractCitedDataObject * getEml20GsoapProxy () const
 
gsoap_eml2_1::eml21__AbstractObject * getEml21GsoapProxy () const
 
gsoap_eml2_2::eml22__AbstractObject * getEml22GsoapProxy () const
 
void setGsoapProxy (gsoap_eml2_2::eml22__AbstractObject *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_1::eml21__DataObjectReference * newEmlReference () const
 
gsoap_eml2_2::eml22__DataObjectReference * newEml22Reference () 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::DataObjectRepositorygetRepository () const
 
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)
 
unsigned int getAliasCount () const
 
std::string getAliasAuthorityAtIndex (unsigned int index) const
 
std::string getAliasTitleAtIndex (unsigned int index) const
 
std::vector< eml2::Activity * > getActivitySet () const
 
unsigned int getActivityCount () const
 
eml2::ActivitygetActivity (unsigned int 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
 

Static Public Attributes

static const char * XML_NS
 
- Static Public Attributes inherited from resqml2::GridConnectionSetRepresentation
static const char * XML_TAG
 
- Static Public Attributes inherited from resqml2::AbstractRepresentation
static const char * XML_TAG
 

Additional Inherited Members

- Public Types inherited from resqml2::AbstractRepresentation
enum  indexableElement {
  NODE = 0 , EDGE = 1 , FACE = 2 , VOLUME = 3 ,
  PILLAR = 4
}
 
- Public Types inherited from common::AbstractObject
enum  hdfDatatypeEnum {
  UNKNOWN = 0 , DOUBLE = 1 , FLOAT = 2 , LONG_64 = 3 ,
  ULONG_64 = 4 , INT = 5 , UINT = 6 , SHORT = 7 ,
  USHORT = 8 , CHAR = 9 , UCHAR = 10
}
 
- Static Public Member Functions inherited from common::AbstractObject
static void setFormat (const std::string &vendor, const std::string &applicationName, const std::string &applicationVersionNumber)
 

Detailed Description

A grid connection set representation.

Constructor & Destructor Documentation

◆ GridConnectionSetRepresentation() [1/4]

resqml2_2::GridConnectionSetRepresentation::GridConnectionSetRepresentation ( gsoap_resqml2_0_1::eml20__DataObjectReference *  partialObject)
inline

Only to be used in partial transfer context

Parameters
[in,out]partialObjectIf non-null, the partial object.

◆ GridConnectionSetRepresentation() [2/4]

resqml2_2::GridConnectionSetRepresentation::GridConnectionSetRepresentation ( resqml2::AbstractFeatureInterpretation interp,
const std::string &  guid,
const std::string &  title 
)

Creates an instance of this class in a gsoap context.

Exceptions
std::invalid_argumentIf interp == nullptr.
Parameters
[in]interpThe interpretation the instance represents.
guidA guid for the instance to create.
titleA title for the instance to create.

◆ GridConnectionSetRepresentation() [3/4]

resqml2_2::GridConnectionSetRepresentation::GridConnectionSetRepresentation ( common::DataObjectRepository repo,
const std::string &  guid,
const std::string &  title 
)

Creates an instance of this class in a gsoap context.

Parameters
[in,out]repoThe repo where this instance will be stored.
guidA guid for the instance to create.
titleA title for the instance to create.

◆ GridConnectionSetRepresentation() [4/4]

resqml2_2::GridConnectionSetRepresentation::GridConnectionSetRepresentation ( gsoap_eml2_3::_resqml22__GridConnectionSetRepresentation *  fromGsoap)
inline

Creates an instance of this class by wrapping a gsoap instance.

Parameters
[in,out]fromGsoapIf non-null, from gsoap.

◆ ~GridConnectionSetRepresentation()

resqml2_2::GridConnectionSetRepresentation::~GridConnectionSetRepresentation ( )
virtualdefault

Destructor does nothing since the memory is managed by the gsoap context.

Reimplemented from resqml2::GridConnectionSetRepresentation.

Member Function Documentation

◆ getCellIndexPairCount()

uint64_t resqml2_2::GridConnectionSetRepresentation::getCellIndexPairCount ( ) const
finalvirtual

Gets the cell index pair count of this grid connection set representation.

Returns
The cell index pair count.

Implements resqml2::GridConnectionSetRepresentation.

◆ getCellIndexPairCountFromInterpretationIndex()

unsigned int resqml2_2::GridConnectionSetRepresentation::getCellIndexPairCountFromInterpretationIndex ( unsigned int  interpretationIndex) const
finalvirtual

Gets the count of cell index pairs which correspond to a particular interpretation.

Exceptions
std::invalid_argumentIf this grid connection set representation does not contain any (fault) interpretation association.
std::invalid_argumentIf the HDF5 library could not read the count of interpretation indices associated to this grid connection set representation.
std::logic_errorIf the intepretation indices are not stored in a HDF5 integer array.
std::out_of_rangeIf interpretationIndex is out of range.
Parameters
interpretationIndexThe index of an interpretation in the collection of feature interpretation of this grid connection set.
Returns
The count of cell index pairs which correspond to the interpretation at index interpretationIndex.

Implements resqml2::GridConnectionSetRepresentation.

◆ getCellIndexPairs()

uint64_t resqml2_2::GridConnectionSetRepresentation::getCellIndexPairs ( uint64_t *  cellIndexPairs) const
finalvirtual

Gets the cell index pairs of this grid connection set representation

Exceptions
logic_errorIf the cell index pairs are not stored in a HDF5 integer array.
Parameters
[out]cellIndexPairsA buffer for receiving the cell index pairs. It must be preallocated with a size of 2 * getCellIndexPairCount(). Two consecutive values cellIndexPairs[i] and cellIndexPairs[i+1] constitute a pair of cell index.
Returns
The null value.

Implements resqml2::GridConnectionSetRepresentation.

◆ getGridConnectionSetInformationFromInterpretationIndex()

void resqml2_2::GridConnectionSetRepresentation::getGridConnectionSetInformationFromInterpretationIndex ( uint64_t *  cellIndexPairs,
unsigned short *  gridIndexPairs,
int *  localFaceIndexPairs,
unsigned int  interpretationIndex 
) const
finalvirtual

Gets the cell index pairs, the grid index pairs (optional) and the local face index pairs (optional) which correspond to a particular interpretation.

Exceptions
std::invalid_argumentIf this grid connection set representation does not contain any (fault) interpretation association.
std::logic_errorIf the intepretation indices or interpretation indices cumulative counts are not stored in a HDF5 integer array.
Parameters
[out]cellIndexPairsMandatory buffer to receive the cell index pairs. Must be preallocated with getCellIndexPairCountFromInterpretationIndex(interpretationIndex).
[in,out]gridIndexPairsOptional buffer to receive the grid index pairs. Please set to nullptr for not collecting these pairs. Must be preallocated with getCellIndexPairCountFromInterpretationIndex(interpretationIndex).
[in,out]localFaceIndexPairsOptional buffer to receive the local face index pairs. Please set to nullptr for not collecting these pairs. Must be preallocated with getCellIndexPairCountFromInterpretationIndex(interpretationIndex).
interpretationIndexThe index of an interpretation in the collection of feature interpretation of this grid connection set.

Implements resqml2::GridConnectionSetRepresentation.

◆ getGridIndexPairs()

void resqml2_2::GridConnectionSetRepresentation::getGridIndexPairs ( unsigned short *  gridIndexPairs) const
finalvirtual

Gets the grid index pairs of this grid connection representation. Please check that this grid connection set representation is based on several grids thanks to isBasedOnMultiGrids() before calling this method.

Exceptions
std::invalid_argumentIf this representation is not based on several grids.
std::logic_errorIf the grid index pairs are not stored in a HDF5 integer array.
Parameters
[out]gridIndexPairsA buffer for receiving the grid index pairs. It must be preallocated with a size getCellIndexPairCount()*2 and won't be freed by fesapi.

Implements resqml2::GridConnectionSetRepresentation.

◆ getHdfProxyDor()

common::DataObjectReference resqml2_2::GridConnectionSetRepresentation::getHdfProxyDor ( ) const
finalvirtual

Gets the data object reference of the HDF proxy which is used for storing the numerical values of this representation (i.e. its geometry).

Exceptions
std::logic_errorIf this representation is partial.
Returns
The data object reference of the HDF proxy used for storing the geometry, or empty data object reference if it fails.

Implements resqml2::AbstractRepresentation.

◆ getInterpretationCount()

unsigned int resqml2_2::GridConnectionSetRepresentation::getInterpretationCount ( ) const
finalvirtual

Get the count of interpretations in this grid connection set.

Exceptions
range_errorIf the count of associated interpretations is strictly greater than unsigned int.
Returns
The interpretation count.

Implements resqml2::GridConnectionSetRepresentation.

◆ getInterpretationIndexCumulativeCount()

void resqml2_2::GridConnectionSetRepresentation::getInterpretationIndexCumulativeCount ( unsigned int *  cumulativeCount) const
finalvirtual

Gets the (fault) interpretation index cumulative counts of this grid connection representation.

Exceptions
std::invalid_argumentIf this grid connection set representation does not contain any (fault) interpretation association.
std::logic_errorIf the intepretation indices cumulative counts are not stored in a HDF5 integer array.
Parameters
[out]cumulativeCountA buffer for receiving the cumulative counts. Must be preallocated with a size of getCellIndexPairCount(). The number of interpretations associated to the connection at index i is cumulativeCount[i].

Implements resqml2::GridConnectionSetRepresentation.

◆ getInterpretationIndexNullValue()

int64_t resqml2_2::GridConnectionSetRepresentation::getInterpretationIndexNullValue ( ) const
finalvirtual

Gets the null value for interpretation index.

Exceptions
std::invalid_argumentIf this grid connection set representation does not contain any (fault) interpretation association.
std::logic_errorIf the intepretation indices are not stored in a HDF5 integer array.
Returns
The interpretation index null value.

Implements resqml2::GridConnectionSetRepresentation.

◆ getInterpretationIndices()

void resqml2_2::GridConnectionSetRepresentation::getInterpretationIndices ( unsigned int *  interpretationIndices) const
finalvirtual

Gets the (fault) interpretation indices of this grid connection representation.

Exceptions
std::invalid_argumentIf this grid connection set representation does not contain any (fault) interpretation association.
std::logic_errorIf the intepretation indices are not stored in a HDF5 integer array.
Parameters
[out]interpretationIndicesA buffer for receiving the interpretation indices. It must be preallocated with a size equals to the last value of cumulativeCount after calling getInterpretationIndexCumulativeCount(cumulativeCount).

Implements resqml2::GridConnectionSetRepresentation.

◆ getInterpretationUuidFromIndex()

std::string resqml2_2::GridConnectionSetRepresentation::getInterpretationUuidFromIndex ( unsigned int  interpretationIndex) const
finalvirtual

Gets the UUID of a particular (fault) interpretation of this grid connection set.

Exceptions
std::invalid_argumentIf this grid connection set representation does not contain fault interpretation association.
std::invalid_argumentIf the associated feature interpretation at position interpretationIndex is not a fault one. This is legal but not yet implemented.
std::out_of_rangeIf interpretationIndex is out of range.
Parameters
interpretationIndexThe index of a (fault) interpretation in the collection of feature interpretation of this grid connection set.
Returns
The UUID of the (fault) interpretation at index interpretationIndex.

Implements resqml2::GridConnectionSetRepresentation.

◆ getLocalFacePerCellIndexPairs()

int64_t resqml2_2::GridConnectionSetRepresentation::getLocalFacePerCellIndexPairs ( int *  localFacePerCellIndexPairs) const
finalvirtual

Gets the local face per cell index pairs of this grid connection representation. Please check that this grid connection set representation has local face per cell index pairs thanks to hasLocalFacePerCell() before calling this method.

Exceptions
std::invalid_argumentIf this representation has no local face per cell pair.
std::logic_errorIf the local face per cell index pairs are not stored in a HDF5 integer array.
Parameters
[out]localFacePerCellIndexPairsA buffer for receiving the local face per cell index pairs. It must be preallocated with a size of getCellIndexPairCount()*2 and won't be freed by fesapi.
Returns
The null value used in localFacePerCellIndexPairs.

Implements resqml2::GridConnectionSetRepresentation.

◆ getSupportingGridRepresentationCount()

unsigned int resqml2_2::GridConnectionSetRepresentation::getSupportingGridRepresentationCount ( ) const
finalvirtual

Gets the count of supporting grid representations of this grid connection representation.

Exceptions
std::range_errorIf the count of supporting grid representations is strictly greater than unsigned int maximum value.
Returns
The supporting grid representation count.

Implements resqml2::GridConnectionSetRepresentation.

◆ getSupportingGridRepresentationDor()

common::DataObjectReference resqml2_2::GridConnectionSetRepresentation::getSupportingGridRepresentationDor ( unsigned int  index) const
finalvirtual

Gets the data object reference of the supporting grid representation located at a specific index of this grid connection set representation.

Exceptions
std::out_of_rangeIf index is out of range.
Parameters
indexZero-based index of the supporting grid representation we look for.
Returns
The data object reference of the supporting grid representation at position index.

Implements resqml2::GridConnectionSetRepresentation.

◆ getXmlNamespace()

std::string resqml2_2::GridConnectionSetRepresentation::getXmlNamespace ( ) const
inlinefinalvirtual

Get the standard XML namespace for serializing this data object.

Implements common::AbstractObject.

◆ hasLocalFacePerCell()

bool resqml2_2::GridConnectionSetRepresentation::hasLocalFacePerCell ( ) const
finalvirtual

Indicates if this grid connection set representation contains information on the connected faces of the cell pairs.

Returns
True if there exists information on connected faces, false if not.

Implements resqml2::GridConnectionSetRepresentation.

◆ isAssociatedToInterpretations()

bool resqml2_2::GridConnectionSetRepresentation::isAssociatedToInterpretations ( ) const
finalvirtual

Indicates whether the cell connections are associated to interpretation or not.

Returns
True if associated to interpretations, false if not.

Implements resqml2::GridConnectionSetRepresentation.

◆ isBasedOnMultiGrids()

bool resqml2_2::GridConnectionSetRepresentation::isBasedOnMultiGrids ( ) const
finalvirtual

Indicates if this grid connection set representation is based on several grids.

Returns
True if it is based on several grids, false if not.

Implements resqml2::GridConnectionSetRepresentation.

◆ setCellIndexPairsUsingExistingDataset()

void resqml2_2::GridConnectionSetRepresentation::setCellIndexPairsUsingExistingDataset ( uint64_t  cellIndexPairCount,
const std::string &  cellIndexPair,
int64_t  cellIndexPairNullValue,
eml2::AbstractHdfProxy proxy,
int64_t  gridIndexPairNullValue = -1,
const std::string &  gridIndexPair = "" 
)
finalvirtual

Sets the cell index pairs of this grid connection set representation using some existing HDF datasets.

Exceptions
std::invalid_argumentIf cellIndexPairCount is 0.
std::invalid_argumentIf proxy is nullptr and no default HDF proxy is defined in the repository.
Parameters
cellIndexPairCountThe count of cell index pairs. It is half the size of the 1d array containing the cell index pairs (and of the one containing grid index pairs if there is one).
cellIndexPairThe HDF dataset path where we can find all the cell index pairs in a 1d array where the cell indices go faster than the pair.
cellIndexPairNullValueThe integer null value used in the HDF cell index pair dataset.
[in]proxyThe HDF proxy where the numerical values (cell indices) are stored. If nullptr, then the default HDF proxy of the repository will be used.
gridIndexPairNullValue(Optional) The integer null value used in the HDF grid index pair dataset.
gridIndexPair(Optional) The HDF dataset path where we can find all the grid index pairs in a 1d array where the grid indices go faster than the pair. The grid at an index must correspond to the cell at the same index in the cellIndexPair array. If empty string (default), then no grid index pair will be set and parameter gridIndexPairNullValue will be unused.

Implements resqml2::GridConnectionSetRepresentation.

◆ setConnectionInterpretationIndices()

void resqml2_2::GridConnectionSetRepresentation::setConnectionInterpretationIndices ( unsigned int const *  interpretationIndices,
unsigned int  interpretationIndiceCount,
unsigned int  nullValue,
eml2::AbstractHdfProxy proxy 
)
finalvirtual

For each connection in this grid connection set representation, allows to map zero or one feature interpretation. RESQML allows to map with more than one feature interpretation but this feature is not implemented yet.

Exceptions
std::invalid_argumentIf proxy == nullptr.
Parameters
[in]interpretationIndicesFor each connection, the index of the corresponding interpretation in the interpretation set of this grid connection set. The count of this array is interpretationIndiceCount.
interpretationIndiceCountThe count of interpretation indices.
nullValueThe null value must be used as the corresponding interpretation index for each connection which is not associated to any interpretation.
[in,out]proxyThe Hdf proxy where the numerical values will be stored.

Implements resqml2::GridConnectionSetRepresentation.

◆ setLocalFacePerCellIndexPairsUsingExistingDataset()

void resqml2_2::GridConnectionSetRepresentation::setLocalFacePerCellIndexPairsUsingExistingDataset ( const std::string &  localFacePerCellIndexPair,
int64_t  nullValue,
eml2::AbstractHdfProxy proxy 
)
finalvirtual

Sets the local face per cell index pairs of this grid connection set representation. Local face-per-cell indices are used because global face indices need not have been defined. The numerical values are already stored in an existing hdf5 dataset. Null value = -1 according to documentation.

Exceptions
std::invalid_argumentIf proxy == nullptr and no default HDF proxy is defined in the repository.
Parameters
localFacePerCellIndexPairThe HDF dataset path where we can find all the local Face Per CellIndex Pair in a 1d array. The size of the numerical values is 2 times the number of connections array of local face-per- cell indices for (Cell1,Cell2) for each connection.
nullValueThe null value.
[in,out]proxyThe HDF proxy where the numerical values (cell indices) are stored. if nullptr, then the repository default HDF proxy will be used.

Implements resqml2::GridConnectionSetRepresentation.

Member Data Documentation

◆ XML_NS

const char* resqml2_2::GridConnectionSetRepresentation::XML_NS
static

The standard XML namespace for serializing this data object.


The documentation for this class was generated from the following file: