|
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 MESSAGEPROCESSOR_H |
|
17 #define MESSAGEPROCESSOR_H |
|
18 |
|
19 #include "keywordprocessorbase.h" |
|
20 #include "messageidentifier.h" |
|
21 |
|
22 namespace Parser |
|
23 { |
|
24 |
|
25 class CMessageProcessor : public CKeywordProcessor<Parser::EStateMessage, Parser::CMessageIdentifier> |
|
26 { |
|
27 public: |
|
28 explicit CMessageProcessor(CDefinitionParser& aStateMachine) |
|
29 : CKeywordProcessor<Parser::EStateMessage, Parser::CMessageIdentifier>(aStateMachine) |
|
30 { |
|
31 } |
|
32 |
|
33 public: |
|
34 //virtual void EnterState(); |
|
35 virtual void ProcessState(); |
|
36 |
|
37 private: |
|
38 enum |
|
39 { |
|
40 EStateExpectMessageIdentifier = CKeywordProcessorBase::EStateInitialState, |
|
41 EStateExpectSignature, |
|
42 EStateExpectSignatureEquals, |
|
43 EStateExpectSignatureIdentifier, |
|
44 EStateExpectMessageId, |
|
45 EStateExpectMessageIdEquals, |
|
46 EStateExpectMessageRealmValue, |
|
47 EStateExpectMessageColon, |
|
48 EStateExpectMessageIdValue, |
|
49 EStateExpectEnd, |
|
50 EStateExpectEndMessage, |
|
51 }; |
|
52 |
|
53 }; |
|
54 |
|
55 } // namespace Parser |
|
56 |
|
57 #endif |
|
58 // MESSAGEPROCESSOR_H |
|
59 |