Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

PHTML Class Reference

#include <html.h>

Inheritance diagram for PHTML:

PStringStream PString PCharArray PServiceHTML List of all members.

Public Types

enum  ElementInSet {
  InHTML, InHead, InBody, InTitle,
  InHeading, InDivision, InPreFormat, InAnchor,
  InNote, InAddress, InBlockQuote, InCredit,
  InBold, InItalic, InTeleType, InUnderline,
  InStrikeThrough, InBig, InSmall, InSubscript,
  InSuperscript, InEmphasis, InCite, InStrong,
  InCode, InSample, InKeyboard, InVariable,
  InDefinition, InQuote, InAuthor, InPerson,
  InAcronym, InAbbrev, InInsertedText, InDeletedText,
  InList, InListHeading, InDefinitionTerm, InTable,
  InForm, InSelect, InTextArea, NumElementsInSet
}
enum  BorderCodes { NoBorder, Border }
enum  DisableCodes { Enabled, Disabled }
enum  SelectionCodes { NotSelected, Selected }
enum  CheckedCodes { UnChecked, Checked }

Public Member Functions

 PHTML (ElementInSet initialState=NumElementsInSet)
 PHTML (const char *cstr)
 PHTML (const PString &str)
 ~PHTML ()
PHTMLoperator= (const PHTML &html)
PHTMLoperator= (const PString &str)
PHTMLoperator= (const char *cstr)
PHTMLoperator= (char ch)
BOOL Is (ElementInSet elmt) const
void Set (ElementInSet elmt)
void Clr (ElementInSet elmt)
void Toggle (ElementInSet elmt)

Protected Member Functions

virtual void AssignContents (const PContainer &c)

Detailed Description

This class describes a HyperText markup Language string as used by the World Wide Web and the PURL# and #PHTTPSocket# class.

All of the standard stream I/O operators, manipulators etc will operate on the PString class.


Member Enumeration Documentation

enum PHTML::BorderCodes
 

Enumeration values:
NoBorder 
Border 

enum PHTML::CheckedCodes
 

Enumeration values:
UnChecked 
Checked 

enum PHTML::DisableCodes
 

Enumeration values:
Enabled 
Disabled 

enum PHTML::ElementInSet
 

Enumeration values:
InHTML 
InHead 
InBody 
InTitle 
InHeading 
InDivision 
InPreFormat 
InAnchor 
InNote 
InAddress 
InBlockQuote 
InCredit 
InBold 
InItalic 
InTeleType 
InUnderline 
InStrikeThrough 
InBig 
InSmall 
InSubscript 
InSuperscript 
InEmphasis 
InCite 
InStrong 
InCode 
InSample 
InKeyboard 
InVariable 
InDefinition 
InQuote 
InAuthor 
InPerson 
InAcronym 
InAbbrev 
InInsertedText 
InDeletedText 
InList 
InListHeading 
InDefinitionTerm 
InTable 
InForm 
InSelect 
InTextArea 
NumElementsInSet 

enum PHTML::SelectionCodes
 

Enumeration values:
NotSelected 
Selected 


Constructor & Destructor Documentation

PHTML::PHTML ElementInSet  initialState = NumElementsInSet  ) 
 

Construct a new HTML object. If a title is specified in the constructor then the HEAD, TITLE and BODY elements are output and the string is used in a H1 element.

PHTML::PHTML const char *  cstr  ) 
 

PHTML::PHTML const PString str  ) 
 

PHTML::~PHTML  ) 
 


Member Function Documentation

virtual void PHTML::AssignContents const PContainer c  )  [protected, virtual]
 

Reimplemented from PStringStream.

void PHTML::Clr ElementInSet  elmt  ) 
 

BOOL PHTML::Is ElementInSet  elmt  )  const
 

PHTML& PHTML::operator= char  ch  )  [inline]
 

Assign the character to the current object. The current instance then becomes a unique reference to a copy of the character parameter. eg: {verbatim} myStr = 'A'; {verbatim}

Returns:
reference to the current PString object.

Reimplemented from PStringStream.

PHTML& PHTML::operator= const char *  cstr  )  [inline]
 

Assign the C string to the string stream. The current instance then becomes a unique reference to a copy of the #cstr# parameter. The #cstr# parameter is typically a literal string, eg: {verbatim} myStr = "fred"; {verbatim}

This will reset the read pointer for input to the beginning of the string. Also, any data output to the string up until the asasignement will be lost.

Returns:
reference to the current PStringStream object.

Reimplemented from PStringStream.

PHTML& PHTML::operator= const PString str  )  [inline]
 

Assign the string to the current object. The current instance then becomes another reference to the same string in the #str# parameter.

This will reset the read pointer for input to the beginning of the string. Also, any data output to the string up until the asasignement will be lost.

Returns:
reference to the current PStringStream object.

Reimplemented from PStringStream.

PHTML& PHTML::operator= const PHTML html  )  [inline]
 

Restart the HTML string output using the specified value as the new title. If title is empty then no HEAD or TITLE elements are placed into the HTML.

void PHTML::Set ElementInSet  elmt  ) 
 

void PHTML::Toggle ElementInSet  elmt  ) 
 


The documentation for this class was generated from the following file:
Generated on Sat Jul 24 15:35:58 2004 for PWLib by doxygen 1.3.7