class which is created by the verificator to evaluate the result of a posix call
More...
#include <posix_call.hpp>
|
| 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
|
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.
◆ evaluate()
template<typename ReturnType>
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>
ignore specified errnos from the evaluation
- Template Parameters
-
| IgnoredErrnos | a list of int32_t variables |
- Parameters
-
| [in] | ignoredErrnos | the 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>
silence specified errnos from printing error messages in the evaluation
- Template Parameters
-
| SilentErrnos | a list of int32_t variables |
- Parameters
-
| [in] | silentErrnos | the 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 |
The documentation for this class was generated from the following file: