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
The SoReadError class is used during model import operations.During model file import, this class will be used to output any error or warning messages.
Definition: SoReadError.h:32
static void setHandlerCallback(SoErrorCB *const func, void *const data)
Definition: SoError.cpp:164
static void * getHandlerData(void)
Definition: SoError.cpp:194
virtual SoType getTypeId(void) const
Definition: SoError.cpp:137
static void post(const char *const format,...)
Definition: SoError.cpp:217
static SoType getClassTypeId(void)
Definition: SoError.cpp:124
static SoErrorCB * getHandlerCallback(void)
Definition: SoError.cpp:184
The SoError class is the base class for all the error handling classes.The default error handler just...
Definition: SoError.h:41
The SoInput class is an abstraction of file import functionality.This class takes care of most of the...
Definition: SoInput.h:55
virtual SoErrorCBPtr getHandler(void *&data) const
Definition: SoError.cpp:278
static void initClass(void)
Definition: SoError.cpp:98
The SoType class is the basis for the run-time type system in Coin.Many of the classes in the Coin li...
Definition: SoType.h:50

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

Generated on Fri Feb 17 2017 for Coin by Doxygen. 1.8.13