AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface

◆ MessageUser() [1/2]

template<typename... Types>
void drama::thread::TUface::MessageUser ( const char format,
Types...  args 
)
inline

Use DRAMA to send a message to the user - safe format.

This is probably slower then say fprintf(), and provides no way to influence the formatting. But in many cases its type safety is what really matters.

Deprecated:
Use the normal string version and fmt::format() or std::format() in new code. That matches the more modern C++ style.
Parameters
formatThe format string.
Each % character is to be replaced by the corresponding argument. Note - only the % is needed and used, don't do for example "%d". To output a %, use "%%".
argsArguments to the format. Any arbitrary types can be formatted as long as an overload of the << operator is available for that type.
Template Parameters
Types...the remaining argument types.

References drama::CreateRunDramaTask(), MessageUser(), and drama::SafePrintf().