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_eml2_3::_eml23__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) |
void | pushBackParameter (const std::string &title, int64_t value) |
void | pushBackParameter (const std::string &title, AbstractObject *resqmlObject) |
uint64_t | getParameterCount () const |
uint64_t | getParameterCount (const std::string ¶mTitle) const |
const std::string & | getParameterTitle (unsigned int index) const |
std::vector< unsigned int > | getParameterIndexOfTitle (const std::string ¶mTitle) const |
bool | isAFloatingPointQuantityParameter (const std::string ¶mTitle) const |
bool | isAFloatingPointQuantityParameter (unsigned int index) const |
std::vector< double > | getFloatingPointQuantityParameterValue (const std::string ¶mTitle) const |
double | getFloatingPointQuantityParameterValue (unsigned int index) const |
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 |
bool | isAnIntegerQuantityParameter (unsigned int index) const |
std::vector< int32_t > | getIntegerQuantityParameterValue (const std::string ¶mTitle) const |
int64_t | getIntegerQuantityParameterValue (unsigned int index) const |
bool | isAStringParameter (const std::string ¶mTitle) const |
bool | isAStringParameter (unsigned int index) const |
std::vector< std::string > | getStringParameterValue (const std::string ¶mTitle) const |
const std::string & | getStringParameterValue (unsigned int index) const |
bool | isAResqmlObjectParameter (const std::string ¶mTitle) const |
bool | isAResqmlObjectParameter (unsigned int index) const |
std::vector< AbstractObject * > | getResqmlObjectParameterValue (const std::string ¶mTitle) const |
AbstractObject * | getResqmlObjectParameterValue (unsigned int index) const |
void | setActivityTemplate (eml2 ::ActivityTemplate *activityTemplate) |
common::DataObjectReference | getActivityTemplateDor () const |
std::string | getXmlNamespace () const final |
Static Public Attributes | |
static constexpr char const * | XML_NS = "eml23" |
An activity.
|
inline |
Only to be used in partial transfer context
[in,out] | partialObject | If non-null, the partial object. |
eml2_3::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
common::DataObjectReference eml2_3::Activity::getActivityTemplateDor | ( | ) | const |
Gets activity template dor
std::vector< gsoap_resqml2_0_1::resqml20__ResqmlUom > eml2_3::Activity::getFloatingPointQuantityParameterUom | ( | const std::string & | paramTitle | ) | const |
Gets floating point quantity parameter uom
paramTitle | The parameter title. |
gsoap_resqml2_0_1::resqml20__ResqmlUom eml2_3::Activity::getFloatingPointQuantityParameterUom | ( | unsigned int | index | ) | const |
Gets floating point quantity parameter uom
index | Zero-based index of the. |
std::vector< double > eml2_3::Activity::getFloatingPointQuantityParameterValue | ( | const std::string & | paramTitle | ) | const |
Gets floating point quantity parameter value
paramTitle | The parameter title. |
double eml2_3::Activity::getFloatingPointQuantityParameterValue | ( | unsigned int | index | ) | const |
Gets floating point quantity parameter value
index | Zero-based index of the. |
std::vector< int32_t > eml2_3::Activity::getIntegerQuantityParameterValue | ( | const std::string & | paramTitle | ) | const |
Gets integer quantity parameter value
paramTitle | The parameter title. |
int64_t eml2_3::Activity::getIntegerQuantityParameterValue | ( | unsigned int | index | ) | const |
Gets integer quantity parameter value
index | Zero-based index of the. |
uint64_t eml2_3::Activity::getParameterCount | ( | ) | const |
Get the count of all the parameters
uint64_t eml2_3::Activity::getParameterCount | ( | const std::string & | paramTitle | ) | const |
Get the count of all the parameters which have got the same title.
paramTitle | The parameter title. |
std::vector< unsigned int > eml2_3::Activity::getParameterIndexOfTitle | ( | const std::string & | paramTitle | ) | const |
Gets parameter index of title
paramTitle | The parameter title. |
const std::string & eml2_3::Activity::getParameterTitle | ( | unsigned int | index | ) | const |
Gets parameter title
index | Zero-based index of the. |
std::vector< AbstractObject * > eml2_3::Activity::getResqmlObjectParameterValue | ( | const std::string & | paramTitle | ) | const |
Gets resqml object parameter value
paramTitle | The parameter title. |
AbstractObject * eml2_3::Activity::getResqmlObjectParameterValue | ( | unsigned int | index | ) | const |
Gets resqml object parameter value
index | Zero-based index of the. |
std::vector< std::string > eml2_3::Activity::getStringParameterValue | ( | const std::string & | paramTitle | ) | const |
Gets string parameter value
paramTitle | The parameter title. |
const std::string & eml2_3::Activity::getStringParameterValue | ( | unsigned int | index | ) | const |
Gets string parameter value
index | Zero-based index of the. |
|
inlinefinal |
Get the standard XML namespace for serializing this data object.
bool eml2_3::Activity::isAFloatingPointQuantityParameter | ( | const std::string & | paramTitle | ) | const |
Query if 'paramTitle' is a floating point quantity parameter
paramTitle | The parameter title. |
bool eml2_3::Activity::isAFloatingPointQuantityParameter | ( | unsigned int | index | ) | const |
Query if 'index' is a floating point quantity parameter
index | Zero-based index of the. |
bool eml2_3::Activity::isAnIntegerQuantityParameter | ( | const std::string & | paramTitle | ) | const |
Query if 'paramTitle' is an integer quantity parameter
paramTitle | The parameter title. |
bool eml2_3::Activity::isAnIntegerQuantityParameter | ( | unsigned int | index | ) | const |
Query if 'index' is an integer quantity parameter
index | Zero-based index of the. |
bool eml2_3::Activity::isAResqmlObjectParameter | ( | const std::string & | paramTitle | ) | const |
Query if 'paramTitle' is a resqml object parameter
paramTitle | The parameter title. |
bool eml2_3::Activity::isAResqmlObjectParameter | ( | unsigned int | index | ) | const |
Query if 'index' is a resqml object parameter
index | Zero-based index of the. |
bool eml2_3::Activity::isAStringParameter | ( | const std::string & | paramTitle | ) | const |
Query if 'paramTitle' is a string parameter
paramTitle | The parameter title. |
bool eml2_3::Activity::isAStringParameter | ( | unsigned int | index | ) | const |
Query if 'index' is a string parameter
index | Zero-based index of the. |
void eml2_3::Activity::pushBackParameter | ( | const std::string & | title, |
AbstractObject * | resqmlObject ) |
Push back a resqml object parameter in the instance. This parameter must exist in the associated activity template.
title | The title. | |
[in,out] | resqmlObject | If non-null, the resqml object. |
void eml2_3::Activity::pushBackParameter | ( | const std::string & | title, |
const std::string & | value ) |
Push back a string parameter in the instance. This parameter must exist in the associated activity template.
title | The title. |
value | The value. |
void eml2_3::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. |
void eml2_3::Activity::pushBackParameter | ( | const std::string & | title, |
int64_t | value ) |
Push back an integer parameter in the instance. This parameter must exist in the associated activity template.
title | The title. |
value | The value. |
void eml2_3::Activity::setActivityTemplate | ( | eml2 ::ActivityTemplate * | activityTemplate | ) |
Set the activity template of the activity
[in,out] | activityTemplate | If non-null, the activity template. |
|
staticconstexpr |
The standard XML namespace for serializing this data object.