SF_Warning

Sonic Flow libsf Reference Guide

SF_Warning (const SF_Block* origin, const char* message);

The constructor of a SF_Warning. Warnings are used with the constructor as follows: SF_Warning (block_ptr, "Something suspicious has happened");

virtual ~SF_Warning ();

Destructor.

const SF_Block* origin;

The initiator of the warning or 0.

const char* message;

Textual information on the warning.

void print ();

The member function used to actually "print" the warning message via the warning handler. Note that this may actually not result in printing to the standard output stream. For example, the warnings may be disabled or there may be a GUI application which has provided a warning handler of its own.

static bool get_suppression ();

Used to query whether warning messages are suppressed or not.

static void set_suppression (bool suppress);

Used to install or remove suppression of warnings. The call set_suppression (true) suppresses (disables) warning messages and set_suppression (false) enables warning messages.

static SF_Warning_Handler get_handler ();

You may get the pointer to the warning handler function with this function call.

static void set_handler (SF_Warning_Handler handler);

You may set the warning handler function with this function call.


Last modified: Thu Dec 10 14:25:08 1998
jarno.seppanen@cs.tut.fi
Audio Research Group