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

◆ MessageUser() [1/3]

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

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 MessageUserF() interface. That matches the more modern C++ style.
See also
MessageUserF() formatted output.
SdsListToUser() for output of an SDS structure
MessageUserStreamBuf to implement a stream buffer that outputs using MessageUser().
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(), drama::MessageHandler::MessageUser(), and drama::SafePrintf().