HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GR_ErrorManager Class Reference

#include <GR_ErrorManager.h>

Public Types

enum  Source {
  GEOMETRY =0, SHADER, MATERIAL, STYLESHEET,
  VIEWER, NUM_SOURCES
}
 
enum  Severity { MESSAGE = 1, WARNING, REGULAR_ERROR, FATAL_ERROR }
 
enum  Scope { REDRAW, UPDATE, REFINE, SESSION }
 

Public Member Functions

 GR_ErrorManager ()
 
int64 logMessage (Source src, UT_StringHolder src_name, Severity sev, Scope scope, GR_ErrorCode gr_code, UT_StringHolder msg=UT_StringHolder())
 
void clearMessages (Source src, UT_StringHolder src_name, Scope scope)
 
void clearMessages (Source src, UT_StringHolder src_name)
 
void clearMessages (Scope scope)
 
bool clearMessage (int64 tag)
 
void clearAllMessages ()
 
UI_ValuegetSeverityValue ()
 
UI_ValuegetChangedValue ()
 
int getMessages (UT_Array< std::pair< UT_StringHolder, Severity >> &msgs, int max_errors=-1)
 

Detailed Description

Definition at line 26 of file GR_ErrorManager.h.

Member Enumeration Documentation

Enumerator
REDRAW 
UPDATE 
REFINE 
SESSION 

Definition at line 50 of file GR_ErrorManager.h.

Enumerator
MESSAGE 
WARNING 
REGULAR_ERROR 
FATAL_ERROR 

Definition at line 42 of file GR_ErrorManager.h.

Enumerator
GEOMETRY 
SHADER 
MATERIAL 
STYLESHEET 
VIEWER 
NUM_SOURCES 

Definition at line 31 of file GR_ErrorManager.h.

Constructor & Destructor Documentation

GR_ErrorManager::GR_ErrorManager ( )

Member Function Documentation

void GR_ErrorManager::clearAllMessages ( )
bool GR_ErrorManager::clearMessage ( int64  tag)
void GR_ErrorManager::clearMessages ( Source  src,
UT_StringHolder  src_name,
Scope  scope 
)
void GR_ErrorManager::clearMessages ( Source  src,
UT_StringHolder  src_name 
)
void GR_ErrorManager::clearMessages ( Scope  scope)
UI_Value& GR_ErrorManager::getChangedValue ( )
inline

Definition at line 76 of file GR_ErrorManager.h.

int GR_ErrorManager::getMessages ( UT_Array< std::pair< UT_StringHolder, Severity >> &  msgs,
int  max_errors = -1 
)
UI_Value& GR_ErrorManager::getSeverityValue ( )
inline

Definition at line 75 of file GR_ErrorManager.h.

int64 GR_ErrorManager::logMessage ( Source  src,
UT_StringHolder  src_name,
Severity  sev,
Scope  scope,
GR_ErrorCode  gr_code,
UT_StringHolder  msg = UT_StringHolder() 
)

The documentation for this class was generated from the following file: