Fesapi 2.10.1.0
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) 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 |
std::string | getParameterTitle (uint64_t index) const final |
std::vector< uint64_t > | getParameterIndexOfTitle (const std::string ¶mTitle) const final |
bool | isAFloatingPointQuantityParameter (const std::string ¶mTitle) const final |
bool | isAFloatingPointQuantityParameter (uint64_t index) const final |
std::vector< double > | getFloatingPointQuantityParameterValue (const std::string ¶mTitle) const final |
double | getFloatingPointQuantityParameterValue (uint64_t index) const final |
std::vector< gsoap_resqml2_0_1::resqml20__ResqmlUom > | getFloatingPointQuantityParameterUom (const std::string ¶mTitle) const |
gsoap_resqml2_0_1::resqml20__ResqmlUom | getFloatingPointQuantityParameterUom (uint64_t index) const |
bool | isAnIntegerQuantityParameter (const std::string ¶mTitle) const final |
bool | isAnIntegerQuantityParameter (uint64_t index) const final |
std::vector< int64_t > | getIntegerQuantityParameterValue (const std::string ¶mTitle) const final |
int64_t | getIntegerQuantityParameterValue (uint64_t index) const final |
bool | isAStringParameter (const std::string ¶mTitle) const final |
bool | isAStringParameter (uint64_t index) const final |
std::vector< std::string > | getStringParameterValue (const std::string ¶mTitle) const final |
std::string | getStringParameterValue (uint64_t index) const final |
bool | isAResqmlObjectParameter (const std::string ¶mTitle) const final |
bool | isAResqmlObjectParameter (uint64_t index) const final |
std::vector< AbstractObject * > | getResqmlObjectParameterValue (const std::string ¶mTitle) const final |
AbstractObject * | getResqmlObjectParameterValue (uint64_t index) const final |
void | setActivityTemplate (eml2::ActivityTemplate *activityTemplate) final |
common::DataObjectReference | getActivityTemplateDor () const final |
std::string | getXmlNamespace () const final |
Public Member Functions inherited from eml2::Activity | |
Activity (gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject) | |
ActivityTemplate * | getActivityTemplate () const |
std::vector< AbstractObject * > | getResqmlObjectSet () const |
virtual std::string | getXmlTag () const 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) |
gsoap_resqml2_0_1::eml20__AbstractCitedDataObject * | getEml20GsoapProxy () const |
void | setGsoapProxy (gsoap_resqml2_0_1::eml20__AbstractCitedDataObject *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_3::eml23__DataObjectReference * | newEml23Reference () const |
gsoap_resqml2_0_1::resqml20__ContactElementReference * | newContactElementReference2_0_1 () const |
gsoap_eml2_3::resqml22__ContactElement * | newContactElementReference2_2 () const |
common::DataObjectRepository * | getRepository () 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) |
uint64_t | getAliasCount () const |
std::string | getAliasAuthorityAtIndex (uint64_t index) const |
std::string | getAliasTitleAtIndex (uint64_t index) const |
std::vector< eml2::Activity * > | getActivitySet () const |
uint64_t | getActivityCount () const |
eml2::Activity * | getActivity (uint64_t 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 |
std::string | buildEtp12Uri () const |
void | setUriSource (const std::string &uriSource) |
const std::string & | getUriSource () const |
std::string | getEpcSourceFolder () const |
void | changeToPartialObject () |
Static Public Attributes | |
static constexpr char const * | XML_NS = "eml23" |
Static Public Attributes inherited from eml2::Activity | |
static constexpr char const * | XML_TAG = "Activity" |
Additional Inherited Members | |
Public Types inherited from common::AbstractObject | |
enum class | numericalDatatypeEnum { UNKNOWN = 0 , DOUBLE = 1 , FLOAT = 2 , INT64 = 3 , UINT64 = 4 , INT32 = 5 , UINT32 = 6 , INT16 = 7 , UINT16 = 8 , INT8 = 9 , UINT8 = 10 } |
Static Public Member Functions inherited from common::AbstractObject | |
static void | setFormat (const std::string &vendor, const std::string &applicationName, const std::string &applicationVersionNumber) |
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. |
|
virtualdefault |
Destructor
Reimplemented from eml2::Activity.
|
finalvirtual |
Gets activity template dor
Implements eml2::Activity.
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 | ( | uint64_t | index | ) | const |
Gets floating point quantity parameter uom
index | Zero-based index of the. |
|
finalvirtual |
Gets floating point quantity parameter value
paramTitle | The parameter title. |
Implements eml2::Activity.
|
finalvirtual |
Gets floating point quantity parameter value
index | Zero-based index of the. |
Implements eml2::Activity.
|
finalvirtual |
Gets integer quantity parameter value
paramTitle | The parameter title. |
Implements eml2::Activity.
|
finalvirtual |
Gets integer quantity parameter value
index | Zero-based index of the. |
Implements eml2::Activity.
|
finalvirtual |
|
finalvirtual |
Get the count of all the parameters which have got the same title.
paramTitle | The parameter title. |
Implements eml2::Activity.
|
finalvirtual |
Gets parameter index of title
paramTitle | The parameter title. |
Implements eml2::Activity.
|
finalvirtual |
Gets parameter title
index | Zero-based index of the. |
Implements eml2::Activity.
|
finalvirtual |
Gets resqml object parameter value
paramTitle | The parameter title. |
Implements eml2::Activity.
|
finalvirtual |
Gets resqml object parameter value
index | Zero-based index of the. |
Implements eml2::Activity.
|
finalvirtual |
Gets string parameter value
paramTitle | The parameter title. |
Implements eml2::Activity.
|
finalvirtual |
Gets string parameter value
index | Zero-based index of the. |
Implements eml2::Activity.
|
inlinefinalvirtual |
Get the standard XML namespace for serializing this data object.
Implements common::AbstractObject.
|
finalvirtual |
Query if 'paramTitle' is a floating point quantity parameter
paramTitle | The parameter title. |
Implements eml2::Activity.
|
finalvirtual |
Query if 'index' is a floating point quantity parameter
index | Zero-based index of the. |
Implements eml2::Activity.
|
finalvirtual |
Query if 'paramTitle' is an integer quantity parameter
paramTitle | The parameter title. |
Implements eml2::Activity.
|
finalvirtual |
Query if 'index' is an integer quantity parameter
index | Zero-based index of the. |
Implements eml2::Activity.
|
finalvirtual |
Query if 'paramTitle' is a resqml object parameter
paramTitle | The parameter title. |
Implements eml2::Activity.
|
finalvirtual |
Query if 'index' is a resqml object parameter
index | Zero-based index of the. |
Implements eml2::Activity.
|
finalvirtual |
Query if 'paramTitle' is a string parameter
paramTitle | The parameter title. |
Implements eml2::Activity.
|
finalvirtual |
Query if 'index' is a string parameter
index | Zero-based index of the. |
Implements eml2::Activity.
|
finalvirtual |
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. |
Implements eml2::Activity.
|
finalvirtual |
Push back a string parameter in the instance. This parameter must exist in the associated activity template.
title | The title. |
value | The value. |
Implements eml2::Activity.
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. |
|
finalvirtual |
Push back an integer parameter in the instance. This parameter must exist in the associated activity template.
title | The title. |
value | The value. |
Implements eml2::Activity.
|
finalvirtual |
Set the activity template of the activity
[in,out] | activityTemplate | If non-null, the activity template. |
Implements eml2::Activity.
|
staticconstexpr |
The standard XML namespace for serializing this data object.