18 auto res = callExpression();
19 if (
static_cast<bool>(res))
25 return tResult(res.getErrorCode(), res.getDescription(), res.getLine(), res.getFile(), res.getFunction());
30#define TO_ADTF_RESULT(_expr_) adtf_util::getConvertedResult([&]() -> a_util::result::Result { return _expr_; })
40inline bool operator!=(
const tResult& oLeft,
const a_util::result::Result& oRight)
45inline bool operator==(
const a_util::result::Result& oLeft,
const tResult& oRight)
47 return operator==(oRight, oLeft);
50inline bool operator!=(
const a_util::result::Result& oLeft,
const tResult& oRight)
52 return operator!=(oRight, oLeft);
Copyright © Audi Electronics Venture GmbH.
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
tBool operator==(const tErrorCode &lhs, const tErrorCode &rhs)
Compare two POD error code types for equality.
tErrorCode GetErrorCode() const noexcept
Get error code.
A common result class usable as return value throughout.
std::int32_t getErrorCode() const
Get error code.
ADTF adtf_util Namespace - Within adtf this is used as util or adtf_util and also defined as A_UTILS_...
error_code_type value
Value of this error code.
Common include for component a_util::result.