equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Name : TSIPLogLineParser.h |
|
16 * Part of : Logging |
|
17 * Version : SIP/2.0 |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 /** |
|
25 @internalComponent |
|
26 */ |
|
27 |
|
28 |
|
29 #ifndef __TSIP_LOG_LINE_PARSER__ |
|
30 #define __TSIP_LOG_LINE_PARSER__ |
|
31 |
|
32 #include <e32std.h> |
|
33 |
|
34 |
|
35 class TSIPLogLineParser |
|
36 { |
|
37 public: |
|
38 |
|
39 TSIPLogLineParser (const TDesC8& aMessage, |
|
40 TUint aMaxLineLength); |
|
41 |
|
42 TBool End(); |
|
43 TPtrC8 GetLine (); |
|
44 |
|
45 private: |
|
46 |
|
47 TInt FindNextLineEndPos (const TDesC8& aDes, TUint& aLineEndOffset); |
|
48 |
|
49 TInt iMaxLineLength; |
|
50 TPtrC8 iMessage; |
|
51 TInt iCurrentPos; |
|
52 #ifdef CPPUNIT_TEST |
|
53 friend class CSIPLogLineParserTest; |
|
54 #endif |
|
55 }; |
|
56 |
|
57 #endif // end of __TSIP_LOG_LINE_PARSER__ |
|
58 |
|
59 // End of File |