|
MIP SDK — C++ 1.18
API Reference Documentation for C++
|
Template class to return delegate operation results. More...
#include <mip/delegate_response.h>
Public Member Functions | |
| DelegateResponse (std::shared_ptr< T > data) | |
| Create a DelegateResponse to wrap returned objects or exceptions. | |
| DelegateResponse (mip::Error &error) | |
| Create a DelegateResponse to wrap returned objects or exceptions. | |
| DelegateResponse (const std::exception_ptr &exception) | |
| Create a DelegateResponse to wrap returned objects or exceptions. | |
| std::shared_ptr< T > | GetData () const |
| Returns the requested data, nullptr if call triggered an exception. | |
| std::shared_ptr< mip::DelegateResponseError > | GetError () const |
| Return any error generated during the call, nullptr if call completed successfully. | |
| virtual | ~DelegateResponse () |
Protected Member Functions | |
| DelegateResponse () | |
Protected Member Functions inherited from DelegateResponseBase | |
| DelegateResponseBase () | |
Private Attributes | |
| std::shared_ptr< T > | mData |
| std::shared_ptr< mip::DelegateResponseError > | mDelegateResponseError |
Additional Inherited Members | |
Static Protected Member Functions inherited from DelegateResponseBase | |
| static long | GetReserved (const DelegateResponseBase &response) |
Protected Attributes inherited from DelegateResponseBase | |
| long | mReserved |
Template class to return delegate operation results.
|
inline |
Create a DelegateResponse to wrap returned objects or exceptions.
| data | The type of data that the delegate has created to return wrapped in a shared pointer |
|
inline |
Create a DelegateResponse to wrap returned objects or exceptions.
| error | The error that was encountered while processing the delegate |
|
inlineexplicit |
Create a DelegateResponse to wrap returned objects or exceptions.
| exception | If the delegate encountered an exception it will populate this field with a exception in a shared pointer |
|
inlinevirtual |
|
inlineprotected |
|
inline |
Returns the requested data, nullptr if call triggered an exception.
|
inline |
Return any error generated during the call, nullptr if call completed successfully.
|
private |
|
private |