$search

RTT::internal::OperationCallerC Class Reference

#include <OperationCallerC.hpp>

List of all members.

Public Member Functions

template<class ArgT >
OperationCallerCarg (ArgT &a)
OperationCallerCarg (base::DataSourceBase::shared_ptr a)
template<class ArgT >
OperationCallerCargC (const ArgT a)
bool call ()
void check ()
base::DataSourceBase::shared_ptr getCallDataSource ()
std::string const & getName () const
OperationInterfacePartgetOrp () const
base::DataSourceBase::shared_ptr getSendDataSource ()
base::DataSourceBase::shared_ptr getSendHandleDataSource ()
 OperationCallerC (const OperationCallerC &other)
 OperationCallerC (OperationInterfacePart *mr, const std::string &name, ExecutionEngine *caller)
 OperationCallerC ()
OperationCallerCoperator= (const OperationCallerC &other)
bool ready () const
template<class RetT >
OperationCallerCret (RetT &r)
OperationCallerCret (base::DataSourceBase::shared_ptr r)
OperationCallerCret (base::AttributeBase *r)
SendHandleC send ()
 ~OperationCallerC ()

Private Attributes

D * d
base::DataSourceBase::shared_ptr m
std::string mname
OperationInterfacePartofp
base::DataSourceBase::shared_ptr s

Detailed Description

A template-less manager for OperationCaller calls.

Definition at line 55 of file OperationCallerC.hpp.


Constructor & Destructor Documentation

RTT::internal::OperationCallerC::OperationCallerC (  ) 

The default constructor. Make a copy from another OperationCallerC object in order to make it usable.

RTT::internal::OperationCallerC::OperationCallerC ( OperationInterfacePart mr,
const std::string &  name,
ExecutionEngine caller 
)

The constructor.

See also:
Service
RTT::internal::OperationCallerC::OperationCallerC ( const OperationCallerC other  ) 

A OperationCallerC is copyable by value.

RTT::internal::OperationCallerC::~OperationCallerC (  ) 

Member Function Documentation

template<class ArgT >
OperationCallerC& RTT::internal::OperationCallerC::arg ( ArgT &  a  )  [inline]

Add an argument by reference to the OperationCaller.

Parameters:
a A value of which the reference is used and re-read each time the method is called. Thus if the contents of the source of a changes, call() will use the new contents.

Definition at line 118 of file OperationCallerC.hpp.

OperationCallerC& RTT::internal::OperationCallerC::arg ( base::DataSourceBase::shared_ptr  a  ) 

Add a datasource argument to the OperationCaller.

Parameters:
a A DataSource which contents are consulted each time when call() is called.
template<class ArgT >
OperationCallerC& RTT::internal::OperationCallerC::argC ( const ArgT  a  )  [inline]

Add a constant argument to the OperationCaller.

Parameters:
a A value of which a copy is made and this value is used each time in call().

Definition at line 106 of file OperationCallerC.hpp.

bool RTT::internal::OperationCallerC::call (  ) 

Call the contained method.

void RTT::internal::OperationCallerC::check (  ) 

Checks if this method is ready for calling, will throw if not so. Otherwise, does nothing.

Exceptions:
name_not_found_exception 
wrong_number_of_args_exception 
wrong_types_of_args_exception 
base::DataSourceBase::shared_ptr RTT::internal::OperationCallerC::getCallDataSource (  ) 

Get the contained data source for 'call'.

std::string const& RTT::internal::OperationCallerC::getName (  )  const

Returns the name of the operation that will be called.

OperationInterfacePart* RTT::internal::OperationCallerC::getOrp (  )  const

Returns the factory which we use to produce the operation call.

base::DataSourceBase::shared_ptr RTT::internal::OperationCallerC::getSendDataSource (  ) 

Get the contained data source for 'send'.

base::DataSourceBase::shared_ptr RTT::internal::OperationCallerC::getSendHandleDataSource (  ) 

Get the contained data source for send handle.

OperationCallerC& RTT::internal::OperationCallerC::operator= ( const OperationCallerC other  ) 

A OperationCallerC is assignable.

bool RTT::internal::OperationCallerC::ready (  )  const

Returns true if this method is ready for execution.

template<class RetT >
OperationCallerC& RTT::internal::OperationCallerC::ret ( RetT &  r  )  [inline]

Store the result of the method in variable.

Parameters:
r A reference to the variable in which the result is stored.

Definition at line 140 of file OperationCallerC.hpp.

OperationCallerC& RTT::internal::OperationCallerC::ret ( base::DataSourceBase::shared_ptr  r  ) 

Store the result of the method in a DataSource.

Parameters:
r A data source in which the result is stored.
OperationCallerC& RTT::internal::OperationCallerC::ret ( base::AttributeBase r  ) 

Store the result of the method in a task's attribute.

Parameters:
r A task attribute in which the result is stored.
SendHandleC RTT::internal::OperationCallerC::send (  ) 

Send the contained method. The returned SendHandleC is properly constructed, but still requires the .arg() arguments. The arguments to provide are the ones that collect requires for the sent operation. Once they have been added to the SendHandleC, you can collect() on that object.


Member Data Documentation

Definition at line 60 of file OperationCallerC.hpp.

Definition at line 62 of file OperationCallerC.hpp.

Definition at line 65 of file OperationCallerC.hpp.

Definition at line 64 of file OperationCallerC.hpp.

Definition at line 63 of file OperationCallerC.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


rtt
Author(s): RTT Developers
autogenerated on Fri Mar 1 16:27:48 2013