iox::posix::PosixCallEvaluator🔗
class which is created by the verificator to evaluate the result of a posix call More...
#include <iceoryx_hoofs/posix_wrapper/posix_call.hpp>
Public Functions🔗
Name | |
---|---|
template <typename... IgnoredErrnos> PosixCallEvaluator< ReturnType > |
ignoreErrnos(const IgnoredErrnos... ignoredErrnos) const ignore specified errnos from the evaluation |
template <typename... SilentErrnos> PosixCallEvaluator< ReturnType > |
suppressErrorMessagesForErrnos(const SilentErrnos... silentErrnos) const silence specified errnos from printing error messages in the evaluation |
cxx::expected< PosixCallResult< ReturnType >, PosixCallResult< ReturnType > > | evaluate() const evaluate the result of a posix call |
Friends🔗
Name | |
---|---|
class | PosixCallVerificator |
Detailed Description🔗
template <typename ReturnType >
class iox::posix::PosixCallEvaluator;
class which is created by the verificator to evaluate the result of a posix call
Public Functions Documentation🔗
function ignoreErrnos🔗
template <typename... IgnoredErrnos>
PosixCallEvaluator< ReturnType > ignoreErrnos(
const IgnoredErrnos... ignoredErrnos
) const
ignore specified errnos from the evaluation
Parameters:
- ignoredErrnos the int32_t values of the errnos which should be ignored
Template Parameters:
- IgnoredErrnos a list of int32_t variables
Return: a PosixCallEvaluator for further setup of the evaluation
function suppressErrorMessagesForErrnos🔗
template <typename... SilentErrnos>
PosixCallEvaluator< ReturnType > suppressErrorMessagesForErrnos(
const SilentErrnos... silentErrnos
) const
silence specified errnos from printing error messages in the evaluation
Parameters:
- silentErrnos the int32_t values of the errnos which should be silent and not cause an error log
Template Parameters:
- SilentErrnos a list of int32_t variables
Return: a PosixCallEvaluator for further setup of the evaluation
function evaluate🔗
cxx::expected< PosixCallResult< ReturnType >, PosixCallResult< ReturnType > > evaluate() const
evaluate the result of a posix call
Return: returns an expected which contains in both cases a PosixCallResult
Friends🔗
friend PosixCallVerificator🔗
friend class PosixCallVerificator(
PosixCallVerificator
);
Updated on 31 May 2022 at 11:34:55 CEST