Fesapi  0.13.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
ActivityTemplate.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 "resqml2_0_1/Activity.h"
22 
23 namespace RESQML2_NS
24 {
25  class DLL_IMPORT_OR_EXPORT ActivityTemplate : public COMMON_NS::AbstractObject
26  {
27  protected:
28  ActivityTemplate() : AbstractObject() {}
29 
30  ActivityTemplate(gsoap_resqml2_0_1::_resqml2__ActivityTemplate* fromGsoap) : COMMON_NS::AbstractObject(fromGsoap) {}
31 
32  public:
33 
37  ActivityTemplate(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : COMMON_NS::AbstractObject(partialObject) {}
38 
39  virtual ~ActivityTemplate() {}
40 
45  virtual void pushBackParameter(const std::string title,
46  const bool & isInput, const bool isOutput,
47  const unsigned int & minOccurs, const int & maxOccurs) = 0;
48 
54  virtual void pushBackParameter(const std::string title,
55  const bool & isInput, const bool isOutput,
56  const unsigned int & minOccurs, const int & maxOccurs,
57  const std::string & resqmlObjectContentType) = 0;
58 
63  virtual bool isAnExistingParameter(const std::string & paramTitle) const = 0;
64 
65  virtual const unsigned int getParameterCount() const = 0;
66  virtual const std::string & getParameterTitle(const unsigned int & index) const = 0;
67  virtual const bool & getParameterIsInput(const unsigned int & index) const = 0;
68  virtual const bool & getParameterIsInput(const std::string & paramTitle) const = 0;
69  virtual const bool & getParameterIsOutput(const unsigned int & index) const = 0;
70  virtual const bool & getParameterIsOutput(const std::string & paramTitle) const = 0;
71  virtual const LONG64 getParameterMinOccurences(const unsigned int & index) const = 0;
72  virtual const LONG64 getParameterMinOccurences(const std::string & paramTitle) const = 0;
73  virtual const LONG64 getParameterMaxOccurences(const unsigned int & index) const = 0;
74  virtual const LONG64 getParameterMaxOccurences(const std::string & paramTitle) const = 0;
75 
76  const std::vector<Activity*> & getActivityInstanceSet() const { return activityInstanceSet; }
77 
78  static const char* XML_TAG;
79  std::string getXmlTag() const {return XML_TAG;}
80 
81 
82  private:
83  std::vector<epc::Relationship> getAllEpcRelationships() const;
84  void importRelationshipSetFromEpc(COMMON_NS::EpcDocument * epcDoc) {}
85 
86  std::vector<Activity*> activityInstanceSet;
87 
89  };
90 }
91 
std::string getXmlTag() const
Definition: ActivityTemplate.h:79
Definition: ActivityTemplate.h:25
Definition: EpcDocument.h:154
Definition: AbstractObject.h:27
ActivityTemplate(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: ActivityTemplate.h:37
void setActivityTemplate(RESQML2_NS::ActivityTemplate *activityTemplate)
Definition: Activity.cpp:475
Definition: AbstractHdfProxy.h:28
Definition: EpcDocument.h:49