00001 /* 00002 * Copyright 2003,2004 The Apache Software Foundation. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 /* 00018 * $Log: DefaultPanicHandler.hpp,v $ 00019 * Revision 1.4 2004/09/08 13:56:21 peiyongz 00020 * Apache License Version 2.0 00021 * 00022 * Revision 1.3 2003/12/24 17:12:21 cargilld 00023 * Memory management update. 00024 * 00025 * Revision 1.2 2003/03/10 16:05:11 peiyongz 00026 * assignment operator 00027 * 00028 * Revision 1.1 2003/03/09 17:06:16 peiyongz 00029 * PanicHandler 00030 * 00031 * $Id: DefaultPanicHandler.hpp,v 1.4 2004/09/08 13:56:21 peiyongz Exp $ 00032 * 00033 */ 00034 00035 00036 #ifndef DEFAULT_PANICHANDLER_HPP 00037 #define DEFAULT_PANICHANDLER_HPP 00038 00039 #include <xercesc/util/PanicHandler.hpp> 00040 #include <xercesc/util/PlatformUtils.hpp> 00041 00042 XERCES_CPP_NAMESPACE_BEGIN 00043 00053 class DefaultPanicHandler : public XMemory, public PanicHandler 00054 { 00055 public: 00056 00060 DefaultPanicHandler(){}; 00061 00063 virtual ~DefaultPanicHandler(){}; 00065 00078 virtual void panic(const PanicHandler::PanicReasons reason); 00080 00081 private: 00082 00083 /* Unimplemented Constructors and operators */ 00084 /* Copy constructor */ 00085 DefaultPanicHandler(const PanicHandler&); 00086 00088 DefaultPanicHandler& operator=(const DefaultPanicHandler&); 00089 00090 }; 00091 00092 XERCES_CPP_NAMESPACE_END 00093 00094 #endif