Fesapi  0.13.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
Activity.h
1 /*-----------------------------------------------------------------------
2 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 "License"; you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
9 
10  http://www.apache.org/licenses/LICENSE-2.0
11 
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
17 under the License.
18 -----------------------------------------------------------------------*/
19 #pragma once
20 
21 #include "common/AbstractObject.h"
22 
23 namespace RESQML2_NS
24 {
25  class DLL_IMPORT_OR_EXPORT Activity : public COMMON_NS::AbstractObject
26  {
27  protected:
28  Activity() : AbstractObject() {}
29 
30  Activity(gsoap_resqml2_0_1::_resqml2__Activity* fromGsoap) : COMMON_NS::AbstractObject(fromGsoap) {}
31 
32  public:
33 
37  Activity(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : COMMON_NS::AbstractObject(partialObject) {}
38 
39  virtual ~Activity() {}
40 
45  virtual void pushBackParameter(const std::string title,
46  const std::string & value) = 0;
47 
52  virtual void pushBackParameter(const std::string title,
53  const LONG64 & value) = 0;
54 
59  virtual void pushBackParameter(const std::string title,
60  AbstractObject* resqmlObject) = 0;
61 
65  virtual unsigned int getParameterCount() const = 0;
66 
70  virtual unsigned int getParameterCount(const std::string & paramTitle) const = 0;
71  virtual const std::string & getParameterTitle(const unsigned int & index) const = 0;
72  virtual std::vector<unsigned int> getParameterIndexOfTitle(const std::string & paramTitle) const = 0;
73 
74  virtual bool isAFloatingPointQuantityParameter(const std::string & paramTitle) const = 0;
75  virtual bool isAFloatingPointQuantityParameter(const unsigned int & index) const = 0;
76  virtual std::vector<double> getFloatingPointQuantityParameterValue(const std::string & paramTitle) const = 0;
77  virtual double getFloatingPointQuantityParameterValue(const unsigned int & index) const = 0;
78 
79  virtual bool isAnIntegerQuantityParameter(const std::string & paramTitle) const = 0;
80  virtual bool isAnIntegerQuantityParameter(const unsigned int & index) const = 0;
81  virtual std::vector<LONG64> getIntegerQuantityParameterValue(const std::string & paramTitle) const = 0;
82  virtual LONG64 getIntegerQuantityParameterValue(const unsigned int & index) const = 0;
83 
84  virtual bool isAStringParameter(const std::string & paramTitle) const = 0;
85  virtual bool isAStringParameter(const unsigned int & index) const = 0;
86  virtual std::vector<std::string> getStringParameterValue(const std::string & paramTitle) const = 0;
87  virtual const std::string & getStringParameterValue(const unsigned int & index) const = 0;
88 
89  virtual bool isAResqmlObjectParameter(const std::string & paramTitle) const = 0;
90  virtual bool isAResqmlObjectParameter(const unsigned int & index) const = 0;
91  virtual std::vector<AbstractObject*> getResqmlObjectParameterValue(const std::string & paramTitle) const = 0;
92  virtual AbstractObject* getResqmlObjectParameterValue(const unsigned int & index) const = 0;
93 
97  virtual void setActivityTemplate(class ActivityTemplate* activityTemplate) = 0;
98 
102  virtual gsoap_resqml2_0_1::eml20__DataObjectReference* getActivityTemplateDor() const = 0;
103 
107  class ActivityTemplate* getActivityTemplate() const;
108 
112  std::vector<AbstractObject*> getResqmlObjectSet() const;
113 
114  static const char* XML_TAG;
115  std::string getXmlTag() const {return XML_TAG;}
116 
117  protected:
118 
119  std::vector<epc::Relationship> getAllEpcRelationships() const;
120  };
121 }
122 
Definition: ActivityTemplate.h:25
Activity(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: Activity.h:37
Definition: AbstractObject.h:27
std::string getXmlTag() const
Definition: Activity.h:115
Definition: Activity.h:25
Definition: AbstractHdfProxy.h:28
Definition: EpcDocument.h:49