1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
18 #ifndef __CBNFNODE_H__
19 #define __CBNFNODE_H__
24 /** Declares that the "type" for node attributes is stored as a string. */
25 typedef const TDesC* CBNFNodeAttributeType;
27 #define _SHAREDSTRING(X) IMPORT_C static CBNFNodeAttributeType K##X();
28 #define _SHAREDSTRINGBODY(X) EXPORT_C CBNFNodeAttributeType CBNFNode::K##X() \
35 class CBNFNode : public CTypedNode<TInt, const TDesC*>
36 /** Backus-Naur Form (BNF) node that forms part of a BNF tree (CBNFParser).
38 Node types are stored as TInts, and attribute types as descriptors.
44 //##ModelId=3B666BC70146
47 //##ModelId=3B666BC70144
48 IMPORT_C static CBNFNode* NewL(TInt aType);
50 _SHAREDSTRING(PreRuleCallback)
51 _SHAREDSTRING(PostRuleCallback)
52 _SHAREDSTRING(Reference)
53 _SHAREDSTRING(RangeStart)
54 _SHAREDSTRING(RangeEnd)
55 _SHAREDSTRING(NMoreCount)
56 _SHAREDSTRING(NMoreMinimum)
57 _SHAREDSTRING(NMoreMaximum)
60 IMPORT_C CBNFNode(TInt aType);
63 #endif // __CBNFNODE_H__