Class Overview
This class provides methods for generating commonly used HTML code.
Inheritance
This class has no ancestors.
Requirements
This class requires the C++ string class.
Files
- UtHtmlWriter.h
- UtHtmlWriter.cp
static
string
HTTPHeader(
const string& inType = "text/html",
const string& inOtherData = ""
);
static
string
HTMLHeader(
const string& inTitle = "",
const string& inOtherData = "",
const string& inBodyTag = ""
);
static
string
HTMLFooter(
void
);
static
string
Redirect(
const string& inLocation
);
protected
private
UtHTMLWriter(
void
);
UtHTMLWriter(
const UtHTMLWriter&
);
~UtHTMLWriter(
void
);
const UtHTMLWriter&
operator=(
const UtHTMLWriter&
);
Members by Inheritance
statics
static
string
HTTPHeader(
const string& inType = "text/html",
const string& inOtherData = ""
);
static
string
HTMLHeader(
const string& inTitle = "",
const string& inOtherData = "",
const string& inBodyTag = ""
);
static
string
HTMLFooter(
void
);
static
string
Redirect(
const string& inLocation
);
overrides
This class has no new overrides.
new virtuals
This class has no virtual functions.
HTTPHeader
This function generates a standard HTTP header.
The undocumented feature which generated an extra line break has been fixed in the October 1, 2000 code.
static
string
HTTPHeader(
const string& inType = "text/html",
const string& inOtherData = ""
);
- inType
- should indicate the MIME type of the document
- inOtherData
- is placed at the end of the header
HTMLHeader
Generates a standard HTML header including the opening <BODY > tag.
static
string
HTMLHeader(
const string& inTitle = "",
const string& inOtherData = "",
const string& inBodyTag = ""
);
- inTitle
- is the title of the HTML page
- inOtherData
- is included in the <
HEAD > portion of the document
- inBodyTag
- is included within the <
BODY > tag
HTMLFooter
Generates a standard HTML footer including the closing </BODY > tag.
static
string
HTMLFooter(
void
);
Redirect
Generates a page which will redirect the browser to a new page. In addition, the new URL will be presented in the text of the page in case the user's browser does not support redirection.
static
string
Redirect(
const string& inLocation
);
- inLocation
- is the URL to which the browser will be redirected
UtHTMLWriter
No constructors are implemented for this class.
UtHTMLWriter(
void
);
UtHTMLWriter(
const UtHTMLWriter&
);
~UtHTMLWriter
No destructors are implemented for this class.
~UtHTMLWriter(
void
);
operator=
No assignment operators are implemented for this class.
const UtHTMLWriter&
operator=(
const UtHTMLWriter&
); |