#include <OperationBase.hpp>
Public Member Functions | |
const std::vector< std::string > & | getDescriptions () |
virtual DisposableInterface::shared_ptr | getImplementation ()=0 |
virtual const DisposableInterface::shared_ptr | getImplementation () const =0 |
const std::string & | getName () |
ExecutionEngine * | getOwner () const |
RTT_API | OperationBase (const std::string &name) |
bool | ready () const |
void | setOwner (ExecutionEngine *ee) |
virtual RTT_API | ~OperationBase () |
Protected Member Functions | |
RTT_API void | marg (const std::string &name, const std::string &description) |
RTT_API void | mdoc (const std::string &description) |
virtual void | ownerUpdated ()=0 |
Protected Attributes | |
std::vector< std::string > | descriptions |
std::string | mname |
ExecutionEngine * | mowner |
This base class serves as a template-less handle for operation objects and also stores the name and documentation of an operation.
Definition at line 67 of file OperationBase.hpp.
RTT::base::OperationBase::OperationBase | ( | const std::string & | name | ) |
Definition at line 54 of file OperationBase.cpp.
|
virtual |
Definition at line 60 of file OperationBase.cpp.
|
inline |
Returns all the documented descriptions of this operation, as a single list, starting with the operation's description, followed by the name, description pairs of each argument. In case no argument was documented, only the description of the operation is returned.
Definition at line 93 of file OperationBase.hpp.
|
pure virtual |
Returns the implementation object of this operation.
Implemented in RTT::Operation< Signature >, RTT::Operation< void(double)>, RTT::Operation< void(void)>, RTT::Operation< double &(const double &)>, RTT::Operation< const double &(void)>, RTT::Operation< double &(void)>, RTT::Operation< void(RTT::rt_string)>, RTT::Operation< double(int, double, bool, std::string)>, RTT::Operation< bool(std::string)>, RTT::Operation< double(int, double)>, RTT::Operation< double(int, double, bool)>, RTT::Operation< bool(std::string) >, RTT::Operation< double(double &)>, RTT::Operation< double(void)>, RTT::Operation< double(int, double, bool, std::string, float)>, and RTT::Operation< double(int)>.
|
pure virtual |
Implemented in RTT::Operation< Signature >, RTT::Operation< void(double)>, RTT::Operation< void(void)>, RTT::Operation< double &(const double &)>, RTT::Operation< const double &(void)>, RTT::Operation< double &(void)>, RTT::Operation< void(RTT::rt_string)>, RTT::Operation< double(int, double, bool, std::string)>, RTT::Operation< bool(std::string)>, RTT::Operation< double(int, double)>, RTT::Operation< double(int, double, bool)>, RTT::Operation< bool(std::string) >, RTT::Operation< double(double &)>, RTT::Operation< double(void)>, RTT::Operation< double(int, double, bool, std::string, float)>, and RTT::Operation< double(int)>.
|
inline |
Returns the name of this operation.
Definition at line 84 of file OperationBase.hpp.
|
inline |
Definition at line 122 of file OperationBase.hpp.
|
protected |
Definition at line 68 of file OperationBase.cpp.
|
protected |
Definition at line 64 of file OperationBase.cpp.
|
protectedpure virtual |
Implemented in RTT::Operation< Signature >, RTT::Operation< void(double)>, RTT::Operation< void(void)>, RTT::Operation< double &(const double &)>, RTT::Operation< const double &(void)>, RTT::Operation< double &(void)>, RTT::Operation< void(RTT::rt_string)>, RTT::Operation< double(int, double, bool, std::string)>, RTT::Operation< bool(std::string)>, RTT::Operation< double(int, double)>, RTT::Operation< double(int, double, bool)>, RTT::Operation< bool(std::string) >, RTT::Operation< double(double &)>, RTT::Operation< double(void)>, RTT::Operation< double(int, double, bool, std::string, float)>, and RTT::Operation< double(int)>.
|
inline |
An operation is ready if it has an implementation and is present in a TaskContext.
Definition at line 108 of file OperationBase.hpp.
|
inline |
Updates the owning ExecutionEngine that might execute this operation.
ee |
Definition at line 116 of file OperationBase.hpp.
|
protected |
Definition at line 71 of file OperationBase.hpp.
|
protected |
Definition at line 70 of file OperationBase.hpp.
|
protected |
Definition at line 72 of file OperationBase.hpp.