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) 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
29class SoInput;
30
31
32class COIN_DLL_API SoReadError : public SoError {
33 typedef SoError inherited;
34
35public:
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
48protected:
49 virtual SoErrorCBPtr getHandler(void *& data) const;
50
51private:
52 static SoType classTypeId;
53 static SoErrorCB * callback;
54 static void * callbackData;
55};
56
57#endif // !COIN_SOREADERROR_H
The SoError class is the base class for all the error handling classes.
Definition SoError.h:41
static void initClass(void)
Definition SoError.cpp:100
static SoErrorCB * getHandlerCallback(void)
Definition SoError.cpp:188
static void setHandlerCallback(SoErrorCB *const func, void *const data)
Definition SoError.cpp:166
virtual SoErrorCBPtr getHandler(void *&data) const
Definition SoError.cpp:282
virtual SoType getTypeId(void) const
Definition SoError.cpp:139
static void post(const char *const format,...)
Definition SoError.cpp:221
static void * getHandlerData(void)
Definition SoError.cpp:198
static SoType getClassTypeId(void)
Definition SoError.cpp:126
The SoInput class is an abstraction of file import functionality.
Definition SoInput.h:52
The SoReadError class is used during model import operations.
Definition SoReadError.h:32
The SoType class is the basis for the run-time type system in Coin.
Definition SoType.h:50

Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.

Generated on Wed Jul 17 2024 for Coin by Doxygen 1.12.0.