My Project
Public Member Functions | Static Public Attributes | List of all members
resqml2_0_1::ActivityTemplate Class Reference
Inheritance diagram for resqml2_0_1::ActivityTemplate:
resqml2::ActivityTemplate resqml2::AbstractObject

Public Member Functions

 ActivityTemplate (soap *soapContext, const std::string &guid, const std::string &title)
 
 ActivityTemplate (gsoap_resqml2_0_1::_resqml2__ActivityTemplate *fromGsoap)
 
void pushBackParameter (const std::string title, const bool &isInput, const bool isOutput, const unsigned int &minOccurs, const int &maxOccurs)
 
void pushBackParameter (const std::string title, const gsoap_resqml2_0_1::resqml2__ParameterKind &kind, const bool &isInput, const bool isOutput, const unsigned int &minOccurs, const int &maxOccurs)
 
void pushBackParameter (const std::string title, const bool &isInput, const bool isOutput, const unsigned int &minOccurs, const int &maxOccurs, const std::string &resqmlObjectContentType)
 
bool isAnExistingParameter (const std::string &paramTitle) const
 
const unsigned int getParameterCount () const
 
const std::string & getParameterTitle (const unsigned int &index) const
 
const std::vector< gsoap_resqml2_0_1::resqml2__ParameterKind > & getParameterAllowedKinds (const unsigned int &index) const
 
const std::vector< gsoap_resqml2_0_1::resqml2__ParameterKind > & getParameterAllowedKinds (const std::string &paramTitle) const
 
const bool & getParameterIsInput (const unsigned int &index) const
 
const bool & getParameterIsInput (const std::string &paramTitle) const
 
const bool & getParameterIsOutput (const unsigned int &index) const
 
const bool & getParameterIsOutput (const std::string &paramTitle) const
 
const LONG64 getParameterMinOccurences (const unsigned int &index) const
 
const LONG64 getParameterMinOccurences (const std::string &paramTitle) const
 
const LONG64 getParameterMaxOccurences (const unsigned int &index) const
 
const LONG64 getParameterMaxOccurences (const std::string &paramTitle) const
 
const std::vector< Activity * > & getActivityInstanceSet () const
 
std::string getResqmlVersion () const
 
std::string getXmlTag () const
 
- Public Member Functions inherited from resqml2::ActivityTemplate
const std::vector< Activity * > & getActivityInstanceSet () const
 
- Public Member Functions inherited from resqml2::AbstractObject
bool isPartial () const
 
std::string getUuid () const
 
std::string getTitle () const
 
std::string getEditor () const
 
time_t getCreation () const
 
std::string getOriginator () const
 
std::string getDescription () const
 
time_t getLastUpdate () const
 
std::string getFormat () const
 
std::string getDescriptiveKeywords () const
 
void setTitle (const std::string &title)
 
void setEditor (const std::string &editor)
 
void setCreation (const time_t &creation)
 
void setOriginator (const std::string &originator)
 
void setDescription (const std::string &description)
 
void setLastUpdate (const time_t &lastUpdate)
 
void setFormat (const std::string &format)
 
void setDescriptiveKeywords (const std::string &descriptiveKeywords)
 
void setMetadata (const std::string &title, const std::string &editor, const time_t &creation, const std::string &originator, const std::string &description, const time_t &lastUpdate, const std::string &format, const std::string &descriptiveKeywords)
 
void serializeIntoStream (std::ostream *stream)
 
gsoap_resqml2_0_1::eml__AbstractCitedDataObject * getGsoapProxy () const
 
soap * getGsoapContext () const
 
int getGsoapType () const
 
gsoap_resqml2_0_1::eml__DataObjectReference * newResqmlReference () const
 
gsoap_resqml2_0_1::resqml2__ContactElementReference * newResqmlContactElementReference () const
 
common::EpcDocumentgetEpcDocument () const
 
virtual std::string getXmlNamespace () const
 
std::string getContentType () const
 
std::string getPartNameInEpcDocument () const
 
std::string serializeIntoString ()
 
