summaryrefslogtreecommitdiffstats
path: root/private/oleutest/perform/common/bmoutput.hxx
blob: 6860b59a4e8a9f42d9cbc125874283d45fa3f86e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//+------------------------------------------------------------------------
//
//  Microsoft Windows
//  Copyright (C) Microsoft Corporation, 1993.
//
//  File:	bmoutput.hxx
//
//  Contents:	output class definition
//
//  Classes:	CTestOutput
//
//  Functions:	
//
//  History:    19-July-93 t-martig    Created
//
//--------------------------------------------------------------------------

#ifndef _BMOUTPUT_HXX_
#define _BMOUTPUT_HXX_

#include <bminput.hxx>

class CTestOutput
{
public:
		CTestOutput (LPTSTR lpszFileName);
		~CTestOutput ();

	void Flush(void);
	void WriteSectionHeader (LPTSTR lpszTestName,
				 LPTSTR lpszSectionName,
				 CTestInput &input);
	void WriteTextString (LPTSTR lpszString);
	void WriteString (LPTSTR lpwszString);
	void WriteLong (ULONG ul);
	void WriteConfigEntry (CTestInput &input, LPTSTR lpszSection,
			       LPTSTR lpszEntry, LPTSTR lpszDefault = TEXT(""));
	void WriteResult (LPTSTR lpszMeasurementName, ULONG ulTime);
	void WriteResults (LPTSTR lpszMeasurementName, int iIterations,
			   ULONG *paUltimes);
	void WriteClassCtx (DWORD dwClsCtx);
	void WriteClassID (GUID *pClsId);
	void WriteTime (SYSTEMTIME *pstTime);
	void WriteDate (SYSTEMTIME *pstDate);
	void WriteSCODE (SCODE sc);

private:
	void StringFromGUID(GUID &rguid, LPTSTR lpsz);

	FILE *fpOut;
};

#endif	// _BMOUTPUT_HXX_