|
||
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.CDTDElementAttribute
Represents an attribute of a DTD element. CDTDModel(CAttributeLookupTable &)
COwnerRuleMarkedStack
EConditionalMark
EGroupMark
ERuleStartMark
EndConditional(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)
TRuleMarks
TreeL()
Creates a BNF rule tree to parse the input stream.iCharRefCheck
iGEContent
iInPEDecl
iNewAttfieldName
iNewElementAttribute
iNewRule
iNewRuleStack
iNewTree
~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()const
Gets the attribute look-up table used by this parser.CBNFParser(CAttributeLookupTable &)
Constructor.CRuleStack
Defines 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()const
Tests if an Optional node sub-rule matched.ParseL()
ProcessDataL(HBufC8 &)
Called by the data provider to add data for the parser to process.RuleMatched()const
Tests 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()const
Get the current state of the parser. StringL()const
Concatenates the rest of the input stream (which hasn't yet been processed) into...TRuleCallback
Type definition for a callback function pointer Callback functions need to get a...Valid()const
Checks if the input stream was completely processed iCurrentRule
The BNF rule that is currently being processed. iLUT
Storage object for all the attributes and identifiers in a tree iMatched
Input stream matched rule flag. iMoreCount
Stores attribute identifier for nmore count attributes. iMoreMaximum
Stores attribute identifier for nmore maximum attributes. iMoreMinimum
Stores attribute identifier for nmore minimum attributes. iOptionalMatched
Flag that indicates when returning to a rule in the rulestack if an optional rul...iParsing
Parser state. iPostRuleCallback
Stores attribute identifier for post-rule callback attributes. iPreRuleCallback
Stores attribute identifier for pre-rule callback attributes. iRangeEnd
Stores attribute identifier for range end attributes. iRangeStart
Stores attribute identifier for range start attributes. iReferenceString
Stores attribute identifier for reference string attributes. iRuleStack
A stack of rules from iTree which are waiting to be completed. The stack basical...iString
An utility object which stores all the buffers passed into the parser and repres...iStringComplete
Flag indicating if the input stream has been completely processed. iSubRule
The child rule we are returning from (if any). If this is NULL we are new to thi...iSubRuleMatched
Flag that indicates when returning to a rule in the rulestack if the child rule ...iTree
The 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
:
EDefault
Attribute supplies a default. EFixed
Attribute is #FIXED. EImplied
Attribute is #IMPLIED. EReference
Attribute is a reference. ERequired
Attribute is #REQUIRED. KValueType
DTD element attribute value types. iType
Node that specifies the attribute type. iValue
Node that specifies the attribute value. iValueType
Attribute 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.
KValueType
KValueType
DTD element attribute value types.
|
iType
CBNFNode * iType;
Node that specifies the attribute type.
iValue
CBNFNode * iValue;
Node that specifies the attribute value.
iValueType
KValueType iValueType;
Attribute value type.
protected: COwnerRuleMarkedStack iNewRuleStack;