Subversion Repositories tendra.SVN

Rev

Details | 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
+USE "cpp", "exception", "except" ;
34
 
35
%%
36
// CLASS RETURNED BY TYPEID OPERATOR
37
class type_info {
38
    // Implementation dependent details
39
    class __base_info {} ;
40
    int __code ;
41
    const char *__name ;
42
    __base_info *__base ;
43
public :
44
    virtual ~type_info () ;
45
    bool operator== ( const type_info & ) const ;
46
    bool operator!= ( const type_info & ) const ;
47
    bool before ( const type_info & ) const ;
48
    const char *name () const ;
49
private :
50
    type_info ( const type_info & ) ;
51
    type_info &operator= ( const type_info & ) ;
52
} ;
53
 
54
// EXCEPTION THROWN BY BAD DYNAMIC_CAST
55
class bad_cast : public exception {
56
    // Implementation dependent details
57
public :
58
    bad_cast () throw () ;
59
    bad_cast ( const bad_cast & ) throw () ;
60
    bad_cast &operator= ( const bad_cast & ) throw () ;
61
    virtual ~bad_cast () throw () ;
62
    virtual const char *what () const throw () ;
63
} ;
64
 
65
// EXCEPTION THROWN BY BAD TYPEID
66
class bad_typeid : public exception {
67
    // Implementation dependent details
68
public :
69
    bad_typeid () throw () ;
70
    bad_typeid ( const bad_typeid & ) throw () ;
71
    bad_typeid &operator= ( const bad_typeid & ) throw () ;
72
    virtual ~bad_typeid () throw () ;
73
    virtual const char *what () const throw () ;
74
} ;
75
%%