#include <weiParser.h>
Public Member Functions | |
virtual | ~iweEntity () |
virtual const string | Attr (string) |
Gets the attribute value. | |
virtual void | Attr (string, string) |
Sets the attribute. | |
void | ClearAttr (void) |
virtual iweEntity * | Child (string type) |
Clears all attributes. | |
virtual iweEntity * | Child (int idx) |
Access to children by index. | |
virtual WeEntityList & | Children () |
void | ClearChildren (void) |
Direct access to the children collection. | |
virtual const string & | InnerText (void)=0 |
virtual const string & | OuterText (void)=0 |
iweEntity * | FindID (string id) |
Finds the entity with given ID. | |
WeEntityList & | FindTags (string tag) |
Finds the entity with given tag name. | |
virtual WeScannerToken | Parse (string tagName, WeTagScanner &scanner, iweTransport *processor=NULL) |
virtual WeCmpResults * | Diff (iweEntity &cmp, weCmpMode mode=weCmpDefault)=0 |
virtual weCmpState | Compare (iweEntity &cmp, weCmpMode mode=weCmpDefault)=0 |
virtual bool | operator== (iweEntity &cmp) |
iweDocument * | GetRootDocument (void) |
Gets the root document. | |
const string | ID (void) const |
Gets the entity unique ID. | |
const iweEntity * | Parent (void) const |
Access the Parent. | |
void | Parent (iweEntity *prnt) |
Access the Parent. | |
const string & | Name (void) const |
Name property access. | |
void | Name (const string &EntityName) |
Access the Parent. | |
Static Public Member Functions | |
static const weCmpMode & | CompareMode (void) |
CompareMode property access. | |
static void | CompareMode (const weCmpMode &cMode) |
CompareMode property access. | |
Protected Member Functions | |
virtual void | GenerateId (void) |
Generates an identifier. | |
bool | IsParentTag (string tag) |
Query if 'tag' is parent tag. |
Definition at line 47 of file weiParser.h.
virtual iweEntity::~iweEntity | ( | ) | [inline, virtual] |
Definition at line 50 of file weiParser.h.
void iweEntity::Attr | ( | string | name, | |
string | value | |||
) | [virtual] |
Sets the attribute.
name | - The attribute name. | |
value | - The attribute value. |
Implemented in WeInnerText.
Definition at line 61 of file weiParser.cpp.
const string iweEntity::Attr | ( | string | name | ) | [virtual] |
Gets the attribute value.
name | - The attribute name. |
attribute | value if the attribute exist, empty string otherwise. |
Implemented in WeInnerText.
Definition at line 41 of file weiParser.cpp.
iweEntity * iweEntity::Child | ( | int | idx | ) | [virtual] |
Access to children by index.
idx | - index of the child in the collection |
null | if it fails, the pointer to the WeHtmlEntity else. |
Implemented in WeInnerText.
Definition at line 94 of file weiParser.cpp.
iweEntity * iweEntity::Child | ( | string | type | ) | [virtual] |
Clears all attributes.
Access to children by entity name.
type | - name of the child in the collection |
null | if it no children of such type, the pointer to the WeHtmlEntity else. |
Implemented in WeInnerText.
Definition at line 73 of file weiParser.cpp.
virtual WeEntityList& iweEntity::Children | ( | ) | [inline, virtual] |
void iweEntity::ClearAttr | ( | void | ) | [inline] |
Definition at line 54 of file weiParser.h.
void iweEntity::ClearChildren | ( | void | ) |
Direct access to the children collection.
Clears a children.
Definition at line 206 of file weiParser.cpp.
virtual weCmpState iweEntity::Compare | ( | iweEntity & | cmp, | |
weCmpMode | mode = weCmpDefault | |||
) | [pure virtual] |
Implemented in WeHtmlEntity, WeInnerText, and WeHtmlDocument.
static void iweEntity::CompareMode | ( | const weCmpMode & | cMode | ) | [inline, static] |
CompareMode property access.
CompareMode property defines how the entities will be compared by default, i.e by the == operator, or if mode not set for the IsEqual function
WeCompareDefault for default comparison means the strict comparison mode (WeCompatreStrict). But is not recommended to set the WeCompareDefault as the default mode.
The CompareMode property of the WeHtmlEntity used to access this variable.
Definition at line 101 of file weiParser.h.
static const weCmpMode& iweEntity::CompareMode | ( | void | ) | [inline, static] |
CompareMode property access.
CompareMode property defines how the entities will be compared by default, i.e by the == operator, or if mode not set for the IsEqual function
WeCompareDefault for default comparison means the strict comparison mode (WeCompatreStrict). But is not recommended to set the WeCompareDefault as the default mode.
The CompareMode property of the WeHtmlEntity used to access this variable.
Definition at line 100 of file weiParser.h.
virtual WeCmpResults* iweEntity::Diff | ( | iweEntity & | cmp, | |
weCmpMode | mode = weCmpDefault | |||
) | [pure virtual] |
Implemented in WeHtmlEntity, WeInnerText, and WeHtmlDocument.
iweEntity * iweEntity::FindID | ( | string | id | ) |
Finds the entity with given ID.
Searches through children for entity with given id. Returns point to itself, if given ID is the ID of the called entity.
id | - The entity identifier. |
null | if it no objects found, pointer to the object else. |
Definition at line 153 of file weiParser.cpp.
WeEntityList & iweEntity::FindTags | ( | string | tag | ) |
Finds the entity with given tag name.
Searches through children for entity with given tag name. Returns the collection of entities which tag names coincide with the given tag name.
tag | - The tag name to search. |
empty | list if it no objects found, list of the objects else. |
Definition at line 180 of file weiParser.cpp.
void iweEntity::GenerateId | ( | void | ) | [protected, virtual] |
iweDocument * iweEntity::GetRootDocument | ( | void | ) |
Gets the root document.
null | if no root document found, else the pointer to root document. |
Definition at line 222 of file weiParser.cpp.
const string iweEntity::ID | ( | void | ) | const [inline] |
virtual const string& iweEntity::InnerText | ( | void | ) | [pure virtual] |
Implemented in WeHtmlEntity, WeInnerText, and WeHtmlDocument.
bool iweEntity::IsParentTag | ( | string | tag | ) | [protected] |
Query if 'tag' is parent tag.
tag | - The tag name. |
true | if tag is in the parent tree, false if not. |
Definition at line 241 of file weiParser.cpp.
void iweEntity::Name | ( | const string & | EntityName | ) | [inline] |
const string& iweEntity::Name | ( | void | ) | const [inline] |
Name property access.
Name property represents the entity TAG name. Some names defined for the special entities. These names are starts with '#' sign (for example #text for inner text).
Definition at line 86 of file weiParser.h.
virtual bool iweEntity::operator== | ( | iweEntity & | cmp | ) | [inline, virtual] |
Definition at line 71 of file weiParser.h.
virtual const string& iweEntity::OuterText | ( | void | ) | [pure virtual] |
Implemented in WeHtmlEntity, WeInnerText, and WeHtmlDocument.
void iweEntity::Parent | ( | iweEntity * | prnt | ) | [inline] |
const iweEntity* iweEntity::Parent | ( | void | ) | const [inline] |
virtual WeScannerToken iweEntity::Parse | ( | string | tagName, | |
WeTagScanner & | scanner, | |||
iweTransport * | processor = NULL | |||
) | [inline, virtual] |
©2009 Positive Technologies |
Generated on Tue Jul 14 18:27:31 2009 for WebEngine by |
|
1.5.7 |
|