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.

Deprecated:
Use the ErsReportF() interface. That matches the more modern C++ style and is safer.
Warning
The DRAMA lock must be taking when invoking this and all ERS operations
Parameters
statusDRAMA Status to associate with the message. May be modified if ERS Fails.
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 CreateRunDramaTask(), ErsReport(), and SafePrintf().