iceoryx2
C++ Bindings
Loading...
Searching...
No Matches
iox2::legacy::PosixCallEvaluator< ReturnType > Class Template Reference

class which is created by the verificator to evaluate the result of a posix call More...

#include <posix_call.hpp>

Public Member Functions

template<typename... IgnoredErrnos>
PosixCallEvaluator< ReturnType > ignoreErrnos (const IgnoredErrnos... ignoredErrnos) const &&noexcept
 ignore specified errnos from the evaluation
template<typename... SilentErrnos>
PosixCallEvaluator< ReturnType > suppressErrorMessagesForErrnos (const SilentErrnos... silentErrnos) const &&noexcept
 silence specified errnos from printing error messages in the evaluation
expected< PosixCallResult< ReturnType >, PosixCallResult< ReturnType > > evaluate () const &&noexcept
 evaluate the result of a posix call

Friends

template<typename>
class PosixCallVerificator

Detailed Description

template<typename ReturnType>
class iox2::legacy::PosixCallEvaluator< ReturnType >

class which is created by the verificator to evaluate the result of a posix call

Definition at line 71 of file posix_call.hpp.

Member Function Documentation

◆ evaluate()

template<typename ReturnType>
expected< PosixCallResult< ReturnType >, PosixCallResult< ReturnType > > iox2::legacy::PosixCallEvaluator< 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

◆ ignoreErrnos()

template<typename ReturnType>
template<typename... IgnoredErrnos>
PosixCallEvaluator< ReturnType > iox2::legacy::PosixCallEvaluator< ReturnType >::ignoreErrnos ( const IgnoredErrnos... ignoredErrnos) const &&
noexcept

ignore specified errnos from the evaluation

Template Parameters
IgnoredErrnosa list of int32_t variables
Parameters
[in]ignoredErrnosthe int32_t values of the errnos which should be ignored
Returns
a PosixCallEvaluator for further setup of the evaluation

◆ suppressErrorMessagesForErrnos()

template<typename ReturnType>
template<typename... SilentErrnos>
PosixCallEvaluator< ReturnType > iox2::legacy::PosixCallEvaluator< ReturnType >::suppressErrorMessagesForErrnos ( const SilentErrnos... silentErrnos) const &&
noexcept

silence specified errnos from printing error messages in the evaluation

Template Parameters
SilentErrnosa list of int32_t variables
Parameters
[in]silentErrnosthe 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

◆ PosixCallVerificator

template<typename ReturnType>
template<typename>
friend class PosixCallVerificator
friend

Definition at line 94 of file posix_call.hpp.

References PosixCallVerificator.

Referenced by PosixCallVerificator.


The documentation for this class was generated from the following file: