Template Class PosixCallEvaluator
Defined in File posix_call.hpp
Class Documentation
-
template<typename ReturnType>
class PosixCallEvaluator class which is created by the verificator to evaluate the result of a posix call
Public Functions
-
template<typename ...IgnoredErrnos>
PosixCallEvaluator<ReturnType> ignoreErrnos(const IgnoredErrnos... ignoredErrnos) const && noexcept ignore specified errnos from the evaluation
- Template Parameters:
IgnoredErrnos – a list of int32_t variables
- Parameters:
ignoredErrnos – [in] the int32_t values of the errnos which should be ignored
- Returns:
a PosixCallEvaluator for further setup of the evaluation
-
template<typename ...SilentErrnos>
PosixCallEvaluator<ReturnType> suppressErrorMessagesForErrnos(const SilentErrnos... silentErrnos) const && noexcept silence specified errnos from printing error messages in the evaluation
- Template Parameters:
SilentErrnos – a list of int32_t variables
- Parameters:
silentErrnos – [in] the int32_t values of the errnos which should be silent and not cause an error log
- Returns:
a PosixCallEvaluator for further setup of the evaluation
-
cxx::expected<PosixCallResult<ReturnType>, PosixCallResult<ReturnType>> evaluate() const && noexcept
evaluate the result of a posix call
- Returns:
returns an expected which contains in both cases a PosixCallResult<ReturnType> with the return value (.value) and the errno value (.errnum) of the function call
-
template<typename ...IgnoredErrnos>