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)

Friends

class TableStart
class TableEnd

Classes

class  Abbrev
class  Acronym
class  Address
class  Author
class  Banner
class  Big
class  BlockQuote
class  Body
class  Bold
class  BreakLine
class  BulletList
class  CheckBox
class  Cite
class  Code
class  Credit
class  Definition
class  DefinitionItem
class  DefinitionList
class  DefinitionTerm
class  DeletedText
class  Division
class  Element
class  Emphasis
class  FieldElement
class  Form
class  FormField
class  Head
class  Heading
class  HiddenField
class  HotLink
class  HRule
class  HTML
class  Image
class  ImageElement
class  InputField
class  InputFile
class  InputImage
class  InputPassword
class  InputRange
class  InputScribble
class  InputText
class  InsertedText
class  Italic
class  Keyboard
class  ListHeading
class  ListItem
class  Note
class  Option
class  OrderedList
class  Paragraph
class  Person
class  PreFormat
class  Quote
class  RadioButton
class  ResetButton
class  Sample
class  Select
class  SetTab
class  SimpleList
class  Small
class  StrikeThrough
class  Strong
class  SubmitButton
class  Subscript
class  Superscript
class  Tab
class  TableData
class  TableEnd
class  TableHeader
class  TableRow
class  TableStart
class  Target
class  TeleType
class  TextArea
class  Title
class  Underline
class  Variable

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::ElementInSet

Enumerator:
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::BorderCodes

Enumerator:
NoBorder 
Border 

enum PHTML::DisableCodes

Enumerator:
Enabled 
Disabled 

enum PHTML::SelectionCodes

Enumerator:
NotSelected 
Selected 

enum PHTML::CheckedCodes

Enumerator:
UnChecked 
Checked 


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  ) 

Parameters:
cstr  C string representation of the title string.

PHTML::PHTML ( const PString str  ) 

Parameters:
str  String representation of the title string.

PHTML::~PHTML (  ) 


Member Function Documentation

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.

Parameters:
html  HTML stream to make a copy of.

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.
Parameters:
str  String for title in restating HTML.

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.
Parameters:
cstr  String for title in restating HTML.

Reimplemented from PStringStream.

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.
Parameters:
ch  String for title in restating HTML.

Reimplemented from PStringStream.

BOOL PHTML::Is ( ElementInSet  elmt  )  const

void PHTML::Set ( ElementInSet  elmt  ) 

void PHTML::Clr ( ElementInSet  elmt  ) 

void PHTML::Toggle ( ElementInSet  elmt  ) 

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

Reimplemented from PStringStream.


Friends And Related Function Documentation

friend class TableStart [friend]

friend class TableEnd [friend]


The documentation for this class was generated from the following file:
Generated on Fri Mar 7 06:25:05 2008 for PTLib by  doxygen 1.5.1