#include <Elements.hpp>
<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::ElementID & | getElementType () 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. | |
| typedef const HTML::GenericElement* const HTML::Elements::Element::ValidationRules |
The validation rules type definition.
| 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] |
| 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.
| position | The new end position |
| void HTML::Elements::Element::setEndTagPosition | ( | uint32 | position | ) | [inline] |
Set the end tag position.
| position | The new end tag position |
| void HTML::Elements::Element::setFinalPosition | ( | uint32 | position | ) | [inline] |
Set the final position.
| position | The new final position |
| void HTML::Elements::Element::setStartPosition | ( | uint32 | position | ) | [inline] |
Set the start position.
| position | The new start position |
| 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.
