My Project
Activity.h
1 /*-----------------------------------------------------------------------
2 Copyright F2I-CONSULTING, (2014-2016)
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 "resqml2/AbstractObject.h"
37 
38 namespace resqml2
39 {
40  class DLL_IMPORT_OR_EXPORT Activity : public AbstractObject
41  {
42  protected:
43  Activity() : AbstractObject() {}
44 
45  Activity(gsoap_resqml2_0_1::_resqml2__Activity* fromGsoap) : AbstractObject(fromGsoap) {}
46 
47  public:
48 
49  virtual ~Activity() {}
50 
55  virtual void pushBackParameter(const std::string title,
56  const std::string & value) = 0;
57 
62  virtual void pushBackParameter(const std::string title,
63  const LONG64 & value) = 0;
64 
69  virtual void pushBackParameter(const std::string title,
70  AbstractObject* resqmlObject) = 0;
71 
75  virtual unsigned int getParameterCount() const = 0;
76 
80  virtual unsigned int getParameterCount(const std::string & paramTitle) const = 0;
81  virtual const std::string & getParameterTitle(const unsigned int & index) const = 0;
82  virtual std::vector<unsigned int> getParameterIndexOfTitle(const std::string & paramTitle) const = 0;
83 
84  virtual bool isAFloatingPointQuantityParameter(const std::string & paramTitle) const = 0;
85  virtual bool isAFloatingPointQuantityParameter(const unsigned int & index) const = 0;
86  virtual std::vector<double> getFloatingPointQuantityParameterValue(const std::string & paramTitle) const = 0;
87  virtual double getFloatingPointQuantityParameterValue(const unsigned int & index) const = 0;
88 
89  virtual bool isAnIntegerQuantityParameter(const std::string & paramTitle) const = 0;
90  virtual bool isAnIntegerQuantityParameter(const unsigned int & index) const = 0;
91  virtual std::vector<LONG64> getIntegerQuantityParameterValue(const std::string & paramTitle) const = 0;
92  virtual LONG64 getIntegerQuantityParameterValue(const unsigned int & index) const = 0;
93 
94  virtual bool isAStringParameter(const std::string & paramTitle) const = 0;
95  virtual bool isAStringParameter(const unsigned int & index) const = 0;
96  virtual std::vector<std::string> getStringParameterValue(const std::string & paramTitle) const = 0;
97  virtual const std::string & getStringParameterValue(const unsigned int & index) const = 0;
98 
99  virtual bool isAResqmlObjectParameter(const std::string & paramTitle) const = 0;
100  virtual bool isAResqmlObjectParameter(const unsigned int & index) const = 0;
101  virtual std::vector<AbstractObject*> getResqmlObjectParameterValue(const std::string & paramTitle) const = 0;
102  virtual AbstractObject* getResqmlObjectParameterValue(const unsigned int & index) const = 0;
103 
107  virtual void setActivityTemplate(class ActivityTemplate* activityTemplate) = 0;
108 
112  virtual class ActivityTemplate* getActivityTemplate() const = 0;
113 
117  std::vector<AbstractObject*> getResqmlObjectSet() const;
118 
119  static const char* XML_TAG;
120  std::string getXmlTag() const {return XML_TAG;}
121 
122  protected:
123 
124  std::vector<epc::Relationship> getAllEpcRelationships() const;
125  };
126 }
std::string getXmlTag() const
Definition: Activity.h:120
Definition: ActivityTemplate.h:40
Definition: AbstractObject.h:41
Definition: Activity.h:40
Definition: EpcDocument.h:61