00001 /* 00002 ***************************************************************** 00003 ***************************************************************** 00004 ******* ******** 00005 ******* (C) Copyright 1989-2007 by Tecplot Inc. ******** 00006 ******* All Rights Reserved. ******** 00007 ******* ******** 00008 ***************************************************************** 00009 ***************************************************************** 00010 */ 00011 #ifndef TECPLOT_TOOLBOX_OUTOFMEMORYEXCEPTION_H 00012 #define TECPLOT_TOOLBOX_OUTOFMEMORYEXCEPTION_H 00013 00014 #if defined MSWIN 00015 #pragma once 00016 #endif 00017 00018 #include "Exception.h" 00019 00020 namespace tecplot 00021 { 00022 namespace toolbox 00023 { 00024 00028 class TPTOOLBOX_DLLAPI OutOfMemoryException : public Exception 00029 { 00030 public: 00031 explicit OutOfMemoryException(const std::string& what); 00032 explicit OutOfMemoryException(const std::string& what, 00033 const std::string& fileName, 00034 int lineNum); 00035 OutOfMemoryException(const OutOfMemoryException& other); 00036 virtual ~OutOfMemoryException(void) throw(); 00037 private: 00038 /* 00039 * Declare a private assignment constructor to prevent the compiler from 00040 * creating it for us. 00041 */ 00042 OutOfMemoryException& operator = (const OutOfMemoryException& other); 00043 }; 00044 00045 } 00046 } // tecplot::toolbox 00047 #endif