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

SoMemoryError.h
1 #ifndef COIN_SOMEMORYERROR_H
2 #define COIN_SOMEMORYERROR_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 COIN_DLL_API SoMemoryError : public SoError {
30  typedef SoError inherited;
31 
32 public:
33  static void setHandlerCallback(SoErrorCB * const callback,
34  void * const data);
35  static SoErrorCB * getHandlerCallback(void);
36  static void * getHandlerData(void);
37 
38  static SoType getClassTypeId(void);
39  virtual SoType getTypeId(void) const;
40 
41  static void post(const char * const whatWasAllocated);
42 
43  static void initClass(void);
44 
45 protected:
46  virtual SoErrorCBPtr getHandler(void * & data) const;
47 
48 private:
49  static SoType classTypeId;
50  static SoErrorCB * callback;
51  static void * callbackData;
52 };
53 
54 #endif // !COIN_SOMEMORYERROR_H
static void setHandlerCallback(SoErrorCB *const func, void *const data)
Definition: SoError.cpp:166
static void * getHandlerData(void)
Definition: SoError.cpp:198
virtual SoType getTypeId(void) const
Definition: SoError.cpp:139
static void post(const char *const format,...)
Definition: SoError.cpp:221
static SoType getClassTypeId(void)
Definition: SoError.cpp:126
static SoErrorCB * getHandlerCallback(void)
Definition: SoError.cpp:188
The SoError class is the base class for all the error handling classes.The default error handler just...
Definition: SoError.h:41
The SoMemoryError class is used to inform of problems with memory allocation.Modern operating systems...
Definition: SoMemoryError.h:29
virtual SoErrorCBPtr getHandler(void *&data) const
Definition: SoError.cpp:282
static void initClass(void)
Definition: SoError.cpp:100
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.

Generated on Wed Feb 7 2018 for Coin by Doxygen 1.8.14.