HTML::ENUM< _ET > Class Template Reference

A template for any enum in a CSS STYLE. More...

#include <mi32/htmlenum.h>

List of all members.

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)

Detailed Description

template<typename _ET>
class HTML::ENUM< _ET >

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


Constructor & Destructor Documentation

template<typename _ET>
HTML::ENUM< _ET >::ENUM (  )  [inline]

Default ctor -- initializes to a "not set" state.

template<typename _ET>
HTML::ENUM< _ET >::ENUM ( _ET  val  )  [inline]

ctor -- initialize to a specific value

template<typename _ET>
HTML::ENUM< _ET >::ENUM ( const ENUM< _ET > &  rhs  )  [inline]

copy ctor


Member Function Documentation

template<typename _ET>
void HTML::ENUM< _ET >::Clear (  )  [inline]

Clear to "not set" state.

template<typename _ET>
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.

template<typename _ET>
_ET HTML::ENUM< _ET >::GetValue (  )  const [inline]

Get the value.

template<typename _ET>
bool HTML::ENUM< _ET >::IsSet (  )  const [inline]

Determine if the value is set or not.

template<typename _ET>
HTML::ENUM< _ET >::operator _ET (  )  const [inline]

Convert to the actual enum.

template<typename _ET>
ENUM<_ET>& HTML::ENUM< _ET >::operator= ( _ET  val  )  [inline]

Assignment operator.

template<typename _ET>
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.


The documentation for this class was generated from the following file:

Generated on Sun Oct 7 21:35:01 2012 for TNTsdk 2012 by  doxygen 1.6.1