#include <weHtmlEntity.h>
Public Member Functions | |
WeHtmlDocument (iweEntity *prnt=NULL) | |
Default constructor. | |
WeHtmlDocument (WeHtmlDocument &entity) | |
Copy constructor. | |
~WeHtmlDocument () | |
Destructor. | |
virtual const string & | InnerText (void) |
Inner text. | |
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 WeBlob & | Data (void) |
Access the Data. | |
virtual bool | ParseData (iweResponse *resp, iweTransport *processor=NULL) |
Parse data stored inside WeHttpResponce. |
Special kind of WeHtmlEntity - whole web document. It may contains some other WeHtmlEntity, such as page layout elements, or (and) other WeHtmlDocument's. For example, if the root document contains frames, the frames sources will be added to root document as the child documents.
Definition at line 149 of file weHtmlEntity.h.
WeHtmlDocument::WeHtmlDocument | ( | iweEntity * | prnt = NULL |
) |
WeHtmlDocument::WeHtmlDocument | ( | WeHtmlDocument & | entity | ) |
Copy constructor.
entity | - the document to make copy of. |
Definition at line 671 of file weHtmlEntity.cpp.
WeHtmlDocument::~WeHtmlDocument | ( | void | ) |
weCmpState WeHtmlDocument::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. |
Reimplemented from WeHtmlEntity.
Definition at line 769 of file weHtmlEntity.cpp.
WeBlob & WeHtmlDocument::Data | ( | void | ) | [virtual] |
Access the Data.
Grants access to the linked response data.
Data property represents downloaded data of the linked object. Images, script sources and other data may be stored here.
WeError | if no iweResponse assigned |
Implements iweDocument.
Definition at line 755 of file weHtmlEntity.cpp.
WeCmpResults * WeHtmlDocument::Diff | ( | iweEntity & | cmp, | |
weCmpMode | mode | |||
) | [virtual] |
Reimplemented from WeHtmlEntity.
Definition at line 763 of file weHtmlEntity.cpp.
const string & WeHtmlDocument::InnerText | ( | void | ) | [virtual] |
Inner text.
null | if something wrong, inner text string otherwise. |
Reimplemented from WeHtmlEntity.
Definition at line 694 of file weHtmlEntity.cpp.
const string & WeHtmlDocument::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 708 of file weHtmlEntity.cpp.
bool WeHtmlDocument::ParseData | ( | iweResponse * | resp, | |
iweTransport * | processor = NULL | |||
) | [virtual] |
Parse data stored inside WeHttpResponce.
processor | - iweTransport object with processing options and network connection | |
resp | - iweResponse object with received data to parse |
true | if it succeeds, false if it fails. |
Implements iweDocument.
Definition at line 730 of file weHtmlEntity.cpp.
©2009 Positive Technologies |
Generated on Tue Jul 14 18:27:31 2009 for WebEngine by |
|
1.5.7 |
|