srecord 1.65.0
 
Loading...
Searching...
No Matches
normal.h
Go to the documentation of this file.
1//
2// srecord - manipulate eprom load files
3// Copyright (C) 2000, 2002, 2003, 2006-2008, 2010, 2011 Peter Miller
4//
5// This program is free software; you can redistribute it and/or modify it
6// under the terms of the GNU Lesser General Public License as published by
7// the Free Software Foundation; either version 3 of the License, or (at
8// your option) any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
13// General Public License for more details.
14//
15// You should have received a copy of the GNU Lesser General Public License
16// along with this program. If not, see <http://www.gnu.org/licenses/>.
17//
18
19#ifndef SRECORD_QUIT_NORMAL_H
20#define SRECORD_QUIT_NORMAL_H
21
22#include <srecord/quit.h>
23
24namespace srecord
25{
26
27/**
28 * The quit_normal class is used to represent a quit handler which
29 * behaves in the "normal" way: print error message son the standard
30 * error, and exit via the gloibal exit function.
31 */
33 public quit
34{
35public:
36 /**
37 * The destructor.
38 */
39 virtual ~quit_normal();
40
41 /**
42 * The default constructor.
43 */
45
46protected:
47 // see base class for documentation
48 virtual void exit(int);
49
50 // see base class for documentation
51 virtual void message_v(const char *, va_list);
52
53private:
54 /**
55 * The copy constructor. Do not use.
56 */
57 quit_normal(const quit_normal &);
58
59 /**
60 * The assignment operator. Do not use.
61 */
62 quit_normal &operator=(const quit_normal &);
63};
64
65};
66
67#endif // SRECORD_QUIT_NORMAL_H
quit_normal()
The default constructor.
virtual void message_v(const char *, va_list)
The message_v method is used to send an error message to a suitable destination.
virtual void exit(int)
The exit method is used to terminate execution.
virtual ~quit_normal()
The destructor.
quit()
The default constructor.