#include <weHtmlEntity.h>
Public Member Functions | |
WeHtmlEntity (iweEntity *prnt=NULL) | |
Default constructor. | |
WeHtmlEntity (WeHtmlEntity &entity) | |
Copy constructor. | |
~WeHtmlEntity () | |
Destructor. | |
virtual const string & | InnerText (void) |
Inner text. Just a plain text inside this entity. | |
virtual const string & | OuterText (void) |
Outer text. | |
virtual WeCmpResults * | Diff (iweEntity &cmp, weCmpMode mode) |
virtual weCmpState | Compare (iweEntity &cmp, weCmpMode mode) |
Query if 'entity' is equal. | |
virtual WeScannerToken | Parse (string tagName, WeTagScanner &scanner, iweTransport *processor=NULL) |
Parses the given stream. |
This class implements basic functionality for the HTML elements inside WebEngine library. It holds the collection of the attributes, child entities, and other necessary information. Some functions such as comparisons are implemented inside this class too.
Definition at line 45 of file weHtmlEntity.h.
WeHtmlEntity::WeHtmlEntity | ( | iweEntity * | prnt = NULL |
) |
WeHtmlEntity::WeHtmlEntity | ( | WeHtmlEntity & | entity | ) |
Copy constructor.
entity | - the entity to make the copy of. |
Definition at line 117 of file weHtmlEntity.cpp.
WeHtmlEntity::~WeHtmlEntity | ( | void | ) |
weCmpState WeHtmlEntity::Compare | ( | iweEntity & | entity, | |
weCmpMode | mode | |||
) | [virtual] |
Query if 'entity' is equal.
entity | - the entity for comparison. | |
mode | - the mode comparison mode. |
true | if equal, false if not. |
Implements iweEntity.
Reimplemented in WeInnerText, and WeHtmlDocument.
Definition at line 220 of file weHtmlEntity.cpp.
WeCmpResults * WeHtmlEntity::Diff | ( | iweEntity & | cmp, | |
weCmpMode | mode | |||
) | [virtual] |
Implements iweEntity.
Reimplemented in WeInnerText, and WeHtmlDocument.
Definition at line 438 of file weHtmlEntity.cpp.
const string & WeHtmlEntity::InnerText | ( | void | ) | [virtual] |
Inner text. Just a plain text inside this entity.
null | if something wrong, inner text string otherwise. |
Implements iweEntity.
Reimplemented in WeInnerText, and WeHtmlDocument.
Definition at line 145 of file weHtmlEntity.cpp.
const string & WeHtmlEntity::OuterText | ( | void | ) | [virtual] |
Outer text.
The text with outer HTML tags for this entity and all children HTML representations.
null | if something wrong, string that represents the HTML-encoded entity, includes own tags and all child entities otherwise. |
Implements iweEntity.
Reimplemented in WeInnerText, and WeHtmlDocument.
Definition at line 170 of file weHtmlEntity.cpp.
WeScannerToken WeHtmlEntity::Parse | ( | string | tagName, | |
WeTagScanner & | scanner, | |||
iweTransport * | processor = NULL | |||
) | [virtual] |
Parses the given stream.
This function goes through the input stream by the WeTagScanner and creates HTML entity. All child entities are created recursively.
tagName | - name of the tag. | |
scanner | - the scanner. | |
processor | - WeHTTP object with processing options and network connection |
WeScannerToken | that represents current scanner's state. |
Implements iweEntity.
Definition at line 244 of file weHtmlEntity.cpp.
©2009 Positive Technologies |
Generated on Tue Jul 14 18:27:31 2009 for WebEngine by |
|
1.5.7 |
|