![]() |
http://www.sim.no/ http://www.coin3d.org/ |
00001 #ifndef CC_ERROR_H 00002 #define CC_ERROR_H 00003 00004 /**************************************************************************\ 00005 * 00006 * This file is part of the Coin 3D visualization library. 00007 * Copyright (C) by Kongsberg Oil & Gas Technologies. 00008 * 00009 * This library is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU General Public License 00011 * ("GPL") version 2 as published by the Free Software Foundation. 00012 * See the file LICENSE.GPL at the root directory of this source 00013 * distribution for additional information about the GNU GPL. 00014 * 00015 * For using Coin with software that can not be combined with the GNU 00016 * GPL, and for taking advantage of the additional benefits of our 00017 * support services, please contact Kongsberg Oil & Gas Technologies 00018 * about acquiring a Coin Professional Edition License. 00019 * 00020 * See http://www.coin3d.org/ for more information. 00021 * 00022 * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY. 00023 * http://www.sim.no/ sales@sim.no coin-support@coin3d.org 00024 * 00025 \**************************************************************************/ 00026 00027 /* FIXME: missing stuff from SoError: type-system. 20020526 mortene. */ 00028 00029 /* ********************************************************************** */ 00030 00031 #include <Inventor/C/base/string.h> 00032 #include <stdarg.h> 00033 00034 #ifdef __cplusplus 00035 extern "C" { 00036 #endif /* __cplusplus */ 00037 00038 /* ********************************************************************** */ 00039 00040 typedef struct cc_error { 00041 cc_string debugstring; 00042 } cc_error; 00043 00044 typedef void cc_error_cb(const cc_error * err, void * data); 00045 00046 /* ********************************************************************** */ 00047 00048 COIN_DLL_API void cc_error_init(cc_error * me); 00049 COIN_DLL_API void cc_error_clean(cc_error * me); 00050 COIN_DLL_API void cc_error_copy(const cc_error * src, cc_error * dst); 00051 00052 /* const SbString & getDebugString(void) const; */ 00053 COIN_DLL_API const cc_string * cc_error_get_debug_string(const cc_error * me); 00054 00055 /* static void setHandlerCallback(SoErrorCB * const func, void * const data); */ 00056 00057 COIN_DLL_API void cc_error_set_handler_callback(cc_error_cb * func, void * data); 00058 00059 /* static SoErrorCB * getHandlerCallback(void); */ 00060 00061 COIN_DLL_API cc_error_cb * cc_error_get_handler_callback(void); 00062 00063 /* static void * getHandlerData(void); */ 00064 00065 COIN_DLL_API void * cc_error_get_handler_data(void); 00066 00067 /* static void post(const char * const format, ...); */ 00068 COIN_DLL_API void cc_error_post(const char * format, ...); 00069 COIN_DLL_API void cc_error_post_arglist(const char * format, va_list args); 00070 00071 /* protected: */ 00072 /* void setDebugString(const char * const str); */ 00073 00074 COIN_DLL_API void cc_error_set_debug_string(cc_error * me, const char * str); 00075 00076 /* protected: */ 00077 /* void appendToDebugString(const char * const str); */ 00078 00079 COIN_DLL_API void cc_error_append_to_debug_string(cc_error * me, const char * str); 00080 00081 /* protected: */ 00082 /* void handleError(void); */ 00083 00084 COIN_DLL_API void cc_error_handle(cc_error * me); 00085 00086 /* protected: */ 00087 /* virtual SoErrorCB * getHandler(void * & data) const; */ 00088 COIN_DLL_API cc_error_cb * cc_error_get_handler(void ** data); 00089 00090 /* protected: */ 00091 /* static void defaultHandlerCB(const SoError * error, void * userdata); */ 00092 COIN_DLL_API void cc_error_default_handler_cb(const cc_error * err, void * data); 00093 00094 /* ********************************************************************** */ 00095 00096 #ifdef __cplusplus 00097 } /* extern "C" */ 00098 #endif /* __cplusplus */ 00099 00100 #endif /* !CC_ERROR_H */
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on 19 Dec 2016 for Coin by Doxygen 1.6.1.