void addAlias (const std::string &authority, const std::string &title)
 
unsigned int getAliasCount () const
 
std::string getAliasAuthorityAtIndex (const unsigned int &index) const
 
std::string getAliasTitleAtIndex (const unsigned int &index) const
 
const std::vector< resqml2::Activity * > & getActivitySet () const
 
void addOrSetExtraMetadata (const std::string &key, const std::string &value)
 
std::tr1::unordered_map< std::string, std::string > getExtraMetadataSet () const
 
std::string getExtraMetadata (const std::string &key)
 
unsigned int getExtraMetadataCount () const
 
std::string getExtraMetadataKeyAtIndex (const unsigned int &index) const
 
std::string getExtraMetadataStringValueAtIndex (const unsigned int &index) const
 

Static Public Attributes

static const char * XML_TAG = "ActivityTemplate"
 
- Static Public Attributes inherited from resqml2::ActivityTemplate
static const char * XML_TAG = "ActivityTemplate"
 

Additional Inherited Members

- Protected Member Functions inherited from resqml2::ActivityTemplate
 ActivityTemplate (gsoap_resqml2_0_1::_resqml2__ActivityTemplate *fromGsoap)
 
- Protected Member Functions inherited from resqml2::AbstractObject
 AbstractObject (common::EpcDocument *epcDoc, gsoap_resqml2_0_1::eml__DataObjectReference *partialObject)
 Indicate whether methods update the XML (gSoap) or only the C++ classes of the API. More...
 
 AbstractObject (gsoap_resqml2_0_1::eml__AbstractCitedDataObject *proxy=nullptr)
 
void initMandatoryMetadata ()
 
void setMetadata (const std::string &guid, const std::string &title, const std::string &editor, const time_t &creation, const std::string &originator, const std::string &description, const time_t &lastUpdate, const std::string &format, const std::string &descriptiveKeywords)
 
- Static Protected Member Functions inherited from resqml2::AbstractObject
static void addActivityToResqmlObject (resqml2::Activity *activity, AbstractObject *resqmlObject)
 
- Protected Attributes inherited from resqml2::AbstractObject
gsoap_resqml2_0_1::eml__AbstractCitedDataObject * gsoapProxy2_0_1
 
common::EpcDocumentepcDocument
 
std::vector< resqml2::Activity * > activitySet
 
bool updateXml
 

Constructor & Destructor Documentation

resqml2_0_1::ActivityTemplate::ActivityTemplate ( soap *  soapContext,
const std::string &  guid,
const std::string &  title 
)

Creates an instance of this class in a gsoap context.

Parameters
soapContextThe soap context 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.

Member Function Documentation

std::string ActivityTemplate::getResqmlVersion ( ) const
virtual

Get the XML tag for the XML serialization of this instance

Reimplemented from resqml2::AbstractObject.

std::string resqml2_0_1::ActivityTemplate::getXmlTag ( ) const
inlinevirtual

Get the XML tag for the XML serialization of this instance

Reimplemented from resqml2::ActivityTemplate.

bool 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

Implements resqml2::ActivityTemplate.

void ActivityTemplate::pushBackParameter ( const std::string  title,
const bool &  isInput,
const bool  isOutput,
const unsigned int &  minOccurs,
const int &  maxOccurs 
)
virtual

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

Implements resqml2::ActivityTemplate.

void resqml2_0_1::ActivityTemplate::pushBackParameter ( const std::string  title,
const gsoap_resqml2_0_1::resqml2__ParameterKind &  kind,
const bool &  isInput,
const bool  isOutput,
const unsigned int &  minOccurs,
const int &  maxOccurs 
)

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

void ActivityTemplate::pushBackParameter ( const std::string  title,
const bool &  isInput,
const bool  isOutput,
const unsigned int &  minOccurs,
const int &  maxOccurs,
const std::string &  resqmlObjectContentType 
)
virtual

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

Parameters
resqmlObjectContentTypeIf empty, there is no constraint on the content type of this parameter.

Implements resqml2::ActivityTemplate.


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