#include <weHtmlEntity.h>
Public Member Functions | |
WeInnerText (iweEntity *prnt=NULL) | |
Default constructor. | |
WeInnerText (WeInnerText &entity) | |
Copy constructor. | |
~WeInnerText () | |
Destructor. | |
virtual const string | Attr (string) |
Gets the attribute value. | |
virtual void | Attr (string, string) |
Sets the attribute. | |
virtual const string & | InnerText (void) |
Inner text. | |
virtual const string & | OuterText (void) |
Outer text. | |
virtual WeCmpResults * | Diff (iweEntity &cmp, weCmpMode mode) |
Builds difference between two texts. | |
virtual weCmpState | Compare (iweEntity &cmp, weCmpMode mode) |
Compares two iweEntity& objects to determine their relative ordering. | |
virtual WeHtmlEntity * | Child (int idx) |
Placeholder to avoid children manipulations. | |
virtual WeHtmlEntity * | Child (string type) |
virtual WeEntityList & | Children () |
Placeholder to avoid children manipulations. |
Special kind of WeHtmlEntity - plain text inside other entities. It contains only one attribute and no children. The attribute name is ignored in the user calls and stored as '#text' in the collection.
Definition at line 73 of file weHtmlEntity.h.
WeInnerText::WeInnerText | ( | iweEntity * | prnt = NULL |
) |
WeInnerText::WeInnerText | ( | WeInnerText & | entity | ) |
WeInnerText::~WeInnerText | ( | ) |
void WeInnerText::Attr | ( | string | name, | |
string | value | |||
) | [virtual] |
Sets the attribute.
name | - The attribute name (skipped). | |
value | - The attribute value. |
Implements iweEntity.
Definition at line 510 of file weHtmlEntity.cpp.
const string WeInnerText::Attr | ( | string | name | ) | [virtual] |
Gets the attribute value.
name | - The attribute name (skipped). |
attribute | value if the attribute exist, empty string otherwise. |
Implements iweEntity.
Definition at line 490 of file weHtmlEntity.cpp.
virtual WeHtmlEntity* WeInnerText::Child | ( | string | type | ) | [inline, virtual] |
Placeholder to avoid children manipulations
Implements iweEntity.
Definition at line 89 of file weHtmlEntity.h.
virtual WeHtmlEntity* WeInnerText::Child | ( | int | idx | ) | [inline, virtual] |
Placeholder to avoid children manipulations.
Implements iweEntity.
Definition at line 88 of file weHtmlEntity.h.
virtual WeEntityList& WeInnerText::Children | ( | ) | [inline, virtual] |
Placeholder to avoid children manipulations.
runtime_error | with description |
Implements iweEntity.
Definition at line 92 of file weHtmlEntity.h.
weCmpState WeInnerText::Compare | ( | iweEntity & | cmp, | |
weCmpMode | mode | |||
) | [virtual] |
Compares two iweEntity& objects to determine their relative ordering.
cmp | - iweEntity to be compared. | |
mode | - comparison mode. |
Negative | if 'cmp' is less than this object, 0 if they are equal, or positive if it is greater. See the weCmpState enum for symbolic constants. |
Reimplemented from WeHtmlEntity.
Definition at line 603 of file weHtmlEntity.cpp.
WeCmpResults * WeInnerText::Diff | ( | iweEntity & | cmp, | |
weCmpMode | mode | |||
) | [virtual] |
Builds difference between two texts.
cmp | - iweEntity to be compared. | |
mode | - The mode. |
null | if it fails, the list of the compares else. |
Reimplemented from WeHtmlEntity.
Definition at line 565 of file weHtmlEntity.cpp.
const string & WeInnerText::InnerText | ( | void | ) | [virtual] |
Inner text.
null | if something wrong, inner text string otherwise. |
Reimplemented from WeHtmlEntity.
Definition at line 521 of file weHtmlEntity.cpp.
const string & WeInnerText::OuterText | ( | void | ) | [virtual] |
Outer text.
null | if something wrong, string that represents the HTML-encoded entity, includes own tags and all child entities otherwise. |
Reimplemented from WeHtmlEntity.
Definition at line 542 of file weHtmlEntity.cpp.
©2009 Positive Technologies |
Generated on Tue Jul 14 18:27:31 2009 for WebEngine by |
|
1.5.7 |
|