iox::posix::PosixCallVerificator🔗
class which verifies the return value of a posix function call More...
#include <iceoryx_hoofs/posix_wrapper/posix_call.hpp>
Public Functions🔗
Name | |
---|---|
template <typename... SuccessReturnValues> PosixCallEvaluator< ReturnType > |
successReturnValue(const SuccessReturnValues... successReturnValues) the posix function call defines success through a single value |
template <typename... FailureReturnValues> PosixCallEvaluator< ReturnType > |
failureReturnValue(const FailureReturnValues... failureReturnValues) the posix function call defines failure through a single value |
PosixCallEvaluator< ReturnType > | returnValueMatchesErrno() the posix function call defines failure through return of the errno value instead of setting the errno |
Friends🔗
Name | |
---|---|
class | PosixCallBuilder |
Detailed Description🔗
template <typename ReturnType >
class iox::posix::PosixCallVerificator;
class which verifies the return value of a posix function call
Public Functions Documentation🔗
function successReturnValue🔗
template <typename... SuccessReturnValues>
PosixCallEvaluator< ReturnType > successReturnValue(
const SuccessReturnValues... successReturnValues
)
the posix function call defines success through a single value
Parameters:
- successReturnValues a list of values which define success
Return: the PosixCallEvaluator which evaluates the errno values
function failureReturnValue🔗
template <typename... FailureReturnValues>
PosixCallEvaluator< ReturnType > failureReturnValue(
const FailureReturnValues... failureReturnValues
)
the posix function call defines failure through a single value
Parameters:
- failureReturnValues a list of values which define failure
Return: the PosixCallEvaluator which evaluates the errno values
function returnValueMatchesErrno🔗
PosixCallEvaluator< ReturnType > returnValueMatchesErrno()
the posix function call defines failure through return of the errno value instead of setting the errno
Return: the PosixCallEvaluator which evaluates the errno values
Friends🔗
friend PosixCallBuilder🔗
friend class PosixCallBuilder(
PosixCallBuilder
);
Updated on 31 May 2022 at 11:34:55 CEST