iceoryx_hoofs 2.0.8
Loading...
Searching...
No Matches
iox::posix::PosixCallVerificator< ReturnType > Class Template Reference

class which verifies the return value of a posix function call More...

#include <iceoryx_hoofs/posix_wrapper/posix_call.hpp>

Public Member Functions

template<typename... SuccessReturnValues>
PosixCallEvaluator< ReturnType > successReturnValue (const SuccessReturnValues... successReturnValues) &&noexcept
 the posix function call defines success through a single value
template<typename... FailureReturnValues>
PosixCallEvaluator< ReturnType > failureReturnValue (const FailureReturnValues... failureReturnValues) &&noexcept
 the posix function call defines failure through a single value
PosixCallEvaluator< ReturnType > returnValueMatchesErrno () &&noexcept
 the posix function call defines failure through return of the errno value instead of setting the errno

Friends

template<typename, typename...>
class PosixCallBuilder

Detailed Description

template<typename ReturnType>
class iox::posix::PosixCallVerificator< ReturnType >

class which verifies the return value of a posix function call

Member Function Documentation

◆ failureReturnValue()

template<typename ReturnType>
template<typename... FailureReturnValues>
PosixCallEvaluator< ReturnType > iox::posix::PosixCallVerificator< ReturnType >::failureReturnValue ( const FailureReturnValues... failureReturnValues) &&
noexcept

the posix function call defines failure through a single value

Parameters
[in]failureReturnValuesa list of values which define failure
Returns
the PosixCallEvaluator which evaluates the errno values

◆ returnValueMatchesErrno()

template<typename ReturnType>
PosixCallEvaluator< ReturnType > iox::posix::PosixCallVerificator< ReturnType >::returnValueMatchesErrno ( ) &&
noexcept

the posix function call defines failure through return of the errno value instead of setting the errno

Returns
the PosixCallEvaluator which evaluates the errno values

◆ successReturnValue()

template<typename ReturnType>
template<typename... SuccessReturnValues>
PosixCallEvaluator< ReturnType > iox::posix::PosixCallVerificator< ReturnType >::successReturnValue ( const SuccessReturnValues... successReturnValues) &&
noexcept

the posix function call defines success through a single value

Parameters
[in]successReturnValuesa list of values which define success
Returns
the PosixCallEvaluator which evaluates the errno values

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