sl@0: // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef __OUTPUT__ sl@0: #define __OUTPUT__ sl@0: sl@0: #ifdef __MSVCDOTNET__ sl@0: #include sl@0: using namespace std; sl@0: #else //!__MSVCDOTNET__ sl@0: #include sl@0: class ostream; sl@0: #endif //__MSVCDOTNET__ sl@0: sl@0: struct Thread; sl@0: sl@0: class Result sl@0: { sl@0: friend ostream& operator<<(ostream&, const Result&); sl@0: public: sl@0: inline Result(int aSamples,int aTotal) sl@0: :iSamples(aSamples), iTotal(aTotal) sl@0: {} sl@0: private: sl@0: int iSamples; sl@0: int iTotal; sl@0: }; sl@0: sl@0: ostream& operator<<(ostream& aStream, const Result& aSample); sl@0: ostream& operator<<(ostream& aStream, const Thread& aThread); sl@0: sl@0: #endif /* __OUTPUT__ */