Fesapi 2.9.0.1
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
|
#include <Activity.h>
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 ¶mTitle) const final |
const std::string & | getParameterTitle (unsigned int index) const final |
std::vector< unsigned int > | getParameterIndexOfTitle (const std::string ¶mTitle) const final |
bool | isAFloatingPointQuantityParameter (const std::string ¶mTitle) const final |
bool | isAFloatingPointQuantityParameter (unsigned int index) const final |
std::vector< double > | getFloatingPointQuantityParameterValue (const std::string ¶mTitle) const final |
double | getFloatingPointQuantityParameterValue (unsigned int index) const final |
std::vector< gsoap_resqml2_0_1::resqml20__ResqmlUom > | getFloatingPointQuantityParameterUom (const std::string ¶mTitle) const |
gsoap_resqml2_0_1::resqml20__ResqmlUom | getFloatingPointQuantityParameterUom (unsigned int index) const |
bool | isAnIntegerQuantityParameter (const std::string ¶mTitle) const final |
bool | isAnIntegerQuantityParameter (unsigned int index) const final |
std::vector< int32_t > | getIntegerQuantityParameterValue (const std::string ¶mTitle) const final |
int64_t | getIntegerQuantityParameterValue (unsigned int index) const final |
bool | isAStringParameter (const std::string ¶mTitle) const final |
bool | isAStringParameter (unsigned int index) const final |
std::vector< std::string > | getStringParameterValue (const std::string ¶mTitle) const final |
const std::string & | getStringParameterValue (unsigned int index) const final |
bool | isAResqmlObjectParameter (const std::string ¶mTitle) const final |
bool | isAResqmlObjectParameter (unsigned int index) const final |
std::vector< AbstractObject * > | getResqmlObjectParameterValue (const std::string ¶mTitle) 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 |
An activity.
|
inline |
Only to be used in partial transfer context
[in,out] | partialObject | If non-null, the partial object. |
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.
std::invalid_argument | If activityTemplate == nullptr . |
[in] | activityTemplate | If non-null, the activity template. |
guid | The guid to set to the boundary horizon. If empty then a new guid will be generated. | |
title | A title for the instance to create. |
|
inline |
Constructor
[in,out] | fromGsoap | If non-null, from gsoap. |
|
default |
Destructor
|
final |
Gets activity template dor
std::vector< gsoap_resqml2_0_1::resqml20__ResqmlUom > resqml2_0_1::Activity::getFloatingPointQuantityParameterUom | ( | const std::string & | paramTitle | ) | const |
Gets floating point quantity parameter uom
paramTitle | The parameter title. |
gsoap_resqml2_0_1::resqml20__ResqmlUom resqml2_0_1::Activity::getFloatingPointQuantityParameterUom | ( | unsigned int | index | ) | const |
Gets floating point quantity parameter uom
index | Zero-based index of the. |
|
final |
Gets floating point quantity parameter value
paramTitle | The parameter title. |
|
final |
Gets floating point quantity parameter value
index | Zero-based index of the. |
|
final |
Gets integer quantity parameter value
paramTitle | The parameter title. |
|
final |
Gets integer quantity parameter value
index | Zero-based index of the. |
|
final |
Get the count of all the parameters
|
final |
Get the count of all the parameters which have got the same title.
paramTitle | The parameter title. |
|
final |
Gets parameter index of title
paramTitle | The parameter title. |
|
final |
Gets parameter title
index | Zero-based index of the. |
|
final |
Gets resqml object parameter value
paramTitle | The parameter title. |
|
final |
Gets resqml object parameter value
index | Zero-based index of the. |
|
final |
Gets string parameter value
paramTitle | The parameter title. |
|
final |
Gets string parameter value
index | Zero-based index of the. |
|
inlinefinal |
Get the standard XML namespace for serializing this data object.
|
final |
Gets XML namespace version
|
final |
Query if 'paramTitle' is a floating point quantity parameter
paramTitle | The parameter title. |
|
final |
Query if 'index' is a floating point quantity parameter
index | Zero-based index of the. |
|
final |
Query if 'paramTitle' is an integer quantity parameter
paramTitle | The parameter title. |
|
final |
Query if 'index' is an integer quantity parameter
index | Zero-based index of the. |
|
final |
Query if 'paramTitle' is a resqml object parameter
paramTitle | The parameter title. |
|
final |
Query if 'index' is a resqml object parameter
index | Zero-based index of the. |
|
final |
Query if 'paramTitle' is a string parameter
paramTitle | The parameter title. |
|
final |
Query if 'index' is a string parameter
index | Zero-based index of the. |
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.
title | The title. |
value | The value. |
uom | (Optional) The uom. |
|
final |
Set the activity template of the activity
[in,out] | activityTemplate | If non-null, the activity template. |
|
static |
The standard XML namespace for serializing this data object.