#include <boolAttr.hh>

Public Member Functions | |
| boolAttr (bool value=true) | |
| Boolean attribute constructor. | |
| ~boolAttr (void) | |
| Destructor. | |
| boolAttr * | clone (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. | |
Generic boolean attribute class.
| html::boolAttr::boolAttr | ( | bool | value = true |
) |
Boolean attribute constructor.
Construct a boolean attribute and optionally initialize the value.
| value | Initial value for boolean attribute. |
| html::boolAttr::~boolAttr | ( | void | ) |
Destructor.
Destroy a boolean attribute.
| boolAttr* html::boolAttr::clone | ( | void | ) | const [virtual] |
| bool html::boolAttr::isDefault | ( | void | ) | const [virtual] |
Test whether the alignment is the default value.
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.
Reimplemented from html::attrib.
| void html::boolAttr::putAttr | ( | writer & | w | ) | const [virtual] |
Write the alignment.
Write the attribute to the specified html writer.
| w | Html writer reference. |
Reimplemented from html::attrib.
| void html::boolAttr::setValue | ( | bool | value = true |
) |
Set the value.
Set the boolean argument.
| value | Attribute value. |
| bool html::boolAttr::operator== | ( | const boolAttr & | x | ) | const |
1.5.4