00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 #ifndef ORO_OPERATIONREPOSITORYPART_HPP_
00040 #define ORO_OPERATIONREPOSITORYPART_HPP_
00041
00042 #include <string>
00043 #include <vector>
00044
00045 #include "base/DataSourceBase.hpp"
00046 #include "internal/DataSource.hpp"
00047 #include "ArgumentDescription.hpp"
00048
00049
00050 namespace RTT
00051 {
00069 class OperationInterfacePart
00070 {
00071 public:
00072 RTT_API virtual ~OperationInterfacePart();
00073
00078 virtual std::string getName() const = 0;
00079
00084 virtual std::string description() const = 0;
00085
00090 virtual std::vector<ArgumentDescription> getArgumentList() const = 0;
00091
00095 virtual std::string resultType() const = 0;
00096
00101 virtual unsigned int arity() const = 0;
00102
00109 virtual const types::TypeInfo* getArgumentType(unsigned int arg) const = 0;
00110
00116 virtual unsigned int collectArity() const = 0;
00117
00124 virtual const types::TypeInfo* getCollectType(unsigned int arg) const = 0;
00125
00138 virtual base::DataSourceBase::shared_ptr produce(const std::vector<base::DataSourceBase::shared_ptr>& args, ExecutionEngine* caller) const = 0;
00139
00154 virtual base::DataSourceBase::shared_ptr produceSend(const std::vector<base::DataSourceBase::shared_ptr>& args, ExecutionEngine* caller) const = 0;
00155
00164 virtual base::DataSourceBase::shared_ptr produceHandle() const = 0;
00165
00180 virtual base::DataSourceBase::shared_ptr produceCollect(const std::vector<base::DataSourceBase::shared_ptr>& args, internal::DataSource<bool>::shared_ptr blocking) const = 0;
00181
00191 virtual Handle produceSignal( base::ActionInterface* func, const std::vector<base::DataSourceBase::shared_ptr>& args) const = 0;
00192
00198 RTT_API virtual boost::shared_ptr<base::DisposableInterface> getLocalOperation() const;
00199 };
00200 }
00201 #endif