blob: 8f17269a3455d96ad07a896346307a845db4fb68 (
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
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Implematation of CReport
//
// $Workfile: $
// $Date: $
//
//------------------------------------------------------------------------------------------------------
// $Log: $
//
// $NoKeywords: $
//=============================================================================//
#include "report.h"
#include "util.h"
//------------------------------------------------------------------------------------------------------
// Function: CReport::makeHTMLPage
// Purpose: makes a whole page out of the element that it is called on
// Input: pageName - the name of the html file
// pageTitle - the title of the document
//------------------------------------------------------------------------------------------------------
void CReport::makeHTMLPage(char* pageName,char* pageTitle)
{
CHTMLFile Page(pageName,pageTitle);
report(Page);
}
//------------------------------------------------------------------------------------------------------
// Function: CReport::report
// Purpose: generates the report's output and adds it to anHTML file
// Input: html - the HTML file to add this report element to
//------------------------------------------------------------------------------------------------------
void CReport::report(CHTMLFile& html)
{
generate();
writeHTML(html);
}
|