|
|
|
class CDTDModel : public CBNFParser;
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
MDataProviderObserver - MDataProviderObserver provides a virtual interface for any class to observe any ...
CBase -
Base class for all classes to be instantiated on the heap.
CBNFParser - Base class for parsers that use a BNF tree to parse an input stream.
CDTDModel - Creates a tree that represents a specified DTD.
Defined in CDTDModel:
BuildWml11DTDL(CBNFNode &)Builds a parser tree for the WML1.1 DTD.CDTDElementAttributeRepresents an attribute of a DTD element. CDTDModel(CAttributeLookupTable &)COwnerRuleMarkedStackEConditionalMarkEGroupMarkERuleStartMarkEndConditional(TParserNodeTypes,TBool)GeneratedTree()Gets the root node of the tree generated to process the DTD.NewL(CAttributeLookupTable &)Allocates and constructs a new BNF parser.ResetL()Reset the parser to a state where it can accept and parse new input.StartConditional(TParserNodeTypes)TRuleMarksTreeL()Creates a BNF rule tree to parse the input stream.iCharRefCheckiGEContentiInPEDecliNewAttfieldNameiNewElementAttributeiNewRuleiNewRuleStackiNewTree~CDTDModel()Inherited from CBNFParser:
AddComponentAttributeL(CBNFNode &,CBNFNodeAttributeType,TInt)Adds an additional attribute to an existing rule node.AddRuleCallbackL(CBNFNode &,const TDesC *,TRuleCallback *)Adds a callback to a rule.AttributeLUT()constGets the attribute look-up table used by this parser.CBNFParser(CAttributeLookupTable &)Constructor.CRuleStackDefines a type to handle a stack of rules. CommitL()Notifies the parser that all the data has been passed in.CurrentRule()Gets a pointer to the rule node currently being processed. DeleteMark()Removes the latest mark. All the marks are stored in a stack and this removes th...ExecutePostRuleCallbackL(CBNFNode &)Executes a post-rule callback function.ExecutePreRuleCallbackL(CBNFNode &)Executes a pre-rule callback function.MDataProviderObserverReserved1()Intended Usage : Reserved for future expansion. MDataProviderObserverReserved2()Intended Usage : Reserved for future expansion. Mark()Set a mark to the current position of the input stream.MarkCallback(CBNFParser &)Inserts a mark to the current position of the stream being processed.MarkedL()Get string between the "cursor position" and the latest mark on the st...MarkedWithInitialTextL(const TDesC &)Gets the marked string with a string added before the mached string. NewBNFL()Creates a new rule tree root node.NewComponentL(CBNFNode &,TParserNodeTypes,HBufC *,TRuleCallback *,TRuleCallback *)Creates a new sub-rule, and makes it a child of a specified parent rule.NewComponentL(CBNFNode &,TParserNodeTypes,const TDesC &)Creates a new sub-rule, and makes it a child of a specified parent rule.NewComponentL(CBNFNode *,CBNFNode &,const TDesC &)Creates a new reference rule node, and adds it as a child of the specified paren...NewComponentL(CBNFNode *,const TDesC &)Creates a new reference rule node.NewComponentL(TParserNodeTypes,HBufC *,TRuleCallback *,TRuleCallback *)Creates a new rule node, but does not add it to the tree.NewComponentL(TParserNodeTypes,const TDesC &)Creates a new rule node, but does not add it to the tree.NewRuleL(CBNFNode *,const TDesC &,TParserNodeTypes,HBufC *,TRuleCallback *,TRuleCallback *)Creates a new rule node and adds it to the root of the rule tree.NewRuleL(CBNFNode *,const TDesC &,TParserNodeTypes,const TDesC &,TRuleCallback *,TRuleCallback *)Creates a new rule node and adds it to the root of the rule tree.OptionalMatched()constTests if an Optional node sub-rule matched.ParseL()ProcessDataL(HBufC8 &)Called by the data provider to add data for the parser to process.RuleMatched()constTests if the used rule matched.SetBaseUriL(const TDesC *)Intended Usage : Set the URI that the DataProvider considers the base URI for th...SetDataExpected(TInt)Intended Usage : The report of how many bytes of data is expected to be passed t...SetDocumentTypeL(const TDesC &)Intended Usage : The request to construct a CDataHandler to process data of aDat...SetDocumentTypeL(const TDesC &,const TDesC &)Intended Usage : The request to construct a CDataHandler for aDataType with non ...SetState(TParseState)Sets the parser state.SetStatus(TInt)Called by the data provider to report its status to its observer.State()constGet the current state of the parser. StringL()constConcatenates the rest of the input stream (which hasn't yet been processed) into...TRuleCallbackType definition for a callback function pointer Callback functions need to get a...Valid()constChecks if the input stream was completely processed iCurrentRuleThe BNF rule that is currently being processed. iLUTStorage object for all the attributes and identifiers in a tree iMatchedInput stream matched rule flag. iMoreCountStores attribute identifier for nmore count attributes. iMoreMaximumStores attribute identifier for nmore maximum attributes. iMoreMinimumStores attribute identifier for nmore minimum attributes. iOptionalMatchedFlag that indicates when returning to a rule in the rulestack if an optional rul...iParsingParser state. iPostRuleCallbackStores attribute identifier for post-rule callback attributes. iPreRuleCallbackStores attribute identifier for pre-rule callback attributes. iRangeEndStores attribute identifier for range end attributes. iRangeStartStores attribute identifier for range start attributes. iReferenceStringStores attribute identifier for reference string attributes. iRuleStackA stack of rules from iTree which are waiting to be completed. The stack basical...iStringAn utility object which stores all the buffers passed into the parser and repres...iStringCompleteFlag indicating if the input stream has been completely processed. iSubRuleThe child rule we are returning from (if any). If this is NULL we are new to thi...iSubRuleMatchedFlag that indicates when returning to a rule in the rulestack if the child rule ...iTreeThe BNF tree the parser is using to parse the input stream. Inherited from CBase:
Delete(CBase *)Deletes the specified object.Extension_(TUint,TAny *&,TAny *)Extension function operator new(TUint)Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)Initialises the object to binary zeroes.operator new(TUint,TLeave)Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)Allocates the object from the heap and then initialises its contents to binary z...IMPORT_C static CDTDModel* NewL(CAttributeLookupTable &aLUT);
Allocates and constructs a new BNF parser.
|
|
protected: IMPORT_C CDTDModel(CAttributeLookupTable &aLUT);
|
IMPORT_C virtual void ResetL();
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.
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 void BuildWml11DTDL(CBNFNode &aPackageRootNode);
Builds a parser tree for the WML1.1 DTD.
|
protected: IMPORT_C virtual CBNFNode* TreeL();
Creates a BNF rule tree to parse the input stream.
This overrides CBNFParser::TreeL().
|
protected: IMPORT_C virtual void StartConditional(TParserNodeTypes aRuleType);
|
protected: IMPORT_C virtual void EndConditional(TParserNodeTypes aRuleType, TBool aSuccess);
|
class CDTDElementAttribute : public CBase;
Represents an attribute of a DTD element.
CBase -
Base class for all classes to be instantiated on the heap.
CDTDModel::CDTDElementAttribute - Represents an attribute of a DTD element.
Defined in CDTDModel::CDTDElementAttribute:
EDefaultAttribute supplies a default. EFixedAttribute is #FIXED. EImpliedAttribute is #IMPLIED. EReferenceAttribute is a reference. ERequiredAttribute is #REQUIRED. KValueTypeDTD element attribute value types. iTypeNode that specifies the attribute type. iValueNode that specifies the attribute value. iValueTypeAttribute value type. ~CDTDElementAttribute()Destructor.Inherited from CBase:
Delete(CBase *)Deletes the specified object.Extension_(TUint,TAny *&,TAny *)Extension function operator new(TUint)Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)Initialises the object to binary zeroes.operator new(TUint,TLeave)Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)Allocates the object from the heap and then initialises its contents to binary z...~CDTDElementAttribute()inline virtual ~CDTDElementAttribute();
Destructor.
KValueTypeKValueType
DTD element attribute value types.
|
iTypeCBNFNode * iType;
Node that specifies the attribute type.
iValueCBNFNode * iValue;
Node that specifies the attribute value.
iValueTypeKValueType iValueType;
Attribute value type.
protected: COwnerRuleMarkedStack iNewRuleStack;