Fesapi 2.9.0.1
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
resqml2_0_1::Activity Class Referencefinal

#include <Activity.h>

Inheritance diagram for resqml2_0_1::Activity:

Public Member Functions

 Activity (gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
 
 Activity (eml2 ::ActivityTemplate *activityTemplate, const std::string &guid, const std::string &title)
 Creates an instance of this class in a gsoap context.
 
 Activity (gsoap_resqml2_0_1::_resqml20__Activity *fromGsoap)
 
 ~Activity ()=default
 
void pushBackParameter (const std::string &title, double value, gsoap_resqml2_0_1::resqml20__ResqmlUom uom=gsoap_resqml2_0_1::resqml20__ResqmlUom::Euc)
 
void pushBackParameter (const std::string &title, const std::string &value) final
 
void pushBackParameter (const std::string &title, int64_t value) final
 
void pushBackParameter (const std::string &title, AbstractObject *resqmlObject) final
 
uint64_t getParameterCount () const final
 
uint64_t getParameterCount (const std::string &paramTitle) const final
 
const std::string & getParameterTitle (unsigned int index) const final
 
std::vector< unsigned int > getParameterIndexOfTitle (const std::string &paramTitle) const final
 
bool isAFloatingPointQuantityParameter (const std::string &paramTitle) const final
 
bool isAFloatingPointQuantityParameter (unsigned int index) const final
 
std::vector< double > getFloatingPointQuantityParameterValue (const std::string &paramTitle) const final
 
double getFloatingPointQuantityParameterValue (unsigned int index) const final
 
std::vector< gsoap_resqml2_0_1::resqml20__ResqmlUom > getFloatingPointQuantityParameterUom (const std::string &paramTitle) const
 
gsoap_resqml2_0_1::resqml20__ResqmlUom getFloatingPointQuantityParameterUom (unsigned int index) const
 
bool isAnIntegerQuantityParameter (const std::string &paramTitle) const final
 
bool isAnIntegerQuantityParameter (unsigned int index) const final
 
std::vector< int32_t > getIntegerQuantityParameterValue (const std::string &paramTitle) const final
 
int64_t getIntegerQuantityParameterValue (unsigned int index) const final
 
bool isAStringParameter (const std::string &paramTitle) const final
 
bool isAStringParameter (unsigned int index) const final
 
std::vector< std::string > getStringParameterValue (const std::string &paramTitle) const final
 
const std::string & getStringParameterValue (unsigned int index) const final
 
bool isAResqmlObjectParameter (const std::string &paramTitle) const final
 
bool isAResqmlObjectParameter (unsigned int index) const final
 
std::vector< AbstractObject * > getResqmlObjectParameterValue (const std::string &paramTitle) const final
 
AbstractObject * getResqmlObjectParameterValue (unsigned int index) const final
 
void setActivityTemplate (eml2 ::ActivityTemplate *activityTemplate) final
 
common::DataObjectReference getActivityTemplateDor () const final
 
std::string getXmlNamespaceVersion () const final
 
std::string getXmlNamespace () const final
 
void loadTargetRelationships () final
 

Static Public Attributes

static const char * XML_NS
 

Detailed Description

An activity.

Constructor & Destructor Documentation

◆ Activity() [1/3]

resqml2_0_1::Activity::Activity ( 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.

◆ Activity() [2/3]

resqml2_0_1::Activity::Activity ( eml2 ::ActivityTemplate * activityTemplate,
const std::string & guid,
const std::string & title )

Creates an instance of this class in a gsoap context.

Exceptions
std::invalid_argumentIf activityTemplate == nullptr.
Parameters
[in]activityTemplateIf non-null, the activity template.
guidThe guid to set to the boundary horizon. If empty then a new guid will be generated.
titleA title for the instance to create.

◆ Activity() [3/3]

resqml2_0_1::Activity::Activity ( gsoap_resqml2_0_1::_resqml20__Activity * fromGsoap)
inline

Constructor

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

◆ ~Activity()

resqml2_0_1::Activity::~Activity ( )
default

Destructor

Member Function Documentation

◆ getActivityTemplateDor()

common::DataObjectReference resqml2_0_1::Activity::getActivityTemplateDor ( ) const
final

Gets activity template dor

Returns
Empty data object reference if it fails, else the activity template data object reference.

◆ getFloatingPointQuantityParameterUom() [1/2]

std::vector< gsoap_resqml2_0_1::resqml20__ResqmlUom > resqml2_0_1::Activity::getFloatingPointQuantityParameterUom ( const std::string & paramTitle) const

Gets floating point quantity parameter uom

Parameters
paramTitleThe parameter title.
Returns
The floating point quantity parameter uom.

◆ getFloatingPointQuantityParameterUom() [2/2]

gsoap_resqml2_0_1::resqml20__ResqmlUom resqml2_0_1::Activity::getFloatingPointQuantityParameterUom ( unsigned int index) const

Gets floating point quantity parameter uom

Parameters
indexZero-based index of the.
Returns
The floating point quantity parameter uom.

◆ getFloatingPointQuantityParameterValue() [1/2]

std::vector< double > resqml2_0_1::Activity::getFloatingPointQuantityParameterValue ( const std::string & paramTitle) const
final

Gets floating point quantity parameter value

Parameters
paramTitleThe parameter title.
Returns
The floating point quantity parameter value.

◆ getFloatingPointQuantityParameterValue() [2/2]

double resqml2_0_1::Activity::getFloatingPointQuantityParameterValue ( unsigned int index) const
final

Gets floating point quantity parameter value

Parameters
indexZero-based index of the.
Returns
The floating point quantity parameter value.

◆ getIntegerQuantityParameterValue() [1/2]

std::vector< int32_t > resqml2_0_1::Activity::getIntegerQuantityParameterValue ( const std::string & paramTitle) const
final

Gets integer quantity parameter value

Parameters
paramTitleThe parameter title.
Returns
The integer quantity parameter value.

◆ getIntegerQuantityParameterValue() [2/2]

int64_t resqml2_0_1::Activity::getIntegerQuantityParameterValue ( unsigned int index) const
final

Gets integer quantity parameter value

Parameters
indexZero-based index of the.
Returns
The integer quantity parameter value.

◆ getParameterCount() [1/2]

uint64_t resqml2_0_1::Activity::getParameterCount ( ) const
final

Get the count of all the parameters

Returns
The parameter count.

◆ getParameterCount() [2/2]

uint64_t resqml2_0_1::Activity::getParameterCount ( const std::string & paramTitle) const
final

Get the count of all the parameters which have got the same title.

Parameters
paramTitleThe parameter title.
Returns
The parameter count.

◆ getParameterIndexOfTitle()

std::vector< unsigned int > resqml2_0_1::Activity::getParameterIndexOfTitle ( const std::string & paramTitle) const
final

Gets parameter index of title

Parameters
paramTitleThe parameter title.
Returns
The parameter index of title.

◆ getParameterTitle()

const std::string & resqml2_0_1::Activity::getParameterTitle ( unsigned int index) const
final

Gets parameter title

Parameters
indexZero-based index of the.
Returns
The parameter title.

◆ getResqmlObjectParameterValue() [1/2]

std::vector< AbstractObject * > resqml2_0_1::Activity::getResqmlObjectParameterValue ( const std::string & paramTitle) const
final

Gets resqml object parameter value

Parameters
paramTitleThe parameter title.
Returns
Null if it fails, else the resqml object parameter value.

◆ getResqmlObjectParameterValue() [2/2]

AbstractObject * resqml2_0_1::Activity::getResqmlObjectParameterValue ( unsigned int index) const
final

Gets resqml object parameter value

Parameters
indexZero-based index of the.
Returns
Null if it fails, else the resqml object parameter value.

◆ getStringParameterValue() [1/2]

std::vector< std::string > resqml2_0_1::Activity::getStringParameterValue ( const std::string & paramTitle) const
final

Gets string parameter value

Parameters
paramTitleThe parameter title.
Returns
The string parameter value.

◆ getStringParameterValue() [2/2]

const std::string & resqml2_0_1::Activity::getStringParameterValue ( unsigned int index) const
final

Gets string parameter value

Parameters
indexZero-based index of the.
Returns
The string parameter value.

◆ getXmlNamespace()

std::string resqml2_0_1::Activity::getXmlNamespace ( ) const
inlinefinal

Get the standard XML namespace for serializing this data object.

◆ getXmlNamespaceVersion()

std::string resqml2_0_1::Activity::getXmlNamespaceVersion ( ) const
final

Gets XML namespace version

Returns
The XML namespace version.

◆ isAFloatingPointQuantityParameter() [1/2]

bool resqml2_0_1::Activity::isAFloatingPointQuantityParameter ( const std::string & paramTitle) const
final

Query if 'paramTitle' is a floating point quantity parameter

Parameters
paramTitleThe parameter title.
Returns
True if a floating point quantity parameter, false if not.

◆ isAFloatingPointQuantityParameter() [2/2]

bool resqml2_0_1::Activity::isAFloatingPointQuantityParameter ( unsigned int index) const
final

Query if 'index' is a floating point quantity parameter

Parameters
indexZero-based index of the.
Returns
True if a floating point quantity parameter, false if not.

◆ isAnIntegerQuantityParameter() [1/2]

bool resqml2_0_1::Activity::isAnIntegerQuantityParameter ( const std::string & paramTitle) const
final

Query if 'paramTitle' is an integer quantity parameter

Parameters
paramTitleThe parameter title.
Returns
True if an integer quantity parameter, false if not.

◆ isAnIntegerQuantityParameter() [2/2]

bool resqml2_0_1::Activity::isAnIntegerQuantityParameter ( unsigned int index) const
final

Query if 'index' is an integer quantity parameter

Parameters
indexZero-based index of the.
Returns
True if an integer quantity parameter, false if not.

◆ isAResqmlObjectParameter() [1/2]

bool resqml2_0_1::Activity::isAResqmlObjectParameter ( const std::string & paramTitle) const
final

Query if 'paramTitle' is a resqml object parameter

Parameters
paramTitleThe parameter title.
Returns
True if a resqml object parameter, false if not.

◆ isAResqmlObjectParameter() [2/2]

bool resqml2_0_1::Activity::isAResqmlObjectParameter ( unsigned int index) const
final

Query if 'index' is a resqml object parameter

Parameters
indexZero-based index of the.
Returns
True if a resqml object parameter, false if not.

◆ isAStringParameter() [1/2]

bool resqml2_0_1::Activity::isAStringParameter ( const std::string & paramTitle) const
final

Query if 'paramTitle' is a string parameter

Parameters
paramTitleThe parameter title.
Returns
True if a string parameter, false if not.

◆ isAStringParameter() [2/2]

bool resqml2_0_1::Activity::isAStringParameter ( unsigned int index) const
final

Query if 'index' is a string parameter

Parameters
indexZero-based index of the.
Returns
True if a string parameter, false if not.

◆ pushBackParameter()

void resqml2_0_1::Activity::pushBackParameter ( const std::string & title,
double value,
gsoap_resqml2_0_1::resqml20__ResqmlUom uom = gsoap_resqml2_0_1::resqml20__ResqmlUom::Euc )

Push back a double parameter in the instance. This parameter must exist in the associated activity template.

Parameters
titleThe title.
valueThe value.
uom(Optional) The uom.

◆ setActivityTemplate()

void resqml2_0_1::Activity::setActivityTemplate ( eml2 ::ActivityTemplate * activityTemplate)
final

Set the activity template of the activity

Parameters
[in,out]activityTemplateIf non-null, the activity template.

Member Data Documentation

◆ XML_NS

const char* resqml2_0_1::Activity::XML_NS
static

The standard XML namespace for serializing this data object.


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