equal
deleted
inserted
replaced
|
1 // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __OUTPUT__ |
|
17 #define __OUTPUT__ |
|
18 |
|
19 #ifdef __MSVCDOTNET__ |
|
20 #include <iostream> |
|
21 using namespace std; |
|
22 #else //!__MSVCDOTNET__ |
|
23 #include <iostream.h> |
|
24 class ostream; |
|
25 #endif //__MSVCDOTNET__ |
|
26 |
|
27 struct Thread; |
|
28 |
|
29 class Result |
|
30 { |
|
31 friend ostream& operator<<(ostream&, const Result&); |
|
32 public: |
|
33 inline Result(int aSamples,int aTotal) |
|
34 :iSamples(aSamples), iTotal(aTotal) |
|
35 {} |
|
36 private: |
|
37 int iSamples; |
|
38 int iTotal; |
|
39 }; |
|
40 |
|
41 ostream& operator<<(ostream& aStream, const Result& aSample); |
|
42 ostream& operator<<(ostream& aStream, const Thread& aThread); |
|
43 |
|
44 #endif /* __OUTPUT__ */ |