#include <service_client.hpp>
Public Types | |
typedef ReceivedDataStructure< typename DataType::Response > | ResponseFieldType |
enum | Status { Success, ErrorTimeout } |
Public Member Functions | |
ServiceCallID | getCallID () const |
ResponseFieldType & | getResponse () |
const ResponseFieldType & | getResponse () const |
Status | getStatus () const |
bool | isSuccessful () const |
ServiceCallResult (Status arg_status, ServiceCallID arg_call_id, ResponseFieldType &arg_response) | |
Private Attributes | |
ServiceCallID | call_id_ |
Identifies the call. More... | |
ResponseFieldType & | response_ |
Returned data structure. Value undefined if the service call has failed. More... | |
const Status | status_ |
Whether successful or not. Failure to decode the response causes timeout. More... | |
Additional Inherited Members | |
![]() | |
Noncopyable () | |
~Noncopyable () | |
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.
typedef ReceivedDataStructure<typename DataType::Response> uavcan::ServiceCallResult< DataType >::ResponseFieldType |
Definition at line 57 of file service_client.hpp.
enum uavcan::ServiceCallResult::Status |
Enumerator | |
---|---|
Success | |
ErrorTimeout |
Definition at line 59 of file service_client.hpp.
|
inline |
Definition at line 67 of file service_client.hpp.
|
inline |
Definition at line 83 of file service_client.hpp.
|
inline |
Definition at line 89 of file service_client.hpp.
|
inline |
Returned reference points to a stack-allocated object.
Definition at line 88 of file service_client.hpp.
|
inline |
Definition at line 81 of file service_client.hpp.
|
inline |
Shortcut to quickly check whether the call was successful.
Definition at line 79 of file service_client.hpp.
|
private |
Identifies the call.
Definition at line 63 of file service_client.hpp.
|
private |
Returned data structure. Value undefined if the service call has failed.
Definition at line 64 of file service_client.hpp.
|
private |
Whether successful or not. Failure to decode the response causes timeout.
Definition at line 62 of file service_client.hpp.