epoc32/include/cbnfnode.h
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 2fe1408b6811
child 4 837f303aceeb
     1.1 --- a/epoc32/include/cbnfnode.h	Tue Mar 16 16:12:26 2010 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,63 +0,0 @@
     1.4 -// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 -// All rights reserved.
     1.6 -// This component and the accompanying materials are made available
     1.7 -// 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
     1.8 -// which accompanies this distribution, and is available
     1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 -//
    1.11 -// Initial Contributors:
    1.12 -// Nokia Corporation - initial contribution.
    1.13 -//
    1.14 -// Contributors:
    1.15 -//
    1.16 -// Description:
    1.17 -// BNF node header
    1.18 -// 
    1.19 -//
    1.20 -
    1.21 -#ifndef __CBNFNODE_H__
    1.22 -#define __CBNFNODE_H__
    1.23 -
    1.24 -#include <e32base.h>
    1.25 -#include <cnode.h>
    1.26 -
    1.27 -/** Declares that the "type" for node attributes is stored as a string. */
    1.28 -typedef const TDesC* CBNFNodeAttributeType;
    1.29 -
    1.30 -#define _SHAREDSTRING(X) IMPORT_C static CBNFNodeAttributeType K##X();
    1.31 -#define _SHAREDSTRINGBODY(X) EXPORT_C CBNFNodeAttributeType CBNFNode::K##X() \
    1.32 -    { \
    1.33 -    _LIT(K##X, #X); \
    1.34 -    return &(K##X); \
    1.35 -    }
    1.36 -
    1.37 -
    1.38 -class CBNFNode : public CTypedNode<TInt, const TDesC*> 
    1.39 -/** Backus-Naur Form (BNF) node that forms part of a BNF tree (CBNFParser).
    1.40 -
    1.41 -Node types are stored as TInts, and attribute types as descriptors.
    1.42 -@publishedAll
    1.43 -@released
    1.44 -*/
    1.45 -{
    1.46 -public:
    1.47 -	//##ModelId=3B666BC70146
    1.48 -	IMPORT_C ~CBNFNode();
    1.49 -
    1.50 -	//##ModelId=3B666BC70144
    1.51 -	IMPORT_C static CBNFNode* NewL(TInt aType);
    1.52 -
    1.53 -    _SHAREDSTRING(PreRuleCallback)
    1.54 -    _SHAREDSTRING(PostRuleCallback)
    1.55 -    _SHAREDSTRING(Reference)
    1.56 -    _SHAREDSTRING(RangeStart)
    1.57 -    _SHAREDSTRING(RangeEnd)
    1.58 -    _SHAREDSTRING(NMoreCount)
    1.59 -    _SHAREDSTRING(NMoreMinimum)
    1.60 -    _SHAREDSTRING(NMoreMaximum)
    1.61 -
    1.62 -protected:
    1.63 -    IMPORT_C CBNFNode(TInt aType);
    1.64 -};
    1.65 -
    1.66 -#endif // __CBNFNODE_H__