IDLive Face C++ API 1.47.0
|
Optional result wrapper. Wraps an instance of a result class and only allows to access it when status is OK. More...
#include <facesdk/Common.h>
Public Member Functions | |
OptionalResult (const facesdk::FaceException &e) | |
OptionalResult (StatusInfo status) | |
OptionalResult (T value, StatusInfo status) | |
OptionalResult (const OptionalResult &other) | |
OptionalResult & | operator= (const OptionalResult &other) |
const T & | value () const |
Get result value. | |
const StatusInfo & | status () const |
bool | ok () const |
Friends | |
std::ostream & | operator<< (std::ostream &os, const OptionalResult &optional_result) |
Optional result wrapper. Wraps an instance of a result class and only allows to access it when status is OK.
|
inline |
Get result value.
facesdk::FaceException | if status is not OK. |