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

◆ ErsReport() [2/2]

template<typename... Types>
void drama::ErsReport ( StatusType status,
const char format,
Types...  args 
)

Report a message via ERS - 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.

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 "%%".
statusDRAMA Status to associate with the message. May be modified if ERS Fails.
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 CreateRunDramaTask(), ErsReport(), and SafePrintf().