Fesapi
2.0.0.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. More... | |
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 |
unsigned int | getParameterCount () const final |
unsigned int | 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< int64_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 () |
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) |
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::DataObjectRepository * | getRepository () 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::Activity * | getActivity (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_NS |
Static Public Attributes inherited from eml2::Activity | |
static const char * | XML_TAG |
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) |
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. |
|
virtualdefault |
Destructor
Reimplemented from eml2::Activity.
|
finalvirtual |
Gets activity template dor
Implements eml2::Activity.
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. |
|
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 |
Gets XML namespace version
Reimplemented from 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.
|
virtual |
Loads target relationships
Reimplemented from eml2::Activity.
|
finalvirtual |
Pushes back a RESQML object parameter in this instance. This parameter must exist in the associated activity template.
std::invalid_argument | If resqmlObject is null. |
std::invalid_argument | If the parameter title does not exist in the associated activity template. |
std::invalid_argument | If the maximum number of occurrences has already been reached for parameter title . |
std::invalid_argument | If The parameter template title does not allow a a data object datatype. |
title | The title of the parameter to push back. | |
[in] | resqmlObject | The RESQML object, value of the parameter to push back. |
Implements eml2::Activity.
|
finalvirtual |
Pushes back a string parameter in this instance. This parameter must exist in the associated activity template.
std::invalid_argument | If the parameter title does not exist in the associated activity template. |
std::invalid_argument | If the maximum number of occurrences has already been reached for parameter title . |
std::invalid_argument | If The parameter template title does not allow a string datatype. |
title | The title of the parameter to push back. |
value | The value of the parameter to push back. |
Implements eml2::Activity.
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. |
|
finalvirtual |
Pushes back an integer parameter in this instance. This parameter must exist in the associated activity template.
std::invalid_argument | If the parameter title does not exist in the associated activity template. |
std::invalid_argument | If the maximum number of occurrences has already been reached for parameter title . |
std::invalid_argument | If The parameter template title does not allow a an integer datatype. |
title | The title of the parameter to push back. |
value | The value of the parameter to push back. |
Implements eml2::Activity.
|
finalvirtual |
Set the activity template of the activity
[in,out] | activityTemplate | If non-null, the activity template. |
Implements eml2::Activity.
|
static |
The standard XML namespace for serializing this data object.