My Project
Activity.h
1 /*-----------------------------------------------------------------------
2 Copyright F2I-CONSULTING, (2014-2017)
3 
4 philippe.verney@f2i-consulting.com
5 
6 This software is a computer program whose purpose is to access to data formatted using Energistics standards.
7 
8 This software is governed by the CeCILL-B license under French law and
9 abiding by the rules of distribution of free software. You can use,
10 modify and/ or redistribute the software under the terms of the CeCILL-B
11 license as circulated by CEA, CNRS and INRIA at the following URL
12 "http://www.cecill.info".
13 
14 As a counterpart to the access to the source code and rights to copy,
15 modify and redistribute granted by the license, users are provided only
16 with a limited warranty and the software's author, the holder of the
17 economic rights, and the successive licensors have only limited
18 liability.
19 
20 In this respect, the user's attention is drawn to the risks associated
21 with loading, using, modifying and/or developing or reproducing the
22 software by the user in light of its specific status of free software,
23 that may mean that it is complicated to manipulate, and that also
24 therefore means that it is reserved for developers and experienced
25 professionals having in-depth computer knowledge. Users are therefore
26 encouraged to load and test the software's suitability as regards their
27 requirements in conditions enabling the security of their systems and/or
28 data to be ensured and, more generally, to use and operate it in the
29 same conditions as regards security.
30 
31 The fact that you are presently reading this means that you have had
32 knowledge of the CeCILL-B license and that you accept its terms.
33 -----------------------------------------------------------------------*/
34 #pragma once
35 
36 #include "common/AbstractObject.h"
37 
38 namespace resqml2
39 {
40  class DLL_IMPORT_OR_EXPORT Activity : public common::AbstractObject
41  {
42  protected:
43  Activity() : AbstractObject() {}
44 
45  Activity(gsoap_resqml2_0_1::_resqml2__Activity* fromGsoap) : common::AbstractObject(fromGsoap) {}
46 
47  public:
48 
52  Activity(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : common::AbstractObject(partialObject) {}
53 
54  virtual ~Activity() {}
55 
60  virtual void pushBackParameter(const std::string title,
61  const std::string & value) = 0;
62 
67  virtual void pushBackParameter(const std::string title,
68  const LONG64 & value) = 0;
69 
74  virtual void pushBackParameter(const std::string title,
75  AbstractObject* resqmlObject) = 0;
76 
80  virtual unsigned int getParameterCount() const = 0;
81 
85  virtual unsigned int getParameterCount(const std::string & paramTitle) const = 0;
86  virtual const std::string & getParameterTitle(const unsigned int & index) const = 0;
87  virtual std::vector<unsigned int> getParameterIndexOfTitle(const std::string & paramTitle) const = 0;
88 
89  virtual bool isAFloatingPointQuantityParameter(const std::string & paramTitle) const = 0;
90  virtual bool isAFloatingPointQuantityParameter(const unsigned int & index) const = 0;
91  virtual std::vector<double> getFloatingPointQuantityParameterValue(const std::string & paramTitle) const = 0;
92  virtual double getFloatingPointQuantityParameterValue(const unsigned int & index) const = 0;
93 
94  virtual bool isAnIntegerQuantityParameter(const std::string & paramTitle) const = 0;
95  virtual bool isAnIntegerQuantityParameter(const unsigned int & index) const = 0;
96  virtual std::vector<LONG64> getIntegerQuantityParameterValue(const std::string & paramTitle) const = 0;
97  virtual LONG64 getIntegerQuantityParameterValue(const unsigned int & index) const = 0;
98 
99  virtual bool isAStringParameter(const std::string & paramTitle) const = 0;
100  virtual bool isAStringParameter(const unsigned int & index) const = 0;
101  virtual std::vector<std::string> getStringParameterValue(const std::string & paramTitle) const = 0;
102  virtual const std::string & getStringParameterValue(const unsigned int & index) const = 0;
103 
104  virtual bool isAResqmlObjectParameter(const std::string & paramTitle) const = 0;
105  virtual bool isAResqmlObjectParameter(const unsigned int & index) const = 0;
106  virtual std::vector<AbstractObject*> getResqmlObjectParameterValue(const std::string & paramTitle) const = 0;
107  virtual AbstractObject* getResqmlObjectParameterValue(const unsigned int & index) const = 0;
108 
112  virtual void setActivityTemplate(class ActivityTemplate* activityTemplate) = 0;
113 
117  virtual gsoap_resqml2_0_1::eml20__DataObjectReference* getActivityTemplateDor() const = 0;
118 
122  class ActivityTemplate* getActivityTemplate() const;
123 
127  std::vector<AbstractObject*> getResqmlObjectSet() const;
128 
129  static const char* XML_TAG;
130  std::string getXmlTag() const {return XML_TAG;}
131 
132  protected:
133 
134  std::vector<epc::Relationship> getAllEpcRelationships() const;
135  };
136 }
std::string getXmlTag() const
Definition: Activity.h:130
Activity(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: Activity.h:52
Definition: ActivityTemplate.h:40
Definition: AbstractObject.h:42
Definition: AbstractHdfProxy.h:43
Definition: Activity.h:40
Definition: EpcDocument.h:62