iceoryx_hoofs 2.0.5
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
iox::posix::PosixCallEvaluator< ReturnType > Class Template Reference

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 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
 
cxx::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 iox::posix::PosixCallEvaluator< ReturnType >

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

Member Function Documentation

◆ evaluate()

template<typename ReturnType >
cxx::expected< PosixCallResult< ReturnType >, PosixCallResult< ReturnType > > iox::posix::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 > iox::posix::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 > iox::posix::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

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