15 #ifndef A_UTIL_UTIL_RESULT_RESULT_UTIL_HEADER_INCLUDED
16 #define A_UTIL_UTIL_RESULT_RESULT_UTIL_HEADER_INCLUDED
49 const char*
format =
nullptr);
A common result class usable as return value throughout.
std::string toString(const Result &result, ResultFormatFlags formatting_flags=DisableNone, const char *format=nullptr)
Copy all information of an assigned result object to a (formatted) string.
ResultFormatFlags
Define flags.
@ DisableLine
Do not use the string representation of the line.
@ DisableCode
Do not use the string representation of the error code.
@ DisableMessage
Do not use the string representation of the error message.
@ DisableNone
Disable nothing, stringify everything.
@ DisableName
Do not use the string representation of the error string.
@ DisableFile
Do not use the string representation of the file name.
@ DisableFunction
Do not use the string representation of the function.
std::string format(const char *str_format,...)
printf()-like formatting of an input string.
Serves as the root component, with common functionality documented in core functionality.