Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.3 KiB

  1. //+------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1993.
  5. //
  6. // File: bmoutput.hxx
  7. //
  8. // Contents: output class definition
  9. //
  10. // Classes: CTestOutput
  11. //
  12. // Functions:
  13. //
  14. // History: 19-July-93 t-martig Created
  15. //
  16. //--------------------------------------------------------------------------
  17. #ifndef _BMOUTPUT_HXX_
  18. #define _BMOUTPUT_HXX_
  19. #include <bminput.hxx>
  20. class CTestOutput
  21. {
  22. public:
  23. CTestOutput (LPTSTR lpszFileName);
  24. ~CTestOutput ();
  25. void Flush(void);
  26. void WriteSectionHeader (LPTSTR lpszTestName,
  27. LPTSTR lpszSectionName,
  28. CTestInput &input);
  29. void WriteTextString (LPTSTR lpszString);
  30. void WriteString (LPTSTR lpwszString);
  31. void WriteLong (ULONG ul);
  32. void WriteConfigEntry (CTestInput &input, LPTSTR lpszSection,
  33. LPTSTR lpszEntry, LPTSTR lpszDefault = TEXT(""));
  34. void WriteResult (LPTSTR lpszMeasurementName, ULONG ulTime);
  35. void WriteResults (LPTSTR lpszMeasurementName, int iIterations,
  36. ULONG *paUltimes);
  37. void WriteClassCtx (DWORD dwClsCtx);
  38. void WriteClassID (GUID *pClsId);
  39. void WriteTime (SYSTEMTIME *pstTime);
  40. void WriteDate (SYSTEMTIME *pstDate);
  41. void WriteSCODE (SCODE sc);
  42. private:
  43. void StringFromGUID(GUID &rguid, LPTSTR lpsz);
  44. FILE *fpOut;
  45. };
  46. #endif // _BMOUTPUT_HXX_