IGameError.h

Go to the documentation of this file.
00001 /**********************************************************************
00002  *<
00003     FILE: IGameError.h
00004 
00005     DESCRIPTION: Access to the IGame Errors.
00006 
00007     CREATED BY: Neil Hazzard, Discreet
00008 
00009     HISTORY: created 02/02/02
00010 
00011     IGame Version: 1.122
00012 
00013  *> Copyright (c) 2002, All Rights Reserved.
00014  **********************************************************************/
00015 
00022 #pragma once
00023 
00024 #include "..\maxheap.h"
00025 #include "IGameStd.h"
00026 
00028 enum IGameError
00029 {
00030     IG_NO_ERROR,                        
00031     IG_NO_KEY_INTERFACE,                
00032     IG_INDEX_OUT_OF_BOUNDS,             
00033     IG_ERROR_LOADING_PROPERTIES_FILE,   
00034     IG_COM_ERROR,                       
00035     IG_NODE_NOT_FOUND,                  
00036     IG_UNSUPPORTED_CONT,                
00037     IG_OBJECT_NOT_SUPPORTED,            
00038     IG_MAPPING_CHANNEL_ERROR,           
00039     IG_MATERIAL_ERROR,                  
00040     IG_NO_SKIN_MOD,                     
00041     IG_NO_CONTROLLER_KEY,               
00042     IG_NO_NORMALS,                      
00043 };
00044 
00045 
00046 
00048 
00052 class IGameErrorCallBack: public MaxHeapOperators
00053 {
00054 public:
00056     virtual ~IGameErrorCallBack() {;}
00058 
00061     virtual void ErrorProc(IGameError error)=0;
00062 };
00063 
00064 
00068 IGAMEEXPORT IGameError GetLastIGameError();
00069 
00073 IGAMEEXPORT MCHAR * GetLastIGameErrorText();
00074 
00078 IGAMEEXPORT void SetErrorCallBack(IGameErrorCallBack * proc);
00079 
00083 IGAMEEXPORT void ResetError();
00084