Microsoft Information Protection (MIP) SDK for C++: Reference 1.16
Doxygen-generated documentation for MIP SDK written in C++
|
Template class to return delegate operation results. More...
#include <src/api/mip/delegate_response.h>
Public Member Functions | |
DelegateResponse (const std::exception_ptr &exception) | |
Create a DelegateResponse to wrap returned objects or exceptions. | |
DelegateResponse (mip::Error &error) | |
Create a DelegateResponse to wrap returned objects or exceptions. | |
DelegateResponse (std::shared_ptr< T > data) | |
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. | |
Private Attributes | |
std::shared_ptr< T > | mData |
std::shared_ptr< mip::DelegateResponseError > | mDelegateResponseError |
Template class to return delegate operation results.
Definition at line 61 of file delegate_response.h.
|
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 |
Definition at line 68 of file delegate_response.h.
References DelegateResponse< T >::mData.
|
inline |
Create a DelegateResponse to wrap returned objects or exceptions.
error | The error that was encountered while processing the delegate |
Definition at line 79 of file delegate_response.h.
References DelegateResponse< T >::mDelegateResponseError.
|
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 |
Definition at line 90 of file delegate_response.h.
References DelegateResponse< T >::mDelegateResponseError.
|
inline |
Returns the requested data, nullptr if call triggered an exception.
Definition at line 103 of file delegate_response.h.
References DelegateResponse< T >::mData.
|
inline |
Return any error generated during the call, nullptr if call completed successfully.
Definition at line 110 of file delegate_response.h.
References DelegateResponse< T >::mDelegateResponseError.
|
private |
Definition at line 121 of file delegate_response.h.
Referenced by DelegateResponse< T >::DelegateResponse(), and DelegateResponse< T >::GetData().
|
private |
Definition at line 122 of file delegate_response.h.
Referenced by DelegateResponse< T >::DelegateResponse(), DelegateResponse< T >::DelegateResponse(), and DelegateResponse< T >::GetError().