html::attrib Class Reference
[Html Document preparation]

#include <Attrib.hh>

Inheritance diagram for html::attrib:

html::align html::boolAttr html::color html::font html::genAttr html::size

List of all members.

Public Member Functions

 attrib (void)
 attrib (const attrib &x)
virtual ~attrib (void)
virtual attribclone (void) const =0
virtual void setWrite (writer &w) const
virtual bool isDefault (void) const
virtual bool hasArg (void) const
virtual void putAttr (writer &w) const


Detailed Description

Abstract attribute API. brief Attribute API.
Author:
J. Zweizig
Version:
1.1; Modified May 4, 2001.

Constructor & Destructor Documentation

html::attrib::attrib ( void   ) 

Null attribute constructor. brief Default constructor.

html::attrib::attrib ( const attrib x  ) 

Attribute copy constructor. brief Copy Constructor.

virtual html::attrib::~attrib ( void   )  [virtual]

Attribute destructor. brief Destructor.


Member Function Documentation

virtual attrib* html::attrib::clone ( void   )  const [pure virtual]

Make an exact copy of the current attribute. brief Clone an attribute.

Returns:
Pointer to the cloned attribute.

Implemented in html::align, html::boolAttr, html::color, html::font, html::genAttr, and html::size.

virtual void html::attrib::setWrite ( writer w  )  const [virtual]

Set the writer according to the attribute specified. brief set the writer with an attribute.

Parameters:
w HTML writer to be set.

virtual bool html::attrib::isDefault ( void   )  const [virtual]

Test whether the attribute is set to its default value. brief Test for default attribute.

Returns:
True if the attribute is the default value.

Reimplemented in html::align, html::boolAttr, html::color, html::font, html::genAttr, and html::size.

virtual bool html::attrib::hasArg ( void   )  const [virtual]

Test whether the attribute takes an argument. brief Test for boolean attribute.

Returns:
True if the attribute takes an argument.

Reimplemented in html::boolAttr, and html::genAttr.

virtual void html::attrib::putAttr ( writer w  )  const [virtual]

Write the attribute value to be used inside a tag. brief write the attrubute value to an html writer.

Parameters:
w HTML writer to which the attribute value is written.

Reimplemented in html::align, html::boolAttr, html::color, html::font, html::genAttr, and html::size.


The documentation for this class was generated from the following file:
Generated on Sun Mar 8 19:21:25 2009 for dmt by  doxygen 1.5.4