Skip to content

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 with the return value (.value) and the errno value (.errnum) of the function call

Friends🔗

friend PosixCallVerificator🔗

friend class PosixCallVerificator(
    PosixCallVerificator 
);

Updated on 10 February 2023 at 12:43:22 CET