A ServiceCall is a proxy for a specific method of a specific service, providing a functor-like interface to that method, and encapsulation for checking the availability of the service and method (name, signature).
More...
#include <fw/ServiceCall.h>
template<class Ret, class... ARGS>
class mira::ServiceCall< Ret(ARGS...)>
A ServiceCall is a proxy for a specific method of a specific service, providing a functor-like interface to that method, and encapsulation for checking the availability of the service and method (name, signature).
See Authority::createServiceCall().
◆ ServiceCall() [1/2]
ServiceCall |
( |
std::string |
serviceProvider, |
|
|
std::string |
method |
|
) |
| |
|
inline |
Construct a ServiceCall object referring to a specific service provider and method.
- Parameters
-
serviceProvider | The resolved name of the service provider. This object knows nothing about namespaces and is unable to resolve an alias |
method | The method name |
◆ ServiceCall() [2/2]
Construct a new (invalid) ServiceCall object.
A default constructor must exist to enable creating a ServiceCall object by deserializing its description.
◆ operator()()
Ret operator() |
( |
const ARGS &... |
args | ) |
const |
|
inline |
Call operator to allow function like usage.
- Parameters
-
- Returns
- Ret return value
◆ call()
RPCFuture<Ret> call |
( |
const ARGS &... |
args | ) |
const |
|
inline |
◆ waitForServiceCall() [1/2]
void waitForServiceCall |
( |
| ) |
const |
|
inline |
◆ waitForServiceCall() [2/2]
bool waitForServiceCall |
( |
Duration |
timeout | ) |
const |
|
inline |
◆ getSignature()
◆ reflect()
void reflect |
( |
Reflector & |
r | ) |
|
|
inline |
The documentation for this class was generated from the following file: