Fesapi 2.10.1.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
Loading...
Searching...
No Matches
eml2_3::ActivityTemplate Class Referencefinal

#include <ActivityTemplate.h>

Inheritance diagram for eml2_3::ActivityTemplate:
eml2::ActivityTemplate common::AbstractObject

Public Member Functions

 ActivityTemplate (gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
 
 ActivityTemplate (common::DataObjectRepository *repo, const std::string &guid, const std::string &title)
 
 ActivityTemplate (gsoap_eml2_3::_eml23__ActivityTemplate *fromGsoap)
 
 ~ActivityTemplate ()=default
 
void pushBackParameter (const std::string &title, bool isInput, bool isOutput, uint64_t minOccurs, int64_t maxOccurs) final
 
void pushBackParameter (const std::string &title, gsoap_resqml2_0_1::resqml20__ParameterKind kind, bool isInput, bool isOutput, uint64_t minOccurs, int64_t maxOccurs)
 
void pushBackParameter (const std::string &title, bool isInput, bool isOutput, uint64_t minOccurs, int64_t maxOccurs, std::string resqmlObjectContentType) final
 
bool isAnExistingParameter (const std::string &paramTitle) const final
 
uint64_t getParameterCount () const final
 
std::string getParameterTitle (uint64_t index) const final
 
std::vector< gsoap_resqml2_0_1::resqml20__ParameterKind > getParameterAllowedKinds (uint64_t index) const final
 
std::vector< gsoap_resqml2_0_1::resqml20__ParameterKind > getParameterAllowedKinds (const std::string &paramTitle) const final
 
bool getParameterIsInput (uint64_t index) const final
 
bool getParameterIsInput (const std::string &paramTitle) const final
 
bool getParameterIsOutput (uint64_t index) const final
 
bool getParameterIsOutput (const std::string &paramTitle) const final
 
int64_t getParameterMinOccurences (uint64_t index) const
 
int64_t getParameterMinOccurences (const std::string &paramTitle) const final
 
int64_t getParameterMaxOccurences (uint64_t index) const final
 
int64_t getParameterMaxOccurences (const std::string &paramTitle) const final
 
std::string getXmlNamespace () const final
 
- Public Member Functions inherited from eml2::ActivityTemplate
 ActivityTemplate (gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
 
std::vector< Activity * > getActivityInstanceSet () 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::DataObjectRepositorygetRepository () 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::ActivitygetActivity (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::ActivityTemplate
static constexpr char const * XML_TAG = "ActivityTemplate"
 

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)
 

Detailed Description

An activity template.

Constructor & Destructor Documentation

◆ ActivityTemplate() [1/3]

eml2_3::ActivityTemplate::ActivityTemplate ( 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.

◆ ActivityTemplate() [2/3]

eml2_3::ActivityTemplate::ActivityTemplate ( common::DataObjectRepository * repo,
const std::string & guid,
const std::string & title )

Creates an instance of this class in a gsoap context.

Parameters
[in,out]repoThe repository where the underlying gsoap proxy is going to be created.
guidThe guid to set to the boundary horizon. If empty then a new guid will be generated.
titleA title for the instance to create.

◆ ActivityTemplate() [3/3]

eml2_3::ActivityTemplate::ActivityTemplate ( gsoap_eml2_3::_eml23__ActivityTemplate * fromGsoap)
inline

Constructor

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

◆ ~ActivityTemplate()

eml2_3::ActivityTemplate::~ActivityTemplate ( )
virtualdefault

Destructor

Reimplemented from eml2::ActivityTemplate.

Member Function Documentation

◆ getParameterAllowedKinds() [1/2]

std::vector< gsoap_resqml2_0_1::resqml20__ParameterKind > eml2_3::ActivityTemplate::getParameterAllowedKinds ( const std::string & paramTitle) const
finalvirtual

Gets parameter allowed kinds

Parameters
paramTitleThe parameter title.
Returns
The parameter allowed kinds.

Implements eml2::ActivityTemplate.

◆ getParameterAllowedKinds() [2/2]

std::vector< gsoap_resqml2_0_1::resqml20__ParameterKind > eml2_3::ActivityTemplate::getParameterAllowedKinds ( uint64_t index) const
finalvirtual

Gets parameter allowed kinds

Parameters
indexZero-based index of the.
Returns
The parameter allowed kinds.

Implements eml2::ActivityTemplate.

◆ getParameterCount()

uint64_t eml2_3::ActivityTemplate::getParameterCount ( ) const
finalvirtual

Gets parameter count

Returns
The parameter count.

Implements eml2::ActivityTemplate.

◆ getParameterIsInput() [1/2]

bool eml2_3::ActivityTemplate::getParameterIsInput ( const std::string & paramTitle) const
finalvirtual

Gets parameter is input

Parameters
paramTitleThe parameter title.
Returns
The parameter is input.

Implements eml2::ActivityTemplate.

◆ getParameterIsInput() [2/2]

bool eml2_3::ActivityTemplate::getParameterIsInput ( uint64_t index) const
finalvirtual

Gets parameter is input

Parameters
indexZero-based index of the.
Returns
The parameter is input.

Implements eml2::ActivityTemplate.

◆ getParameterIsOutput() [1/2]

bool eml2_3::ActivityTemplate::getParameterIsOutput ( const std::string & paramTitle) const
finalvirtual

Gets parameter is output

Parameters
paramTitleThe parameter title.
Returns
The parameter is output.

Implements eml2::ActivityTemplate.

◆ getParameterIsOutput() [2/2]

bool eml2_3::ActivityTemplate::getParameterIsOutput ( uint64_t index) const
finalvirtual

Gets parameter is output

Parameters
indexZero-based index of the.
Returns
The parameter is output.

Implements eml2::ActivityTemplate.

◆ getParameterMaxOccurences() [1/2]

int64_t eml2_3::ActivityTemplate::getParameterMaxOccurences ( const std::string & paramTitle) const
finalvirtual

Gets parameter maximum occurences

Parameters
paramTitleThe parameter title.
Returns
The parameter maximum occurences.

Implements eml2::ActivityTemplate.

◆ getParameterMaxOccurences() [2/2]

int64_t eml2_3::ActivityTemplate::getParameterMaxOccurences ( uint64_t index) const
finalvirtual

Gets parameter maximum occurences

Parameters
indexZero-based index of the.
Returns
The parameter maximum occurences.

Implements eml2::ActivityTemplate.

◆ getParameterMinOccurences() [1/2]

int64_t eml2_3::ActivityTemplate::getParameterMinOccurences ( const std::string & paramTitle) const
finalvirtual

Gets parameter minimum occurences

Parameters
paramTitleThe parameter title.
Returns
The parameter minimum occurences.

Implements eml2::ActivityTemplate.

◆ getParameterMinOccurences() [2/2]

int64_t eml2_3::ActivityTemplate::getParameterMinOccurences ( uint64_t index) const
virtual

Gets parameter minimum occurences

Parameters
indexZero-based index of the.
Returns
The parameter minimum occurences.

Implements eml2::ActivityTemplate.

◆ getParameterTitle()

std::string eml2_3::ActivityTemplate::getParameterTitle ( uint64_t index) const
finalvirtual

Gets parameter title

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

Implements eml2::ActivityTemplate.

◆ getXmlNamespace()

std::string eml2_3::ActivityTemplate::getXmlNamespace ( ) const
inlinefinalvirtual

Get the standard XML namespace for serializing this data object.

Implements common::AbstractObject.

◆ isAnExistingParameter()

bool eml2_3::ActivityTemplate::isAnExistingParameter ( const std::string & paramTitle) const
finalvirtual

Check if the instance contains a parameter with a particular title

Parameters
paramTitleThe title of the parameter we are looking for into the instance.
Returns
True if an existing parameter, false if not.

Implements eml2::ActivityTemplate.

◆ pushBackParameter() [1/3]

void eml2_3::ActivityTemplate::pushBackParameter ( const std::string & title,
bool isInput,
bool isOutput,
uint64_t minOccurs,
int64_t maxOccurs )
finalvirtual

Push back a parameter in the activity template instance. This parameter has an unconstrained type.

Parameters
titleThe title.
isInputTrue if is input, false if not.
isOutputTrue if is output, false if not.
minOccursThe minimum occurs.
maxOccursThe maximum occurs.

Implements eml2::ActivityTemplate.

◆ pushBackParameter() [2/3]

void eml2_3::ActivityTemplate::pushBackParameter ( const std::string & title,
bool isInput,
bool isOutput,
uint64_t minOccurs,
int64_t maxOccurs,
std::string resqmlObjectContentType )
finalvirtual

Push back a parameter in the activity template instance. This parameter must be of a data object kind.

Parameters
titleThe title.
isInputTrue if is input, false if not.
isOutputTrue if is output, false if not.
minOccursThe minimum occurs.
maxOccursThe maximum occurs.
resqmlObjectContentTypeIf empty, there is no constraint on the content type of this parameter.

Implements eml2::ActivityTemplate.

◆ pushBackParameter() [3/3]

void eml2_3::ActivityTemplate::pushBackParameter ( const std::string & title,
gsoap_resqml2_0_1::resqml20__ParameterKind kind,
bool isInput,
bool isOutput,
uint64_t minOccurs,
int64_t maxOccurs )

Push back a parameter in the activity template instance. This parameter must not be of a data object kind.

Parameters
titleThe title.
kindThe kind.
isInputTrue if is input, false if not.
isOutputTrue if is output, false if not.
minOccursThe minimum occurs.
maxOccursThe maximum occurs.

Member Data Documentation

◆ XML_NS

char const* eml2_3::ActivityTemplate::XML_NS = "eml23"
staticconstexpr

The standard XML namespace for serializing this data object.


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