CrystalSpace

Public API Reference

Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

csReporterHelper Class Reference

Helper class for csReport(). More...

#include <ivaria/reporter.h>

List of all members.

Static Public Member Functions

static void Report (iObjectRegistry *reg, int severity, char const *msgId, char const *description,...)
 Helper function to use a reporter easily.
static void ReportV (iObjectRegistry *reg, int severity, char const *msgId, char const *description, va_list args)
 Helper function to use a reporter easily.


Detailed Description

Helper class for csReport().

Not all compilers allow a bare `vararg' function to be inlined, but wrapping the function in a class seems to appease such compilers. The NextStep compiler exhibits this particular behavior.

Definition at line 312 of file reporter.h.


Member Function Documentation

void csReporterHelper::Report iObjectRegistry reg,
int  severity,
char const *  msgId,
char const *  description,
  ...
[inline, static]
 

Helper function to use a reporter easily.

This function will also work if no reporter is present and use stdout in that case.

Remarks:
You can use the csReport macro for even more convenience.
See also:
Notes about string formatting in CrystalSpace

Definition at line 375 of file reporter.h.

References ReportV().

void csReporterHelper::ReportV iObjectRegistry reg,
int  severity,
char const *  msgId,
char const *  description,
va_list  args
[inline, static]
 

Helper function to use a reporter easily.

This function will also work if no reporter is present and use stdout in that case.

Remarks:
You can use the csReportV macro for even more convenience.
See also:
Notes about string formatting in CrystalSpace

Definition at line 336 of file reporter.h.

References CS_ANSI_BK, CS_ANSI_FI, CS_ANSI_FM, CS_ANSI_FR, CS_ANSI_FW, CS_ANSI_FY, CS_ANSI_RST, CS_QUERY_REGISTRY, CS_REPORTER_SEVERITY_BUG, CS_REPORTER_SEVERITY_DEBUG, CS_REPORTER_SEVERITY_ERROR, CS_REPORTER_SEVERITY_NOTIFY, CS_REPORTER_SEVERITY_WARNING, csPrintf(), csPrintfV(), and csStrNCaseCmp().

Referenced by Report().


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.4.4