Fesapi  2.0.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
Public Member Functions | Static Public Attributes | List of all members
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, unsigned int minOccurs, int maxOccurs)
 
void pushBackParameter (const std::string &title, gsoap_resqml2_0_1::resqml20__ParameterKind kind, bool isInput, bool isOutput, unsigned int minOccurs, int maxOccurs)
 
void pushBackParameter (const std::string &title, bool isInput, bool isOutput, unsigned int minOccurs, int maxOccurs, std::string resqmlObjectContentType)
 
bool isAnExistingParameter (const std::string &paramTitle) const
 
unsigned int getParameterCount () const
 
const std::string & getParameterTitle (unsigned int index) const
 
std::vector< gsoap_resqml2_0_1::resqml20__ParameterKind > getParameterAllowedKinds (unsigned int index) const
 
std::vector< gsoap_resqml2_0_1::resqml20__ParameterKind > getParameterAllowedKinds (const std::string &paramTitle) const
 
bool getParameterIsInput (unsigned int index) const
 
bool getParameterIsInput (const std::string &paramTitle) const
 
bool getParameterIsOutput (unsigned int index) const
 
bool getParameterIsOutput (const std::string &paramTitle) const
 
int64_t getParameterMinOccurences (unsigned int index) const
 
int64_t getParameterMinOccurences (const std::string &paramTitle) const
 
int64_t getParameterMaxOccurences (unsigned int index) const
 
int64_t getParameterMaxOccurences (const std::string &paramTitle) const
 
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)
 
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::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)
 
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::ActivitygetActivity (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::ActivityTemplate
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)
 

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
virtual

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 ( unsigned int  index) const
virtual

Gets parameter allowed kinds

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

Implements eml2::ActivityTemplate.

◆ getParameterCount()

unsigned int eml2_3::ActivityTemplate::getParameterCount ( ) const
virtual

Gets parameter count

Returns
The parameter count.

Implements eml2::ActivityTemplate.

◆ getParameterIsInput() [1/2]

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

Gets parameter is input

Parameters
paramTitleThe parameter title.
Returns
The parameter is input.

Implements eml2::ActivityTemplate.

◆ getParameterIsInput() [2/2]

bool eml2_3::ActivityTemplate::getParameterIsInput ( unsigned int  index) const
virtual

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
virtual

Gets parameter is output

Parameters
paramTitleThe parameter title.
Returns
The parameter is output.

Implements eml2::ActivityTemplate.

◆ getParameterIsOutput() [2/2]

bool eml2_3::ActivityTemplate::getParameterIsOutput ( unsigned int  index) const
virtual

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
virtual

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 ( unsigned int  index) const
virtual

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
virtual

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 ( unsigned int  index) const
virtual

Gets parameter minimum occurences

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

Implements eml2::ActivityTemplate.

◆ getParameterTitle()

const std::string& eml2_3::ActivityTemplate::getParameterTitle ( unsigned int  index) const
virtual

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
virtual

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,
unsigned int  minOccurs,
int  maxOccurs 
)
virtual

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,
unsigned int  minOccurs,
int  maxOccurs,
std::string  resqmlObjectContentType 
)
virtual

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,
unsigned int  minOccurs,
int  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

const char* eml2_3::ActivityTemplate::XML_NS
static

The standard XML namespace for serializing this data object.


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