err_and_warn


The err_and_warn is an object which allows you issue errors and warnings, which appear in Rogus's text output window. There is only one err_and_warn, and it can be accessed through the global object ew.

class err_and_warn {
public:
  void e( const char *format, ... );
  void a( const char *format, ... );
  void w( const char *format, ... );
};
void e( const char *format, ... )
ew.e() prints its printf-style argument(s) in the text window, prepending "Error: ", and causes Rogus to terminate.
void a( const char *format, ... )
ew.a() simply prints its printf-style argument(s) in the text window, prepending "Alert: ".
void w( const char *format, ... )
ew.w() writes its printf-style argument(s) to Rogus' text output window, prepending "Warning: ".

Modified 12 April 1996 pepellet@mit.edu