#include <mw/cdtdmodel.h>
Link against: dtdmdl.lib
| class CDTDModel : public CBNFParser |
| Protected Member Type Definitions | |
|---|---|
| typedef | CRuleMarkedStack< ETrue > COwnerRuleMarkedStack |
| Public Member Enumerations | |
|---|---|
| enum | TRuleMarks { ERuleStartMark, EConditionalMark, EGroupMark } |
| Public Member Functions | |
|---|---|
| virtual | ~CDTDModel() |
| IMPORT_C void | BuildWml11DTDL(CBNFNode &) |
| IMPORT_C CBNFNode * | GeneratedTree() |
| IMPORT_C CDTDModel * | NewL(CAttributeLookupTable &) |
| virtual IMPORT_C void | ResetL() |
| Inherited Type Definitions | |
|---|---|
| CBNFParser::CRuleStack | |
| CBNFParser::TRuleCallback | |
Creates a tree that represents a specified DTD.
To use it:
1. call the base class function ProcessDataL() with the filename of the DTD, and call CommitL()
2. call GeneratedTree() to get the tree
Deprecated
| typedef CRuleMarkedStack< ETrue > | COwnerRuleMarkedStack | [protected] |
| TBool | iCharRefCheck | [protected] |
| HBufC * | iGEContent | [protected] |
| TBool | iInPEDecl | [protected] |
| HBufC * | iNewAttfieldName | [protected] |
| CDTDElementAttribute * | iNewElementAttribute | [protected] |
| CBNFNode * | iNewRule | [protected] |
| COwnerRuleMarkedStack | iNewRuleStack | [protected] |
| CBNFNode * | iNewTree | [protected] |
| Enumerator | Value | Description |
|---|---|---|
| ERuleStartMark | 1 | |
| EConditionalMark | ||
| EGroupMark |
| IMPORT_C | CDTDModel | ( | CAttributeLookupTable & | aLUT | ) | [protected] |
Constructor.
| Parameters | |
|---|---|
| aLUT | Attribute lookup table in which to store attributes for the rule tree |
| void | AddNewAttributeL | ( | CBNFNode & | aNode, |
| const TDesC * | aAttributeId, | |||
| const TDesC & | aAttributeType, | |||
| CDTDElementAttribute::KValueType | aAttributeValueType, | |||
| CBNFNode * | aRootNode | |||
| ) | [protected] | |||
| void | AddNewAttributeWithValueL | ( | CBNFNode & | aNode, |
| const TDesC * | aAttributeId, | |||
| const TDesC & | aAttributeType, | |||
| const TDesC & | aAttributeDefaultValue, | |||
| CBNFNode * | aRootNode | |||
| ) | [protected] | |||
| void | AddNewReferenceAttributeL | ( | CBNFNode & | aNode, |
| const TDesC & | aAttributeType, | |||
| CBNFNode * | aRootNode | |||
| ) | [protected] | |||
| IMPORT_C void | BuildWml11DTDL | ( | CBNFNode & | aPackageRootNode | ) |
Builds a parser tree for the WML1.1 DTD.
| Parameters | |
|---|---|
| aPackageRootNode | A root node to which the generated tree is attached |
| void | CharRefReplacement | ( | TPtr & | aString | ) | [protected] |
| void | DoClear | ( | ) | [protected] |
| IMPORT_C void | EndConditional | ( | TParserNodeTypes | aRuleType, |
| TBool | aSuccess | |||
| ) | [protected, virtual] | |||
Reimplemented from CBNFParser::EndConditional(TParserNodeTypes,TBool)
Called when the parser ends a conditional point (i.e. And/Or rules) in the BNF grammar.
This overrides CBNFParser::EndConditional().
| Parameters | |
|---|---|
| aRuleType | Rule type |
| aSuccess | True if processing was sucessful, otherwise false |
| IMPORT_C CBNFNode * | GeneratedTree | ( | ) |
Gets the root node of the tree generated to process the DTD.
It transfers ownership of the tree to the caller.
| IMPORT_C CDTDModel * | NewL | ( | CAttributeLookupTable & | aLUT | ) | [static] |
Reimplemented from CBNFParser::NewL(CAttributeLookupTable &)
Allocates and constructs a new DTD parser.
| Parameters | |
|---|---|
| aLUT | Attribute lookup table in which to store attributes for the rule tree |
| void | PostAndL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PostAttValueL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PostAttfieldNameL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PostAttlistDeclNameL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PostAttlistLineL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PostAttlistReferenceL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PostElementDeclL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PostElementDeclNameL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PostEntityDeclL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PostEntityDeclNameL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PostFixedL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PostGEContentL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PostGEDeclL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PostGroupL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PostIdentifierL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PostImpliedL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PostMatch0PlusL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PostMatch1PlusL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PostOptionalL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PostOrL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PostPEDeclL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PostReferenceNameL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PostRequiredL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PostRuleL | ( | CBNFParser & | aParser, |
| TParserNodeTypes | aType, | |||
| const TDesC * | aAttribute | |||
| ) | [protected, static] | |||
| void | PostRulesL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PostStringL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PostValidCharL | ( | CBNFParser & | aParser, |
| TRadix | aRadix | |||
| ) | [protected, static] | |||
| void | PostValidDecCharL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PostValidHexCharL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PreAttValueL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PreAttlistLineL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PreElementDeclL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PreEntityDeclL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PreGEContentL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PreGroupL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PrePEDeclL | ( | CBNFParser & | aParser | ) | [protected, static] |
| void | PreRulesL | ( | CBNFParser & | aParser | ) | [protected, static] |
| IMPORT_C void | ResetL | ( | ) | [virtual] |
Reimplemented from CBNFParser::ResetL()
Reset the parser to a state where it can accept and parse new input. Any existing state of parsing and input data is destroyed.
| IMPORT_C void | StartConditional | ( | TParserNodeTypes | aRuleType | ) | [protected, virtual] |
Reimplemented from CBNFParser::StartConditional(TParserNodeTypes)
Called when the parser starts a conditional point (i.e. And/Or rules) in the BNF grammar.
This overrides CBNFParser::StartConditional().
| Parameters | |
|---|---|
| aRuleType | Rule type |
| IMPORT_C CBNFNode * | TreeL | ( | ) | [protected, virtual] |
Reimplemented from CBNFParser::TreeL()