00001 // -*- C++ -*- 00002 00003 #ifndef AMROC_ALLOC_ERROR_H 00004 #define AMROC_ALLOC_ERROR_H 00005 00011 #include <new> 00012 #include <string> 00013 00018 class AllocError { 00019 00020 private: 00021 static std::string ClassName; 00022 static std::string Position; 00023 00024 public: 00025 AllocError() {} 00026 00027 static void SetTexts(const char* name, const char* pos); 00028 static void Init(); 00029 static void ReportAllocError(); 00030 00031 }; 00032 00033 00034 #endif