HTML::Attributes::Attribute Class Reference

#include <Attributes.hpp>

List of all members.


Detailed Description

The base attribute class The positions are set like specified in this schematic :.

            <element some_attribute =                      "some text"   >
                     |             |__ endPosition          |        |__ endContent
                     |__ startPosition                      |__ startContent
            

If the attribute doesn't have a content text (like DISABLED / SELECTED), then both startContent and endContent are 0


Public Member Functions

 Attribute (const Attribute &attrib)
 Attribute (const HTML::GenericAttribute::AttributeID &type=HTML::GenericAttribute::Unknown, uint32 startPos=0, uint32 endPos=0, uint32 startCont=0, uint32 endCont=0)
const tchar * attributeName () constvolatile
 Get the attribute name as a char array.
void beenMutated ()
 Modify this attribute to say it has been changed by the user.
const HTML::GenericAttribute::AttributeIDgetAttributeType () const
 Get the attribute type.
uint32 getEndContent () const
 Get the final position.
uint32 getEndPosition () const
 Get the end position.
uint32 getStartContent () const
 Get the end tag position.
uint32 getStartPosition () const
 Get the start position.
void setEndContent (uint32 position)
 Set the final position.
void setEndPosition (uint32 position)
 Set the end position.
void setStartContent (uint32 position)
 Set the end tag position.
void setStartPosition (uint32 position)
 Set the start position.

Static Public Member Functions

static const tchar * defaultValue (const HTML::GenericAttribute::AttributeID &attributeType)
 Get the default value for an attribute ID.


Constructor & Destructor Documentation

HTML::Attributes::Attribute::Attribute ( const HTML::GenericAttribute::AttributeID type = HTML::GenericAttribute::Unknown,
uint32  startPos = 0,
uint32  endPos = 0,
uint32  startCont = 0,
uint32  endCont = 0 
) [inline]

HTML::Attributes::Attribute::Attribute ( const Attribute attrib  )  [inline]


Member Function Documentation

const tchar* HTML::Attributes::Attribute::attributeName (  )  const volatile [inline]

Get the attribute name as a char array.

void HTML::Attributes::Attribute::beenMutated (  )  [inline]

Modify this attribute to say it has been changed by the user.

static const tchar* HTML::Attributes::Attribute::defaultValue ( const HTML::GenericAttribute::AttributeID attributeType  )  [inline, static]

Get the default value for an attribute ID.

const HTML::GenericAttribute::AttributeID& HTML::Attributes::Attribute::getAttributeType (  )  const [inline]

Get the attribute type.

uint32 HTML::Attributes::Attribute::getEndContent (  )  const [inline]

Get the final position.

uint32 HTML::Attributes::Attribute::getEndPosition (  )  const [inline]

Get the end position.

uint32 HTML::Attributes::Attribute::getStartContent (  )  const [inline]

Get the end tag position.

uint32 HTML::Attributes::Attribute::getStartPosition (  )  const [inline]

Get the start position.

void HTML::Attributes::Attribute::setEndContent ( uint32  position  )  [inline]

Set the final position.

Parameters:
position The new final position
See also:
Element for details where the position are

void HTML::Attributes::Attribute::setEndPosition ( uint32  position  )  [inline]

Set the end position.

Parameters:
position The new end position
See also:
Element for details where the position are

void HTML::Attributes::Attribute::setStartContent ( uint32  position  )  [inline]

Set the end tag position.

Parameters:
position The new end tag position
See also:
Element for details where the position are

void HTML::Attributes::Attribute::setStartPosition ( uint32  position  )  [inline]

Set the start position.

Parameters:
position The new start position
See also:
Element for details where the position are


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

(C) An X-Ryl669 project 2007

This document describes Unlimited Zooming Interface source code. UZI stands for Unlimited Zooming Interface, and source code license is