diff -r 000000000000 -r 818e61de6cd1 crashanalysercmd/PerfToolsSharedLibraries/Engine/SymBuildParsingLib/Parser/Framework/Workers/SymParserWorker.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/crashanalysercmd/PerfToolsSharedLibraries/Engine/SymBuildParsingLib/Parser/Framework/Workers/SymParserWorker.cs Thu Feb 11 15:50:58 2010 +0200 @@ -0,0 +1,117 @@ +/* +* Copyright (c) 2004-2008 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +using System; +using System.Collections; +using SymBuildParsingLib.Tree; +using SymBuildParsingLib.Token; + +namespace SymBuildParsingLib.Parser.Framework.Workers +{ + public abstract class SymParserWorker + { + #region Enumerations + public enum TTokenConsumptionType + { + ETokenNotConsumed = 0, + ETokenConsumed + }; + #endregion + + #region Constructors & destructor + public SymParserWorker( SymParserWorkerContext aContext ) + : this( aContext, 0 ) + { + } + + public SymParserWorker( SymParserWorkerContext aContext, int aPriority ) + { + iWorkerContext = aContext; + iPriority = aPriority; + } + #endregion + + #region API + public virtual SymParserWorker.TTokenConsumptionType OfferToken( SymToken aToken ) + { + SymParserWorker.TTokenConsumptionType consumptionType = TTokenConsumptionType.ETokenNotConsumed; + // + int count = iChildren.Count; + for( int i=0; i