Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: CDTDModel.h
Link against: dtdmdl.lib

Class CDTDModel

class CDTDModel : public CBNFParser;

Description

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

Derivation

Members

Defined in CDTDModel:
BuildWml11DTDL(), CDTDElementAttribute, CDTDModel(), COwnerRuleMarkedStack, EConditionalMark, EGroupMark, ERuleStartMark, EndConditional(), GeneratedTree(), NewL(), ResetL(), StartConditional(), TRuleMarks, TreeL(), iCharRefCheck, iGEContent, iInPEDecl, iNewAttfieldName, iNewElementAttribute, iNewRule, iNewRuleStack, iNewTree, ~CDTDModel()

Inherited from CBNFParser:
AddComponentAttributeL(), AddRuleCallbackL(), AndL(), AttributeLUT(), CRuleStack, CommitL(), CurrentRule(), DeleteMark(), ExactL(), ExecutePostRuleCallbackL(), ExecutePreRuleCallbackL(), MDataProviderObserverReserved1(), MDataProviderObserverReserved2(), Mark(), MarkCallback(), MarkedL(), MarkedWithInitialTextL(), NMoreL(), NewBNFL(), NewComponentL(), NewRuleL(), OptionalL(), OptionalMatched(), OrL(), ParseL(), PerformRuleL(), ProcessDataL(), RangeL(), ReferenceL(), RuleMatched(), SelectL(), SetBaseUriL(), SetDataExpected(), SetDocumentTypeL(), SetState(), SetStatus(), State(), StringL(), TRuleCallback, Valid(), WithoutL(), iCurrentRule, iLUT, iMatched, iMoreCount, iMoreMaximum, iMoreMinimum, iOptionalMatched, iParsing, iPostRuleCallback, iPreRuleCallback, iRangeEnd, iRangeStart, iReferenceString, iRuleStack, iString, iStringComplete, iSubRule, iSubRuleMatched, iTree

Inherited from CBase:
Delete(), Extension_(), operator new()


Construction and destruction


NewL()

static IMPORT_C CDTDModel *NewL(CAttributeLookupTable &aLUT);

Description

Allocates and constructs a new BNF parser.

Parameters

CAttributeLookupTable &aLUT

Attribute lookup table in which to store attributes for the rule tree

Return value

CDTDModel *

New parser


~CDTDModel()

virtual IMPORT_C ~CDTDModel();

Description


CDTDModel()

protected: IMPORT_C CDTDModel(CAttributeLookupTable &aLUT);

Description

Parameters

CAttributeLookupTable &aLUT

[Top]


Member functions


ResetL()

virtual IMPORT_C void ResetL();

Description

Reset the parser to a state where it can accept and parse new input.

If no BNF tree yet exists the virtual method TreeL() is called to obtain the BNF tree for this parser. Any existing state of parsing and input data is destroyed.


GeneratedTree()

IMPORT_C CBNFNode *GeneratedTree();

Description

Gets the root node of the tree generated to process the DTD.

It transfers ownership of the tree to the caller.

Return value

CBNFNode *

Root node of the tree


BuildWml11DTDL()

IMPORT_C void BuildWml11DTDL(CBNFNode &aPackageRootNode);

Description

Builds a parser tree for the WML1.1 DTD.

Parameters

CBNFNode &aPackageRootNode

A root node to which the generated tree is attached


TreeL()

protected: virtual IMPORT_C CBNFNode *TreeL();

Description

Creates a BNF rule tree to parse the input stream.

This overrides CBNFParser::TreeL().

Return value

CBNFNode *

BNF rule tree


StartConditional()

protected: virtual IMPORT_C void StartConditional(TParserNodeTypes aRuleType);

Description

Parameters

TParserNodeTypes aRuleType


EndConditional()

protected: virtual IMPORT_C void EndConditional(TParserNodeTypes aRuleType, TBool aSuccess);

Description

Parameters

TParserNodeTypes aRuleType

TBool aSuccess

[Top]


Member classes


Class CDTDElementAttribute

class CDTDElementAttribute : public CBase;

Description

Represents an attribute of a DTD element.

Derivation

Members

Defined in CDTDModel::CDTDElementAttribute:
EDefault, EFixed, EImplied, EReference, ERequired, KValueType, iType, iValue, iValueType, ~CDTDElementAttribute()

Inherited from CBase:
Delete(), Extension_(), operator new()

Construction and destruction


~CDTDElementAttribute()

inline virtual ~CDTDElementAttribute();

Description

Destructor.

Member enumerations


Enum KValueType

KValueType

Description

DTD element attribute value types.

EDefault

Attribute supplies a default.

ERequired

Attribute is #REQUIRED.

EImplied

Attribute is #IMPLIED.

EFixed

Attribute is #FIXED.

EReference

Attribute is a reference.

Member data


iType

CBNFNode * iType;

Description

Node that specifies the attribute type.


iValue

CBNFNode * iValue;

Description

Node that specifies the attribute value.


iValueType

KValueType iValueType;

Description

Attribute value type.

[Top]


Member enumerations


Enum TRuleMarks

TRuleMarks

Description

ERuleStartMark

EConditionalMark

EGroupMark

[Top]


Member type definitions


Typedef COwnerRuleMarkedStack

protected: typedef CRuleMarkedStack<ETrue> CDTDModel::COwnerRuleMarkedStack;

Description

[Top]


Member data


iInPEDecl

protected: TBool iInPEDecl;

Description


iCharRefCheck

protected: TBool iCharRefCheck;

Description


iGEContent

protected: HBufC * iGEContent;

Description


iNewAttfieldName

protected: HBufC * iNewAttfieldName;

Description


iNewElementAttribute

protected: CDTDElementAttribute * iNewElementAttribute;

Description


iNewRule

protected: CBNFNode * iNewRule;

Description


iNewTree

protected: CBNFNode * iNewTree;

Description


iNewRuleStack

protected: COwnerRuleMarkedStack iNewRuleStack;

Description