WeHtmlEntity Class Reference

HTML entity. More...

#include <weHtmlEntity.h>

Inheritance diagram for WeHtmlEntity:

iweEntity WeHtmlDocument WeInnerText WeRefrenceObject WeCData WeHtmlComment WePhpInclude WeScript

List of all members.

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 WeCmpResultsDiff (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.


Detailed Description

HTML entity.

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.

Author:
A.Abramov
Date:
26.05.2009.

Definition at line 45 of file weHtmlEntity.h.


Constructor & Destructor Documentation

WeHtmlEntity::WeHtmlEntity ( iweEntity prnt = NULL  ) 

Default constructor.

Definition at line 100 of file weHtmlEntity.cpp.

WeHtmlEntity::WeHtmlEntity ( WeHtmlEntity entity  ) 

Copy constructor.

Parameters:
entity - the entity to make the copy of.

Definition at line 117 of file weHtmlEntity.cpp.

WeHtmlEntity::~WeHtmlEntity ( void   ) 

Destructor.

Definition at line 131 of file weHtmlEntity.cpp.


Member Function Documentation

weCmpState WeHtmlEntity::Compare ( iweEntity entity,
weCmpMode  mode 
) [virtual]

Query if 'entity' is equal.

Parameters:
entity - the entity for comparison.
mode - the mode comparison mode.
Return values:
true if equal, false if not.

Todo:
Implement this!

Implements iweEntity.

Reimplemented in WeInnerText, and WeHtmlDocument.

Definition at line 220 of file weHtmlEntity.cpp.

WeCmpResults * WeHtmlEntity::Diff ( iweEntity cmp,
weCmpMode  mode 
) [virtual]

Todo:
Implement this

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.

Return values:
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.

Return values:
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.

Parameters:
tagName - name of the tag.
scanner - the scanner.
processor - WeHTTP object with processing options and network connection
Return values:
WeScannerToken that represents current scanner's state.

Todo:
Add forms processing

Todo:
Add forms processing

Todo:
Add forms processing

Todo:
Add forms processing

Implements iweEntity.

Definition at line 244 of file weHtmlEntity.cpp.


The documentation for this class was generated from the following files:


 
©2009 Positive Technologies
 
Generated on Tue Jul 14 18:27:31 2009 for WebEngine by 
 
 
1.5.7
 
Get wpcObj at SourceForge.net. Fast, secure and Free Open Source software downloads