HTML::Elements::Element Class Reference

#include <Elements.hpp>

List of all members.


Detailed Description

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

            <element some_attribute>
             |                     |__ endPosition
             |__ startPosition
   
            ... [ Content ] ...
       
            </element              >
              |                    |___ finalPosition
              |__ endTagPosition
            

If the element doesn't have an end tag, either it is because:


Public Types

typedef const HTML::GenericElement
*const 
ValidationRules
 The validation rules type definition.

Public Member Functions

 Element (const Element &element)
 Element (const HTML::GenericElement::ElementID type=HTML::GenericElement::Unknown, uint32 startPos=0, uint32 endPos=0)
const HTML::GenericElement::ElementIDgetElementType () const
 Get the element type.
uint32 getEndPosition () const
 Get the end position.
uint32 getEndTagPosition () const
 Get the end tag position.
uint32 getFinalPosition () const
 Get the final position.
uint32 getStartPosition () const
 Get the start position.
ValidationRules getValidationRules () const
 Get the rule for this element or 0 if not identifiable element.
void setEndPosition (uint32 position)
 Set the end position.
void setEndTagPosition (uint32 position)
 Set the end tag position.
void setFinalPosition (uint32 position)
 Set the final position.
void setStartPosition (uint32 position)
 Set the start position.
bool tagClosed () const
 Is this tag closed ?
const tchar * tagName () constvolatile
 This method returns the tag name as a char array.


Member Typedef Documentation

typedef const HTML::GenericElement* const HTML::Elements::Element::ValidationRules

The validation rules type definition.


Constructor & Destructor Documentation

HTML::Elements::Element::Element ( const HTML::GenericElement::ElementID  type = HTML::GenericElement::Unknown,
uint32  startPos = 0,
uint32  endPos = 0 
) [inline]

HTML::Elements::Element::Element ( const Element element  )  [inline]


Member Function Documentation

const HTML::GenericElement::ElementID& HTML::Elements::Element::getElementType (  )  const [inline]

Get the element type.

uint32 HTML::Elements::Element::getEndPosition (  )  const [inline]

Get the end position.

uint32 HTML::Elements::Element::getEndTagPosition (  )  const [inline]

Get the end tag position.

uint32 HTML::Elements::Element::getFinalPosition (  )  const [inline]

Get the final position.

uint32 HTML::Elements::Element::getStartPosition (  )  const [inline]

Get the start position.

ValidationRules HTML::Elements::Element::getValidationRules (  )  const [inline]

Get the rule for this element or 0 if not identifiable element.

void HTML::Elements::Element::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::Elements::Element::setEndTagPosition ( 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::Elements::Element::setFinalPosition ( uint32  position  )  [inline]

Set the final position.

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

void HTML::Elements::Element::setStartPosition ( uint32  position  )  [inline]

Set the start position.

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

bool HTML::Elements::Element::tagClosed (  )  const [inline]

Is this tag closed ?

const tchar* HTML::Elements::Element::tagName (  )  const volatile [inline]

This method returns the tag name as a char array.


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