Subversion Repositories tendra.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
#   		 Crown Copyright (c) 1997
2
#   
3
#   This TenDRA(r) Computer Program is subject to Copyright
4
#   owned by the United Kingdom Secretary of State for Defence
5
#   acting through the Defence Evaluation and Research Agency
6
#   (DERA).  It is made available to Recipients with a
7
#   royalty-free licence for its use, reproduction, transfer
8
#   to other parties and amendment for any purpose not excluding
9
#   product development provided that any such use et cetera
10
#   shall be deemed to be acceptance of the following conditions:-
11
#   
12
#       (1) Its Recipients shall ensure that this Notice is
13
#       reproduced upon any copies or amended versions of it;
14
#   
15
#       (2) Any amended version of it shall be clearly marked to
16
#       show both the nature of and the organisation responsible
17
#       for the relevant amendment or amendments;
18
#   
19
#       (3) Its onward transfer from a recipient to another
20
#       party shall be deemed to be that party's acceptance of
21
#       these conditions;
22
#   
23
#       (4) DERA gives no warranty or assurance as to its
24
#       quality or suitability for any purpose and DERA accepts
25
#       no liability whatsoever in relation to any use to which
26
#       it may be put.
27
#
28
 
29
 
30
$LINKAGE = "C++" ;
31
$NAMESPACE = "std" ;
32
 
33
+SUBSET "except" := {
34
    $LINKAGE = "C++" ;
35
    $NAMESPACE = "" ;
36
%%
37
// BASE CLASS FOR STANDARD EXCEPTIONS
38
class exception {
39
    // Implementation dependent details
40
public :
41
    exception () throw () ;
42
    exception ( const exception & ) throw () ;
43
    exception &operator= ( const exception & ) throw () ;
44
    virtual ~exception () throw () ;
45
    virtual const char *what () const throw () ;
46
} ;
47
 
48
// SPECIAL EXCEPTION SPECIFICATION CLASS
49
class bad_exception : public exception {
50
    // Implementation dependent details
51
public :
52
    bad_exception () throw () ;
53
    bad_exception ( const bad_exception & ) throw () ;
54
    bad_exception &operator= ( const bad_exception & ) throw () ;
55
    virtual ~bad_exception () throw () ;
56
    virtual const char *what () const throw () ;
57
} ;
58
 
59
// UNEXPECTED EXCEPTION HANDLERS
60
typedef void ( *unexpected_handler ) () ;
61
unexpected_handler set_unexpected ( unexpected_handler ) throw () ;
62
void unexpected () ;
63
 
64
// TERMINATE HANDLERS
65
typedef void ( *terminate_handler ) () ;
66
terminate_handler set_terminate ( terminate_handler ) throw () ;
67
void terminate () ;
68
 
69
// STACK UNWINDING FLAG
70
bool uncaught_exception () ;
71
%%
72
} ;