10 #include <catch2/catch.hpp>
12 CATCH_TRANSLATE_EXCEPTION(
const tResult& oError)
23 static std::string convert(
const tResult& oError)
29 template<tErrorCode::error_code_type Code>
48 struct StringMaker<
adtf::util::cFilename>
50 static std::string convert(
const adtf::util::cFilename& strString)
52 return strString.GetPtr();
58 #define REQUIRE_OK( ... ) REQUIRE(tResult(ERR_NOERROR) == __VA_ARGS__)
59 #define REQUIRE_FAILED(...) REQUIRE(tResult(ERR_NOERROR) != __VA_ARGS__)
61 #define CHECK_OK(...) CHECK(tResult(ERR_NOERROR) == __VA_ARGS__)
62 #define CHECK_FAILED(...) CHECK(tResult(ERR_NOERROR) != __VA_ARGS__)
Copyright © Audi Electronics Venture GmbH.
A common result class usable as return value throughout.
const tChar * GetPtr() const
This function returns the current string as an array of characters (c-style)
cString to_string(const tResult &i_oResult, eResultFormatFlags i_eFormatFlags=eResultFormatFlags::RFF_DisableNone, const tChar *i_strFormat=nullptr)
Copy all information of an assigned result object to a (formatted) string.
string_base< cStackString > cString
cString implementation for a stack string which works on stack if string is lower than A_UTILS_DEFAUL...
Namespace for entire ADTF SDK.
Basic error type template, specialized by _MAKE_ERROR() to create concrete error types.