| Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET | Apache Qpid Documentation |
#include <qpid/client/TypedResult.h>
Inherits qpid::client::Completion.
Public Member Functions | |
| TypedResult (const Completion &c) | |
| T & | get () |
| Wait for the asynchronous command that returned this TypedResult to complete and return its result. | |
| void | wait () |
| Wait for the asynchronous command that returned this Completion to complete. | |
| bool | isComplete () |
| bool | isValid () const |
| bool | isNull () const |
| operator bool () const | |
| Conversion to bool supports idiom if (handle) { handle->. | |
| bool | operator! () const |
| Operator ! supports idiom if (!handle) { do_if_handle_is_null(); }. | |
| void | swap (Handle< CompletionImpl > &h) |
Protected Member Functions | |
| std::string | getResult () |
Protected Attributes | |
| Impl * | impl |
You can use get() to wait for completion and get the result value.
Definition at line 36 of file TypedResult.h.
| qpid::client::TypedResult< T >::TypedResult | ( | const Completion & | c | ) | [inline] |
Definition at line 43 of file TypedResult.h.
| T& qpid::client::TypedResult< T >::get | ( | ) | [inline] |
Wait for the asynchronous command that returned this TypedResult to complete and return its result.
| If | the command returns an error, get() throws an exception. |
Definition at line 53 of file TypedResult.h.
References qpid::framing::StructHelper::decode(), and qpid::client::Completion::getResult().
| std::string qpid::client::Completion::getResult | ( | ) | [protected, inherited] |
Referenced by qpid::client::TypedResult< T >::get().
| bool qpid::client::Completion::isComplete | ( | ) | [inherited] |
| bool qpid::client::Handle< CompletionImpl >::isNull | ( | ) | const [inline, inherited] |
| bool qpid::client::Handle< CompletionImpl >::isValid | ( | ) | const [inline, inherited] |
| qpid::client::Handle< CompletionImpl >::operator bool | ( | ) | const [inline, inherited] |
| bool qpid::client::Handle< CompletionImpl >::operator! | ( | ) | const [inline, inherited] |
| void qpid::client::Handle< CompletionImpl >::swap | ( | Handle< CompletionImpl > & | h | ) | [inline, inherited] |
| void qpid::client::Completion::wait | ( | ) | [inherited] |
Wait for the asynchronous command that returned this Completion to complete.
| If | the command returns an error. |
Impl* qpid::client::Handle< CompletionImpl >::impl [protected, inherited] |
1.4.7