WeInnerText Class Reference

HTML entity to store plain text . More...

#include <weHtmlEntity.h>

Inheritance diagram for WeInnerText:

WeHtmlEntity iweEntity WeCData WeHtmlComment WePhpInclude

List of all members.

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 WeCmpResultsDiff (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 WeHtmlEntityChild (int idx)
 Placeholder to avoid children manipulations.
virtual WeHtmlEntityChild (string type)
virtual WeEntityListChildren ()
 Placeholder to avoid children manipulations.


Detailed Description

HTML entity to store plain text .

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.

Author:
A. Abramov
Date:
26.05.2009

Definition at line 73 of file weHtmlEntity.h.


Constructor & Destructor Documentation

WeInnerText::WeInnerText ( iweEntity prnt = NULL  ) 

Default constructor.

Definition at line 449 of file weHtmlEntity.cpp.

WeInnerText::WeInnerText ( WeInnerText entity  ) 

Copy constructor.

Parameters:
entity - the entity.

Definition at line 463 of file weHtmlEntity.cpp.

WeInnerText::~WeInnerText (  ) 

Destructor.

Definition at line 475 of file weHtmlEntity.cpp.


Member Function Documentation

void WeInnerText::Attr ( string  name,
string  value 
) [virtual]

Sets the attribute.

Parameters:
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.

Parameters:
name - The attribute name (skipped).
Return values:
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.

Exceptions:
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.

Parameters:
cmp - iweEntity to be compared.
mode - comparison mode.
Return values:
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.

Parameters:
cmp - iweEntity to be compared.
mode - The mode.
Return values:
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.

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

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


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