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 { namespace toolbox { 00021 00025 class TPTOOLBOX_DLLAPI OutOfMemoryException : public Exception 00026 { 00027 public: 00028 explicit OutOfMemoryException(const std::string& what); 00029 explicit OutOfMemoryException(const std::string& what, 00030 const std::string& fileName, 00031 int lineNum); 00032 OutOfMemoryException(const OutOfMemoryException& other); 00033 virtual ~OutOfMemoryException(void) throw(); 00034 private: 00035 /* 00036 * Declare a private assignment constructor to prevent the compiler from 00037 * creating it for us. 00038 */ 00039 OutOfMemoryException& operator = (const OutOfMemoryException& other); 00040 }; 00041 00042 }} // tecplot::toolbox 00043 #endif
1.5.5