html::boolAttr Class Reference
[Html Document preparation]

Boolean attribute class. More...

#include <boolAttr.hh>

Inheritance diagram for html::boolAttr:

html::attrib

List of all members.

Public Member Functions

 boolAttr (bool value=true)
 Boolean attribute constructor.
 ~boolAttr (void)
 Destructor.
boolAttrclone (void) const
 Clone attribute.
bool isDefault (void) const
bool hasArg (void) const
 Has argument test.
void putAttr (writer &w) const
 Write the alignment.
void setValue (bool value=true)
 Set the value.
bool operator== (const boolAttr &x) const
 Compare operator.


Detailed Description

Boolean attribute class.

Generic boolean attribute class.

Author:
John Zweizig
Version:
1.1; Last modified March 4, 2008

Constructor & Destructor Documentation

html::boolAttr::boolAttr ( bool  value = true  ) 

Boolean attribute constructor.

Construct a boolean attribute and optionally initialize the value.

Parameters:
value Initial value for boolean attribute.

html::boolAttr::~boolAttr ( void   ) 

Destructor.

Destroy a boolean attribute.


Member Function Documentation

boolAttr* html::boolAttr::clone ( void   )  const [virtual]

Clone attribute.

Make an identical copy of the boolean attribute.

Returns:
Pointer to the cloned boolAttr object.

Implements html::attrib.

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

Test whether the alignment is the default value.

Returns:
true if default alignment.

Reimplemented from html::attrib.

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

Has argument test.

Boolean attributes (keywords) have no argument. The attribute is therefore written as a name only.

Returns:
Always false.

Reimplemented from html::attrib.

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

Write the alignment.

Write the attribute to the specified html writer.

Parameters:
w Html writer reference.

Reimplemented from html::attrib.

void html::boolAttr::setValue ( bool  value = true  ) 

Set the value.

Set the boolean argument.

Parameters:
value Attribute value.

bool html::boolAttr::operator== ( const boolAttr x  )  const

Compare operator.

Test whether this attribute is equal to the argument.

Parameters:
x boolAttr object to be compared
Returns:
True if this attribute is equal to the argument.


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