A template for any enum in a CSS STYLE. More...
#include <mi32/htmlenum.h>
Classes | |
| struct | BINDING |
Public Member Functions | |
| ENUM (const ENUM< _ET > &rhs) | |
| ENUM (_ET val) | |
| ENUM () | |
| void | Clear () |
| void | Combine (const ENUM< _ET > &rhs) |
| _ET | GetValue () const |
| bool | IsSet () const |
| operator _ET () const | |
| ENUM< _ET > & | operator= (_ET val) |
| bool | Parse (const char *str, const BINDING *bindings, bool bClearIfNotFound=true) |
A template for any enum in a CSS STYLE.
An HTML::ENUM can have a value or it can be "not set". It can also be parsed given an array of HTML::ENUM::BINDINGs
| HTML::ENUM< _ET >::ENUM | ( | ) | [inline] |
Default ctor -- initializes to a "not set" state.
| HTML::ENUM< _ET >::ENUM | ( | _ET | val | ) | [inline] |
ctor -- initialize to a specific value
| HTML::ENUM< _ET >::ENUM | ( | const ENUM< _ET > & | rhs | ) | [inline] |
copy ctor
| void HTML::ENUM< _ET >::Clear | ( | ) | [inline] |
Clear to "not set" state.
| void HTML::ENUM< _ET >::Combine | ( | const ENUM< _ET > & | rhs | ) | [inline] |
Combine with another enum.
If the rhs has a value, this is given that value. If rhs is not set, the value of this is left alone.
| _ET HTML::ENUM< _ET >::GetValue | ( | ) | const [inline] |
Get the value.
| bool HTML::ENUM< _ET >::IsSet | ( | ) | const [inline] |
Determine if the value is set or not.
| HTML::ENUM< _ET >::operator _ET | ( | ) | const [inline] |
Convert to the actual enum.
| ENUM<_ET>& HTML::ENUM< _ET >::operator= | ( | _ET | val | ) | [inline] |
Assignment operator.
| bool HTML::ENUM< _ET >::Parse | ( | const char * | str, | |
| const BINDING * | bindings, | |||
| bool | bClearIfNotFound = true | |||
| ) | [inline] |
Parse a string containing the value of the enum.
Must be given a static array of HTML::ENUM::BINDING which maps the strings to actual enum values. The last element of the array must be have a NULL string for the name.
1.6.1