equal
deleted
inserted
replaced
|
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 CONSTPROCESSOR_H |
|
17 #define CONSTPROCESSOR_H |
|
18 |
|
19 #include "messagedefparser\constidentifier.h" |
|
20 #include "messagedefparser\keywordprocessorbase.h" |
|
21 |
|
22 namespace Parser |
|
23 { |
|
24 class CConstProcessor : public CKeywordProcessor<Parser::EStateConst, CConstIdentifier> |
|
25 { |
|
26 public: |
|
27 explicit CConstProcessor(CDefinitionParser& aStateMachine) |
|
28 : CKeywordProcessor<Parser::EStateConst, CConstIdentifier>(aStateMachine), iInternalState(0) |
|
29 { |
|
30 } |
|
31 |
|
32 public: |
|
33 //virtual void EnterState(); |
|
34 virtual void ProcessState(); |
|
35 |
|
36 private: |
|
37 void CreateTempConst(); |
|
38 void CommitConst(); |
|
39 |
|
40 private: |
|
41 int iInternalState; |
|
42 Parser::TResult iResult; |
|
43 |
|
44 enum |
|
45 { |
|
46 EStateExpectConstIdentifier = CKeywordProcessorBase::EStateInitialState, |
|
47 EStateExpectEquals, |
|
48 EStateExpectValue |
|
49 }; |
|
50 }; |
|
51 |
|
52 } // namespace Parser |
|
53 |
|
54 #endif |
|
55 // CONSTPROCESSOR_H |
|
56 |