| 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) by Kongsberg Oil & Gas Technologies.
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 Kongsberg Oil & Gas Technologies
18 * about acquiring a Coin Professional Edition License.
19 *
20 * See http://www.coin3d.org/ for more information.
21 *
22 * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, 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 input, 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
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
SoError::setHandlerCallback
static void setHandlerCallback(SoErrorCB *const func, void *const data)
Definition: SoError.cpp:166
SoError::getHandlerData
static void * getHandlerData(void)
Definition: SoError.cpp:198
SoError::getTypeId
virtual SoType getTypeId(void) const
Definition: SoError.cpp:139
SoError::post
static void post(const char *const format,...)
Definition: SoError.cpp:221
SoError::getClassTypeId
static SoType getClassTypeId(void)
Definition: SoError.cpp:126
SoError::getHandlerCallback
static SoErrorCB * getHandlerCallback(void)
Definition: SoError.cpp:188
SoError
The SoError class is the base class for all the error handling classes.The default error handler just...
Definition: SoError.h:41
SoInput
The SoInput class is an abstraction of file import functionality.This class takes care of most of the...
Definition: SoInput.h:52
SoError::getHandler
virtual SoErrorCBPtr getHandler(void *&data) const
Definition: SoError.cpp:282
SoError::initClass
static void initClass(void)
Definition: SoError.cpp:100
SoType
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-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.