source: trunk/VUT/GtpVisibilityPreprocessor/support/xerces/include/xercesc/util/DefaultPanicHandler.hpp @ 358

Revision 358, 2.4 KB checked in by bittner, 19 years ago (diff)

xerces added

Line 
1/*
2 * Copyright 2003,2004 The Apache Software Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/*
18 * $Log: DefaultPanicHandler.hpp,v $
19 * Revision 1.4  2004/09/08 13:56:21  peiyongz
20 * Apache License Version 2.0
21 *
22 * Revision 1.3  2003/12/24 17:12:21  cargilld
23 * Memory management update.
24 *
25 * Revision 1.2  2003/03/10 16:05:11  peiyongz
26 * assignment operator
27 *
28 * Revision 1.1  2003/03/09 17:06:16  peiyongz
29 * PanicHandler
30 *
31 * $Id: DefaultPanicHandler.hpp,v 1.4 2004/09/08 13:56:21 peiyongz Exp $
32 *
33 */
34
35
36#ifndef DEFAULT_PANICHANDLER_HPP
37#define DEFAULT_PANICHANDLER_HPP
38
39#include <xercesc/util/PanicHandler.hpp>
40#include <xercesc/util/PlatformUtils.hpp>
41
42XERCES_CPP_NAMESPACE_BEGIN
43
44/**
45  * Receive notification of panic.
46  *
47  * <p>This is Xerces' default implementation of the PanicHanlder
48  *    interface, which will be instantiated and used in the
49  *    absence of an application's panic handler.
50  * </p>
51  */
52
53class XMLUTIL_EXPORT DefaultPanicHandler : public XMemory, public PanicHandler
54{
55public:
56
57    /** @name hidden Constructors */
58    //@{
59    /** Default constructor */
60    DefaultPanicHandler(){};
61
62    /** Destructor */
63    virtual ~DefaultPanicHandler(){};
64    //@}
65
66    /** @name Implement virtual panic handler interface */
67    //@{
68   /**
69    * Receive notification of panic
70    *
71    * <p>Upon invocation, a corresponding error message will be output
72    *    to the stderr, and program exit.
73    * </p>
74    *
75    * @param reason The reason of panic
76    *
77    */
78    virtual void panic(const PanicHandler::PanicReasons reason);
79    //@}
80
81private:
82
83    /* Unimplemented Constructors and operators */
84    /* Copy constructor */
85    DefaultPanicHandler(const PanicHandler&);
86   
87    /** Assignment operator */
88    DefaultPanicHandler& operator=(const DefaultPanicHandler&);
89
90};
91
92XERCES_CPP_NAMESPACE_END
93
94#endif
Note: See TracBrowser for help on using the repository browser.