Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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 CBNFParser::ProcessDataL(HBufC8 &) with the filename of the DTD, and call CBNFParser::CommitL()

2. call CDTDModel::GeneratedTree() to get the tree

Derivation

Members

Defined in CDTDModel:

Inherited from CBNFParser:

Inherited from CBase:


Construction and destruction


NewL(CAttributeLookupTable &)

IMPORT_C static 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()

IMPORT_C virtual ~CDTDModel();

Description


CDTDModel(CAttributeLookupTable &)

protected: IMPORT_C CDTDModel(CAttributeLookupTable &aLUT);

Description

Parameters

CAttributeLookupTable &aLUT

[Top]


Member functions


ResetL()

IMPORT_C virtual 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 CDTDModel::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(CBNFNode &)

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: IMPORT_C virtual CBNFNode* TreeL();

Description

Creates a BNF rule tree to parse the input stream.

This overrides CBNFParser::TreeL().

Return value

CBNFNode *

BNF rule tree


StartConditional(TParserNodeTypes)

protected: IMPORT_C virtual void StartConditional(TParserNodeTypes aRuleType);

Description

Parameters

TParserNodeTypes aRuleType


EndConditional(TParserNodeTypes,TBool)

protected: IMPORT_C virtual 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:

Inherited from CBase:

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