#include <Attributes.hpp>
<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::AttributeID & | getAttributeType () 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. |
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] |
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.
position | The new final position |
void HTML::Attributes::Attribute::setEndPosition | ( | uint32 | position | ) | [inline] |
Set the end position.
position | The new end position |
void HTML::Attributes::Attribute::setStartContent | ( | uint32 | position | ) | [inline] |
Set the end tag position.
position | The new end tag position |
void HTML::Attributes::Attribute::setStartPosition | ( | uint32 | position | ) | [inline] |
Set the start position.
position | The new start position |