RTT::GenerateDataSource Struct Reference

A function object which returns a vector of DataSources. More...

#include <rtt/DataSourceGenerator.hpp>

List of all members.

Public Member Functions

template<class A1 >
std::vector
< DataSourceBase::shared_ptr
operator() (A1 a1)
template<class A1 , class A2 >
std::vector
< DataSourceBase::shared_ptr
operator() (A1 a1, A2 a2)
template<class A1 , class A2 , class A3 >
std::vector
< DataSourceBase::shared_ptr
operator() (A1 a1, A2 a2, A3 a3)
template<class A1 , class A2 , class A3 , class A4 >
std::vector
< DataSourceBase::shared_ptr
operator() (A1 a1, A2 a2, A3 a3, A4 a4)

Detailed Description

A function object which returns a vector of DataSources.

You can provide plain value types (int, double,...) or DataSourceBase derived types. If you want the DataSource to be a reference to an existing variable, use the ref() function. For example :


     DataSourceBase::shared_ptr arg2 = ...
     ValueDataSource<ClassX>::shared_ptr arg3 = ...
     double arg4 = 1.234;
     vector<DataSourceBase::shared_ptr> arguments = GenerateDataSource()( 12.34, arg2.get(), arg3.get(), ref(arg4) );
     assert ( arguments.size() == 4 );

       

Definition at line 89 of file DataSourceGenerator.hpp.


The documentation for this struct was generated from the following file:
Generated on Thu Dec 23 13:22:42 2010 for Orocos Real-Time Toolkit by  doxygen 1.6.3