libuav original

Dependents:   UAVCAN UAVCAN_Subscriber

Embed: (wiki syntax)

« Back to documentation index

ServiceCallResult< DataType > Class Template Reference

ServiceCallResult< DataType > Class Template Reference

Object of this type will be returned to the application as a result of service call. More...

#include <service_client.hpp>

Inherits uavcan::Noncopyable.

Public Member Functions

bool isSuccessful () const
 Shortcut to quickly check whether the call was successful.
const ResponseFieldTypegetResponse () const
 Returned reference points to a stack-allocated object.

Detailed Description

template<typename DataType>
class uavcan::ServiceCallResult< DataType >

Object of this type will be returned to the application as a result of service call.

Note that application ALWAYS gets this result, even when it times out or fails because of some other reason. The class is made noncopyable because it keeps a reference to a stack-allocated object.

Definition at line 54 of file service_client.hpp.


Member Function Documentation

const ResponseFieldType& getResponse (  ) const

Returned reference points to a stack-allocated object.

Definition at line 88 of file service_client.hpp.

bool isSuccessful (  ) const

Shortcut to quickly check whether the call was successful.

Definition at line 79 of file service_client.hpp.