50#ifndef _SO_DEBUG_ERROR
51#define _SO_DEBUG_ERROR
53#include <Inventor/errors/SoError.h>
58#pragma warning(disable:4251)
151 SoPRINTFPREFIX(2,3) static
void post(const
char *methodName, const
char *formatString ...);
156 SoPRINTFPREFIX(2,3) static
void postWarning(const
char *methodName, const
char *formatString ...);
161 SoPRINTFPREFIX(2,3) static
void postInfo(const
char *methodName, const
char *formatString ...);
165 static
void initClass();
166 static
void exitClass();
168 static
SoErrorCB* getDefaultHandlerCB() {
return defaultHandlerCB; }
174 SoPRINTFPREFIX(2,3) static
void postOnce(const
char *methodName, const
char *formatString ...);
180 SoPRINTFPREFIX(2,3) static
void postWarningOnce(const
char *methodName, const
char *formatString ...);
186 SoPRINTFPREFIX(2,3) static
void postInfoOnce(const
char *methodName, const
char *formatString ...);
190 virtual
SoErrorCB *getHandler(
void *&data) const;
191 virtual
bool isInit() const;
197 static
SbString getFormattedString(const
char *formatString, va_list argList);
202 static
void postMessage(
Severity messageType, const
char *methodName,
203 const
char *formatString, va_list argList,
bool alwaysEmit);
206 static std::set<
SbString> s_emittedErrors;
208 static
SoType classTypeId;
Class for smart character strings.
static SoErrorCB * getHandlerCallback()
Returns handler callback for SoDebugError class.
static void * getHandlerData()
Returns handler data for SoDebugError class.
virtual SoType getTypeId() const
Returns type identifier for error instance.
static void postWarning(const char *methodName, const char *formatString ...)
Posts a warning.
static SoType getClassTypeId()
Returns type identifier for SoDebugError class.
@ INFO
No error, just information.
static void setHandlerCallback(SoErrorCB *cb, void *data)
Sets handler callback for SoDebugError class.
SoDebugError::Severity getSeverity() const
Returns severity of error (for use by handlers).
static void post(const char *methodName, const char *formatString ...)
Posts an error.
static void postInfo(const char *methodName, const char *formatString ...)
Posts an informational (non-error) message.
Error handling base class.
void SoErrorCB(const SoError *error, void *data)
Error handling callbacks are of this type.
Stores runtime type information.