OperationInterfacePart.hpp
Go to the documentation of this file.
1 /***************************************************************************
2  tag: The SourceWorks Tue Sep 7 00:55:18 CEST 2010 OperationInterfacePart.hpp
3 
4  OperationInterfacePart.hpp - description
5  -------------------
6  begin : Tue September 07 2010
7  copyright : (C) 2010 The SourceWorks
8  email : peter@thesourceworks.com
9 
10  ***************************************************************************
11  * This library is free software; you can redistribute it and/or *
12  * modify it under the terms of the GNU General Public *
13  * License as published by the Free Software Foundation; *
14  * version 2 of the License. *
15  * *
16  * As a special exception, you may use this file as part of a free *
17  * software library without restriction. Specifically, if other files *
18  * instantiate templates or use macros or inline functions from this *
19  * file, or you compile this file and link it with other files to *
20  * produce an executable, this file does not by itself cause the *
21  * resulting executable to be covered by the GNU General Public *
22  * License. This exception does not however invalidate any other *
23  * reasons why the executable file might be covered by the GNU General *
24  * Public License. *
25  * *
26  * This library is distributed in the hope that it will be useful, *
27  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
28  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
29  * Lesser General Public License for more details. *
30  * *
31  * You should have received a copy of the GNU General Public *
32  * License along with this library; if not, write to the Free Software *
33  * Foundation, Inc., 59 Temple Place, *
34  * Suite 330, Boston, MA 02111-1307 USA *
35  * *
36  ***************************************************************************/
37 
38 
39 #ifndef ORO_OPERATIONREPOSITORYPART_HPP_
40 #define ORO_OPERATIONREPOSITORYPART_HPP_
41 
42 #include <string>
43 #include <vector>
44 
45 #include "base/DataSourceBase.hpp"
46 #include "internal/DataSource.hpp"
47 #include "ArgumentDescription.hpp"
48 
49 
50 namespace RTT
51 {
70  {
71  public:
72  RTT_API virtual ~OperationInterfacePart();
73 
78  virtual std::string getName() const = 0;
79 
84  virtual std::string description() const = 0;
85 
90  virtual std::vector<ArgumentDescription> getArgumentList() const = 0;
91 
95  virtual std::string resultType() const = 0;
96 
101  virtual unsigned int arity() const = 0;
102 
109  virtual const types::TypeInfo* getArgumentType(unsigned int arg) const = 0;
110 
116  virtual unsigned int collectArity() const = 0;
117 
124  virtual const types::TypeInfo* getCollectType(unsigned int arg) const = 0;
125 
138  virtual base::DataSourceBase::shared_ptr produce(const std::vector<base::DataSourceBase::shared_ptr>& args, ExecutionEngine* caller) const = 0;
139 
154  virtual base::DataSourceBase::shared_ptr produceSend(const std::vector<base::DataSourceBase::shared_ptr>& args, ExecutionEngine* caller) const = 0;
155 
165 
180  virtual base::DataSourceBase::shared_ptr produceCollect(const std::vector<base::DataSourceBase::shared_ptr>& args, internal::DataSource<bool>::shared_ptr blocking) const = 0;
181 
182 #ifdef ORO_SIGNALLING_OPERATIONS
183 
195  virtual Handle produceSignal( base::ActionInterface* func, const std::vector<base::DataSourceBase::shared_ptr>& args, ExecutionEngine* subscriber) const = 0;
196 #endif
197 
202  RTT_API virtual boost::shared_ptr<base::DisposableInterface> getLocalOperation() const;
203  };
204 }
205 #endif /* ORO_OPERATIONREPOSITORYPART_HPP_ */
virtual base::DataSourceBase::shared_ptr produceSend(const std::vector< base::DataSourceBase::shared_ptr > &args, ExecutionEngine *caller) const =0
virtual const types::TypeInfo * getArgumentType(unsigned int arg) const =0
virtual const types::TypeInfo * getCollectType(unsigned int arg) const =0
virtual std::string getName() const =0
virtual std::string description() const =0
virtual unsigned int arity() const =0
virtual base::DataSourceBase::shared_ptr produceHandle() const =0
Based on the software pattern &#39;command&#39;, this interface allows execution of action objects...
virtual base::DataSourceBase::shared_ptr produce(const std::vector< base::DataSourceBase::shared_ptr > &args, ExecutionEngine *caller) const =0
virtual std::string resultType() const =0
boost::intrusive_ptr< DataSource< T > > shared_ptr
Definition: DataSource.hpp:115
virtual base::DataSourceBase::shared_ptr produceCollect(const std::vector< base::DataSourceBase::shared_ptr > &args, internal::DataSource< bool >::shared_ptr blocking) const =0
virtual RTT_API boost::shared_ptr< base::DisposableInterface > getLocalOperation() const
virtual std::vector< ArgumentDescription > getArgumentList() const =0
virtual RTT_API ~OperationInterfacePart()
virtual unsigned int collectArity() const =0
boost::intrusive_ptr< DataSourceBase > shared_ptr
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
Definition: Activity.cpp:53
The Handle holds the information, and allows manipulation, of a connection between a internal::Signal...
Definition: Handle.hpp:66


rtt
Author(s): RTT Developers
autogenerated on Tue Jun 25 2019 19:33:26