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

Public Member Functions

 Activity (resqml2::ActivityTemplate *activityTemplate, const std::string &guid, const std::string &title)
 
 Activity (gsoap_resqml2_0_1::_resqml2__Activity *fromGsoap)
 
void pushBackParameter (const std::string title, const double &value, const gsoap_resqml2_0_1::resqml2__ResqmlUom &uom=gsoap_resqml2_0_1::resqml2__ResqmlUom__Euc)
 
void pushBackParameter (const std::string title, const std::string &value)
 
void pushBackParameter (const std::string title, const LONG64 &value)
 
void pushBackParameter (const std::string title, AbstractObject *resqmlObject)
 
unsigned int getParameterCount () const
 
unsigned int getParameterCount (const std::string &paramTitle) const
 
const std::string & getParameterTitle (const unsigned int &index) const
 
std::vector< unsigned int > getParameterIndexOfTitle (const std::string &paramTitle) const
 
bool isAFloatingPointQuantityParameter (const std::string &paramTitle) const
 
bool isAFloatingPointQuantityParameter (const unsigned int &index) const
 
std::vector< double > getFloatingPointQuantityParameterValue (const std::string &paramTitle) const
 
double getFloatingPointQuantityParameterValue (const unsigned int &index) const
 
std::vector< gsoap_resqml2_0_1::resqml2__ResqmlUom > getFloatingPointQuantityParameterUom (const std::string &paramTitle) const
 
gsoap_resqml2_0_1::resqml2__ResqmlUom getFloatingPointQuantityParameterUom (const unsigned int &index) const
 
bool isAnIntegerQuantityParameter (const std::string &paramTitle) const
 
bool isAnIntegerQuantityParameter (const unsigned int &index) const
 
std::vector< LONG64 > getIntegerQuantityParameterValue (const std::string &paramTitle) const
 
LONG64 getIntegerQuantityParameterValue (const unsigned int &index) const
 
bool isAStringParameter (const std::string &paramTitle) const
 
bool isAStringParameter (const unsigned int &index) const
 
std::vector< std::string > getStringParameterValue (const std::string &paramTitle) const
 
const std::string & getStringParameterValue (const unsigned int &index) const
 
bool isAResqmlObjectParameter (const std::string &paramTitle) const
 
bool isAResqmlObjectParameter (const unsigned int &index) const
 
std::vector< AbstractObject * > getResqmlObjectParameterValue (const std::string &paramTitle) const
 
AbstractObjectgetResqmlObjectParameterValue (const unsigned int &index) const
 
void setActivityTemplate (resqml2::ActivityTemplate *activityTemplate)
 
resqml2::ActivityTemplategetActivityTemplate () const
 
std::string getResqmlVersion () const
 
- Public Member Functions inherited from resqml2::Activity
virtual void pushBackParameter (const std::string title, AbstractObject *resqmlObject)=0
 
std::vector< AbstractObject * > getResqmlObjectSet () const
 
std::string getXmlTag () 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
 

Additional Inherited Members

- Static Public Attributes inherited from resqml2::Activity
static const char * XML_TAG = "Activity"
 
- Protected Member Functions inherited from resqml2::Activity
 Activity (gsoap_resqml2_0_1::_resqml2__Activity *fromGsoap)
 
std::vector< epc::RelationshipgetAllEpcRelationships () const
 
- 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::Activity::Activity ( resqml2::ActivityTemplate activityTemplate,
const std::string &  guid,
const std::string &  title 
)

Creates an instance of this class in a gsoap context.

Parameters
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

resqml2::ActivityTemplate * Activity::getActivityTemplate ( ) const
virtual

Get the activity template of the activity

Implements resqml2::Activity.

unsigned int Activity::getParameterCount ( ) const
virtual

Get the count of all the parameters

Implements resqml2::Activity.

unsigned int Activity::getParameterCount ( const std::string &  paramTitle) const
virtual

Get the count of all the parameters which have got the same title.

Implements resqml2::Activity.

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

Get the XML tag for the XML serialization of this instance

Reimplemented from resqml2::AbstractObject.

void resqml2_0_1::Activity::pushBackParameter ( const std::string  title,
const double &  value,
const gsoap_resqml2_0_1::resqml2__ResqmlUom &  uom = gsoap_resqml2_0_1::resqml2__ResqmlUom__Euc 
)

Push back a double parameter in the instance. This parameter must exist in the associated activity template.

void Activity::pushBackParameter ( const std::string  title,
const std::string &  value 
)
virtual

Push back a string parameter in the instance. This parameter must exist in the associated activity template.

Implements resqml2::Activity.

void Activity::pushBackParameter ( const std::string  title,
const LONG64 &  value 
)
virtual

Push back an integer parameter in the instance. This parameter must exist in the associated activity template.

Implements resqml2::Activity.

void Activity::pushBackParameter ( const std::string  title,
AbstractObject resqmlObject 
)

Push back a resqml object parameter in the instance. This parameter must exist in the associated activity template.

void Activity::setActivityTemplate ( resqml2::ActivityTemplate activityTemplate)
virtual

Set the activity template of the activity

Implements resqml2::Activity.


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