Coin Logo http://www.sim.no
http://www.coin3d.org

SoReadError.h
1 #ifndef COIN_SOREADERROR_H
2 #define COIN_SOREADERROR_H
3 
4 /**************************************************************************\
5  *
6  * This file is part of the Coin 3D visualization library.
7  * Copyright (C) 1998-2007 by Systems in Motion. All rights reserved.
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * ("GPL") version 2 as published by the Free Software Foundation.
12  * See the file LICENSE.GPL at the root directory of this source
13  * distribution for additional information about the GNU GPL.
14  *
15  * For using Coin with software that can not be combined with the GNU
16  * GPL, and for taking advantage of the additional benefits of our
17  * support services, please contact Systems in Motion about acquiring
18  * a Coin Professional Edition License.
19  *
20  * See http://www.coin3d.org/ for more information.
21  *
22  * Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, NORWAY.
23  * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
24  *
25 \**************************************************************************/
26 
27 #include <Inventor/errors/SoError.h>
28 
29 class SoInput;
30 
31 
32 class COIN_DLL_API SoReadError : public SoError {
33  typedef SoError inherited;
34 
35 public:
36  static void setHandlerCallback(SoErrorCB * const function,
37  void * const data);
38  static SoErrorCB * getHandlerCallback(void);
39  static void * getHandlerData(void);
40 
41  static SoType getClassTypeId(void);
42  virtual SoType getTypeId(void) const;
43 
44  static void post(const SoInput * const in, const char * const format, ...);
45 
46  static void initClass(void);
47 
48 protected:
49  virtual SoErrorCBPtr getHandler(void *& data) const;
50 
51 private:
52  static SoType classTypeId;
53  static SoErrorCB * callback;
54  static void * callbackData;
55 };
56 
57 #endif // !COIN_SOREADERROR_H
SoReadError::post
static void post(const SoInput *const in, const char *const format,...)
Definition: SoReadError.cpp:110
SoError::setHandlerCallback
static void setHandlerCallback(SoErrorCB *const func, void *const data)
Definition: SoError.cpp:164
SoError::defaultHandlerCB
static void defaultHandlerCB(const SoError *error, void *userdata)
Definition: SoError.cpp:268
SoReadError
The SoReadError class is used during model import operations.
Definition: SoReadError.h:32
SoReadError::getTypeId
virtual SoType getTypeId(void) const
Definition: SoReadError.cpp:75
SbString
The SbString class is a string class with convenience functions for string operations.
Definition: SbString.h:42
SoType
The SoType class is the basis for the run-time type system in Coin.
Definition: SoType.h:50
SoError::getHandlerData
static void * getHandlerData(void)
Definition: SoError.cpp:194
SoError::getClassTypeId
static SoType getClassTypeId(void)
Definition: SoError.cpp:124
SoError::appendToDebugString
void appendToDebugString(const char *const str)
Definition: SoError.cpp:297
SoError::handleError
void handleError(void)
Definition: SoError.cpp:308
SoError::setDebugString
void setDebugString(const char *const str)
Definition: SoError.cpp:288
SoInput::getLocationString
virtual void getLocationString(SbString &string) const
Definition: SoInput.cpp:1808
SoType::createType
static const SoType createType(const SoType parent, const SbName name, const instantiationMethod method=(instantiationMethod) NULL, const uint16_t data=0)
Definition: SoType.cpp:256
SoError::initClass
static void initClass(void)
Definition: SoError.cpp:98
SoError::getTypeId
virtual SoType getTypeId(void) const
Definition: SoError.cpp:137
SoError
The SoError class is the base class for all the error handling classes.
Definition: SoError.h:41
SoError::post
static void post(const char *const format,...)
Definition: SoError.cpp:217
SoError::getHandler
virtual SoErrorCBPtr getHandler(void *&data) const
Definition: SoError.cpp:278
SoInput
The SoInput class is an abstraction of file import functionality.
Definition: SoInput.h:55
SoError::getHandlerCallback
static SoErrorCB * getHandlerCallback(void)
Definition: SoError.cpp:184
SbString::getString
const char * getString(void) const
Definition: SbString.h:71
SbString::vsprintf
SbString & vsprintf(const char *formatstr, va_list args)
Definition: SbString.h:111
SoReadError::getHandler
virtual SoErrorCBPtr getHandler(void *&data) const
Definition: SoReadError.cpp:148

Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.

Generated on Mon Jul 27 2020 for Coin by Doxygen. 1.8.18