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
prodml2_1::FluidSystem Class Reference

#include <FluidSystem.h>

Inheritance diagram for prodml2_1::FluidSystem:
common::AbstractObject

Public Member Functions

 FluidSystem (gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
 
 FluidSystem (common::DataObjectRepository *repo, const std::string &guid, const std::string &title, double temperatureValue, gsoap_eml2_2::eml22__ThermodynamicTemperatureUom temperatureUom, double pressureValue, gsoap_eml2_2::eml22__PressureUom pressureUom, gsoap_eml2_2::prodml21__ReservoirFluidKind reservoirFluidKind, double gasOilRatio, gsoap_eml2_2::eml22__VolumePerVolumeUom gasOilRatioUom)
 Creates an instance of this class in a gsoap context. More...
 
 FluidSystem (common::DataObjectRepository *repo, const std::string &guid, const std::string &title, gsoap_eml2_2::eml22__ReferenceCondition referenceCondition, gsoap_eml2_2::prodml21__ReservoirFluidKind reservoirFluidKind, double gasOilRatio, gsoap_eml2_2::eml22__VolumePerVolumeUom gasOilRatioUom)
 Creates an instance of this class in a gsoap context. More...
 
 FluidSystem (gsoap_eml2_2::prodml21__FluidSystem *fromGsoap)
 
 ~FluidSystem ()=default
 
double getStandardTemperatureValue () const
 
gsoap_eml2_2::eml22__ThermodynamicTemperatureUom getStandardTemperatureUom () const
 
double getStandardPressureValue () const
 
gsoap_eml2_2::eml22__PressureUom getStandardPressureUom () const
 
double getSolutionGORValue () const
 
gsoap_eml2_2::eml22__VolumePerVolumeUom getSolutionGORUom () const
 
void setSaturationPressure (double value, gsoap_eml2_2::eml22__PressureUom pressureUom, gsoap_eml2_2::prodml21__SaturationPointKind saturationPointKind)
 
bool hasSaturationPressureValue () const
 
double getSaturationPressureValue () const
 
gsoap_eml2_2::eml22__PressureUom getSaturationPressureUom () const
 
gsoap_eml2_2::prodml21__SaturationPointKind getSaturationPressurePointKind () const
 
void setRockFluidOrganization (resqml2::RockFluidOrganizationInterpretation *rockFluidOrg)
 
common::DataObjectReference getRockFluidOrganizationDor () const
 
resqml2::RockFluidOrganizationInterpretationgetRockFluidOrganization () const
 
std::vector< class FluidCharacterization * > getFluidCharacterizationSet () const
 
uint64_t getFluidCharacterizationCount () const
 
class FluidCharacterizationgetFluidCharacterization (uint64_t index) const
 
virtual std::string getXmlTag () const
 
std::string getXmlNamespace () const final
 
void loadTargetRelationships () final
 
- 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_TAG
 
static const char * XML_NS
 

Additional Inherited Members

- 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 fluid system.

Constructor & Destructor Documentation

◆ FluidSystem() [1/4]

prodml2_1::FluidSystem::FluidSystem ( 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.

◆ FluidSystem() [2/4]

prodml2_1::FluidSystem::FluidSystem ( common::DataObjectRepository repo,
const std::string &  guid,
const std::string &  title,
double  temperatureValue,
gsoap_eml2_2::eml22__ThermodynamicTemperatureUom  temperatureUom,
double  pressureValue,
gsoap_eml2_2::eml22__PressureUom  pressureUom,
gsoap_eml2_2::prodml21__ReservoirFluidKind  reservoirFluidKind,
double  gasOilRatio,
gsoap_eml2_2::eml22__VolumePerVolumeUom  gasOilRatioUom 
)

Creates an instance of this class in a gsoap context.

Exceptions
std::invalid_argumentIf repo == nullptr.
Parameters
[in,out]repoThe dataobject repo where the underlying gsoap proxy is going to be created.
guidThe guid to set to this instance. If empty then a new guid will be generated.
titleThe title.
temperatureValueThe temperature value in standard conditions.
temperatureUomThe temperature uom.
pressureValueThe pressure value in standard conditions.
pressureUomThe pressure uom.
reservoirFluidKindThe reservoir fluid kind.
gasOilRatioThe gas oil ratio.
gasOilRatioUomThe gas oil ratio uom.

◆ FluidSystem() [3/4]

prodml2_1::FluidSystem::FluidSystem ( common::DataObjectRepository repo,
const std::string &  guid,
const std::string &  title,
gsoap_eml2_2::eml22__ReferenceCondition  referenceCondition,
gsoap_eml2_2::prodml21__ReservoirFluidKind  reservoirFluidKind,
double  gasOilRatio,
gsoap_eml2_2::eml22__VolumePerVolumeUom  gasOilRatioUom 
)

Creates an instance of this class in a gsoap context.

Exceptions
std::invalid_argumentIf repo == nullptr.
Parameters
[in,out]repoThe dataobject repo where the underlying gsoap proxy is going to be created.
guidThe guid to set to this instance. If empty then a new guid will be generated.
titleThe title.
referenceConditionA wellknown couple of temperature-pressure in standard conditions.
reservoirFluidKindThe reservoir fluid kind.
gasOilRatioThe gas oil ratio.
gasOilRatioUomThe gas oil ratio uom.

◆ FluidSystem() [4/4]

prodml2_1::FluidSystem::FluidSystem ( gsoap_eml2_2::prodml21__FluidSystem *  fromGsoap)
inline

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

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

◆ ~FluidSystem()

prodml2_1::FluidSystem::~FluidSystem ( )
default

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

Member Function Documentation

◆ getFluidCharacterization()

class FluidCharacterization* prodml2_1::FluidSystem::getFluidCharacterization ( uint64_t  index) const

Gets a particular fluid characterization of this fluid system according to its position in the fluid characterizations ordering.

Exceptions
std::out_of_rangeIf index is out of the range of the representation set.
Parameters
indexZero-based index of the fluid characterization we look for.
Returns
A pointer to the fluid characterization at index.

◆ getFluidCharacterizationCount()

uint64_t prodml2_1::FluidSystem::getFluidCharacterizationCount ( ) const

Get the fluid characterizations count of this fluid system.

Returns
The fluid characterizations count of this fluid system.

◆ getFluidCharacterizationSet()

std::vector<class FluidCharacterization *> prodml2_1::FluidSystem::getFluidCharacterizationSet ( ) const

Gets all the fluid characterizations of this fluid system.

Returns
A vector of all the fluid characterizations of this fluid system.

◆ getRockFluidOrganization()

resqml2::RockFluidOrganizationInterpretation* prodml2_1::FluidSystem::getRockFluidOrganization ( ) const

Gets the associated Rock fluid organization

Returns
Null if it fails, else the associated Rock fluid organization.

◆ getRockFluidOrganizationDor()

common::DataObjectReference prodml2_1::FluidSystem::getRockFluidOrganizationDor ( ) const

Gets the associated Rock fluid organization dor

Returns
Empty if it fails, else the associated Rock fluid organization dor.

◆ getSaturationPressurePointKind()

gsoap_eml2_2::prodml21__SaturationPointKind prodml2_1::FluidSystem::getSaturationPressurePointKind ( ) const

Gets the saturation pressure point kind of this fluid system

Returns
The saturation pressure point kind of this fluid system.

◆ getSaturationPressureUom()

gsoap_eml2_2::eml22__PressureUom prodml2_1::FluidSystem::getSaturationPressureUom ( ) const

Gets the saturation pressure uom of this fluid system

Returns
The saturation pressure uom of this fluid system.

◆ getSaturationPressureValue()

double prodml2_1::FluidSystem::getSaturationPressureValue ( ) const

Gets the saturation pressure of this fluid system

Returns
The saturation pressure of this fluid system.

◆ getSolutionGORUom()

gsoap_eml2_2::eml22__VolumePerVolumeUom prodml2_1::FluidSystem::getSolutionGORUom ( ) const

Gets solution gas-oil ratio uom

Returns
The solution gas-oil ratio uom.

◆ getSolutionGORValue()

double prodml2_1::FluidSystem::getSolutionGORValue ( ) const

Gets solution gas-oil ratio value

Returns
The solution gas-oil ratio value.

◆ getStandardPressureUom()

gsoap_eml2_2::eml22__PressureUom prodml2_1::FluidSystem::getStandardPressureUom ( ) const

Gets standard pressure uom

Returns
The standard pressure uom.

◆ getStandardPressureValue()

double prodml2_1::FluidSystem::getStandardPressureValue ( ) const

Gets standard pressure value

Returns
The standard pressure value.

◆ getStandardTemperatureUom()

gsoap_eml2_2::eml22__ThermodynamicTemperatureUom prodml2_1::FluidSystem::getStandardTemperatureUom ( ) const

Gets standard temperature uom

Returns
The standard temperature uom.

◆ getStandardTemperatureValue()

double prodml2_1::FluidSystem::getStandardTemperatureValue ( ) const

Gets standard temperature value

Returns
The standard temperature value.

◆ getXmlNamespace()

std::string prodml2_1::FluidSystem::getXmlNamespace ( ) const
inlinefinalvirtual

Get the standard XML namespace for serializing this data object.

Implements common::AbstractObject.

◆ getXmlTag()

virtual std::string prodml2_1::FluidSystem::getXmlTag ( ) const
inlinevirtual

Get the standard XML tag without XML namespace for serializing this data object.

Returns
The XML tag.

Implements common::AbstractObject.

◆ hasSaturationPressureValue()

bool prodml2_1::FluidSystem::hasSaturationPressureValue ( ) const

Checks if this fluid system has a defined saturation pressure

Returns
True if this fluid system has a defined saturation pressure else false.

◆ loadTargetRelationships()

void prodml2_1::FluidSystem::loadTargetRelationships ( )
finalvirtual

Loads target relationships

Implements common::AbstractObject.

◆ setRockFluidOrganization()

void prodml2_1::FluidSystem::setRockFluidOrganization ( resqml2::RockFluidOrganizationInterpretation rockFluidOrg)

Formation water Stock tank oil Natural gas Sets the associated Rock fluid organization

Parameters
[in,out]rockFluidUnitIf non-null, the rock fluid unit.

◆ setSaturationPressure()

void prodml2_1::FluidSystem::setSaturationPressure ( double  value,
gsoap_eml2_2::eml22__PressureUom  pressureUom,
gsoap_eml2_2::prodml21__SaturationPointKind  saturationPointKind 
)

Sets the saturation pressure of this fluid system

Member Data Documentation

◆ XML_NS

const char* prodml2_1::FluidSystem::XML_NS
static

The standard XML namespace for serializing this data object.

◆ XML_TAG

const char* prodml2_1::FluidSystem::XML_TAG
static

The standard XML tag without XML namespace for serializing this data object.

Returns
The XML tag.

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