applayerprotocols/wapbase/wnode/CBNFNode.cpp
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     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 "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Tree node implementations
       
    15 // 
       
    16 //
       
    17 
       
    18 
       
    19 #include <cbnfnode.h>
       
    20 
       
    21 
       
    22 /** Destructor. */
       
    23 EXPORT_C
       
    24 CBNFNode::~CBNFNode()
       
    25 	{
       
    26 	}
       
    27 
       
    28 /** Allocates and constructs a new parentless node.
       
    29 
       
    30 @return New parentless node
       
    31 @param aType The type of the node
       
    32 */
       
    33 EXPORT_C
       
    34 CBNFNode*
       
    35 CBNFNode::NewL(TInt aType)
       
    36 	{
       
    37 	return new (ELeave) CBNFNode(aType);
       
    38 	}
       
    39 
       
    40 EXPORT_C
       
    41 CBNFNode::CBNFNode(TInt aType)
       
    42     : CTypedNode<TInt, const TDesC*>(aType,NULL)
       
    43     {
       
    44     }
       
    45 
       
    46 /** Gets the pre-rule callback attribute type.
       
    47 
       
    48 @return Pre-rule callback attribute type
       
    49 */
       
    50 _SHAREDSTRINGBODY(PreRuleCallback);
       
    51 /** Gets the post-rule callback attribute type.
       
    52 
       
    53 @return Post-rule callback attribute type
       
    54 */
       
    55 _SHAREDSTRINGBODY(PostRuleCallback);
       
    56 /** Gets the reference attribute type.
       
    57 
       
    58 @return Reference attribute type
       
    59 */
       
    60 _SHAREDSTRINGBODY(Reference);
       
    61 /** Gets the range start attribute type.
       
    62 
       
    63 @return Range start attribute type
       
    64 */
       
    65 _SHAREDSTRINGBODY(RangeStart);
       
    66 /** Gets the range end attribute type.
       
    67 
       
    68 @return Range end attribute type
       
    69 */
       
    70 _SHAREDSTRINGBODY(RangeEnd);
       
    71 /** Gets the match n or more times attribute type.
       
    72 
       
    73 @return Match n or more times attribute type
       
    74 */
       
    75 _SHAREDSTRINGBODY(NMoreCount);
       
    76 /** Gets the match n or more minimum times attribute type.
       
    77 
       
    78 @return Match n or more minimum times attribute type
       
    79 */
       
    80 _SHAREDSTRINGBODY(NMoreMinimum);
       
    81 /** Gets the match n or more maximum times attribute type.
       
    82 
       
    83 @return Match n or more maximum times attribute type
       
    84 */
       
    85 _SHAREDSTRINGBODY(NMoreMaximum);