commsfwtools/commstools/utracedecoder/inc/messagedefparser/statemachinebase.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 2007-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 //
       
    15 
       
    16 #ifndef STATEMACHINEBASE_H
       
    17 #define STATEMACHINEBASE_H
       
    18 
       
    19 class CStateBase;
       
    20 
       
    21 class CStateMachineBase
       
    22     {
       
    23     public:
       
    24         CStateMachineBase();
       
    25         ~CStateMachineBase();
       
    26 
       
    27         void SetState(CStateBase* aNewState);
       
    28         inline CStateBase& State()
       
    29             {
       
    30             return *iCurrentState;
       
    31             }
       
    32 
       
    33     private:
       
    34         CStateBase* iCurrentState;
       
    35         CStateBase* iLastState;
       
    36     };
       
    37 
       
    38 #endif
       
    39 //STATEMACHINEBASE_H
       
    40 
       
    41