author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 31 Aug 2010 16:34:26 +0300 | |
branch | RCL_3 |
changeset 43 | c1f20ce4abcf |
parent 0 | a41df078684a |
child 44 | 3e88ff8f41d5 |
permissions | -rw-r--r-- |
0 | 1 |
/* |
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 |
* All rights reserved. |
|
4 |
* This component and the accompanying materials are made available |
|
5 |
* under the terms of the License "Eclipse Public License v1.0" |
|
6 |
* which accompanies this distribution, and is available |
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 |
* |
|
9 |
* Initial Contributors: |
|
10 |
* Nokia Corporation - initial contribution. |
|
11 |
* |
|
12 |
* Contributors: |
|
13 |
* |
|
14 |
* Description: |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
#include <e32std.h> |
|
19 |
||
20 |
class MySecondException { |
|
21 |
public: |
|
22 |
MySecondException(){}; |
|
23 |
MySecondException(int x) { iVal = x; }; |
|
24 |
int iVal; |
|
25 |
}; |
|
26 |
||
27 |
IMPORT_C int thrower2 (int x); |
|
28 |
||
29 |
||
30 |
class MyThirdException : public MySecondException { |
|
31 |
public: |
|
32 |
MyThirdException(){}; |
|
33 |
MyThirdException(int x) { iVal = x; iVal1 = x+1;}; |
|
34 |
int iVal1; |
|
35 |
}; |
|
36 |
||
37 |
IMPORT_C int thrower3 (int x); |
|
38 |
||
39 |
NONSHARABLE_CLASS(VB1) : virtual public MySecondException {}; |
|
40 |
NONSHARABLE_CLASS(VB2) : virtual public MySecondException {}; |
|
41 |
||
42 |
class MyFourthException : public VB1 , public VB2 { |
|
43 |
public: |
|
43
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
44 |
#if defined(__ARMCC__) && __ARMCC_VERSION >= 400000 |
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
45 |
EXPORT_C MyFourthException(int x) { iVal = x; iVal2=x+2;}; |
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
46 |
#else |
0 | 47 |
MyFourthException(int x) { iVal = x; iVal2=x+2;}; |
43
c1f20ce4abcf
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
48 |
#endif |
0 | 49 |
int iVal2; |
50 |
}; |
|
51 |
||
52 |
IMPORT_C int thrower4 (int x); |
|
53 |
||
54 |
class B1 { |
|
55 |
public: |
|
56 |
B1(int x): iX(x){} |
|
57 |
int iX; |
|
58 |
}; |
|
59 |
||
60 |
class MyFifthException : public MySecondException, public B1 { |
|
61 |
public: |
|
62 |
MyFifthException(int x): MySecondException(x), B1(x){} |
|
63 |
}; |
|
64 |
||
65 |
IMPORT_C int thrower5 (int x); |
|
66 |
||
67 |
class UncaughtTester { |
|
68 |
public: |
|
69 |
IMPORT_C UncaughtTester(TInt & x); |
|
70 |
IMPORT_C ~UncaughtTester(); |
|
71 |
TInt & aInt; |
|
72 |
}; |