This factory is a template for creating parts. More...
#include <rtt/OperationFactory.hpp>
Public Types | |
|
typedef std::vector < ArgumentDescription > | Descriptions |
| The descriptions of an argumentlist. | |
|
typedef std::vector < DataSourceBase::shared_ptr > | Arguments |
| The arguments for an operation. | |
Public Member Functions | |
| void | clear () |
| Remove and delete all added operations. | |
| std::vector< std::string > | getNames () const |
| Get a list of all the names of the added operations. | |
| bool | hasMember (const std::string &name) const |
| Query if an operation is present. | |
| int | getArity (const std::string &name) const |
| Query the number of arguments of an operation. | |
| ResultT | produce (const std::string &name, const PropertyBag &args) const |
| Produce an object that contains an operation. | |
| ResultT | produce (const std::string &name, const std::vector< DataSourceBase::shared_ptr > &args) const |
| Produce an object that contains an operation. | |
| Descriptions | getArgumentList (const std::string &name) const |
| Get the names and descriptions of all arguments of an operation. | |
| std::string | getResultType (const std::string &name) const |
| Get the type name of the result type of an operation. | |
| std::string | getDescription (const std::string &name) const |
| Get the description of an operation. | |
| void | add (const std::string &name, detail::OperationFactoryPart< ResultT > *part) |
| Add a new operation to the interface. | |
| void | remove (const std::string &name) |
| Remove an added operation from the interface. | |
Protected Types | |
|
typedef std::map< std::string, detail::OperationFactoryPart < ResultT > * > | map_t |
Protected Attributes | |
| map_t | data |
This factory is a template for creating parts.
Definition at line 416 of file OperationFactory.hpp.
| void RTT::OperationFactory< ResultT >::add | ( | const std::string & | name, | |
| detail::OperationFactoryPart< ResultT > * | part | |||
| ) | [inline] |
Add a new operation to the interface.
| name | The name of the operation | |
| part | A part which creates the operation. |
Definition at line 557 of file OperationFactory.hpp.
| Descriptions RTT::OperationFactory< ResultT >::getArgumentList | ( | const std::string & | name | ) | const [inline] |
Get the names and descriptions of all arguments of an operation.
| name | The name of the operation |
Definition at line 516 of file OperationFactory.hpp.
| int RTT::OperationFactory< ResultT >::getArity | ( | const std::string & | name | ) | const [inline] |
Query the number of arguments of an operation.
| name | The name of the operation |
Definition at line 468 of file OperationFactory.hpp.
| std::string RTT::OperationFactory< ResultT >::getDescription | ( | const std::string & | name | ) | const [inline] |
Get the description of an operation.
| name | The name of the operation |
Definition at line 544 of file OperationFactory.hpp.
| std::string RTT::OperationFactory< ResultT >::getResultType | ( | const std::string & | name | ) | const [inline] |
Get the type name of the result type of an operation.
| name | The name of the operation |
Definition at line 530 of file OperationFactory.hpp.
| ResultT RTT::OperationFactory< ResultT >::produce | ( | const std::string & | name, | |
| const std::vector< DataSourceBase::shared_ptr > & | args | |||
| ) | const [inline] |
Produce an object that contains an operation.
| name | The name of the operation | |
| args | The arguments filled in as data sources. |
Definition at line 501 of file OperationFactory.hpp.
| ResultT RTT::OperationFactory< ResultT >::produce | ( | const std::string & | name, | |
| const PropertyBag & | args | |||
| ) | const [inline] |
Produce an object that contains an operation.
| name | The name of the operation | |
| args | The arguments filled in as properties. |
Definition at line 482 of file OperationFactory.hpp.
| void RTT::OperationFactory< ResultT >::remove | ( | const std::string & | name | ) | [inline] |
Remove an added operation from the interface.
| name | The name of the operation |
Definition at line 572 of file OperationFactory.hpp.
1.6.3